/* ================================================================
   DAVID ANTONY — Actor Portfolio
   style.css

   Table of contents:
   1.  Custom properties (design tokens)
   2.  Reset & base
   3.  Container & layout utilities
   4.  Navigation
   5.  Hero
   6.  Section shared styles
   7.  Reveal animations
   8.  About
   9.  Buttons
   10. Headshots / Gallery
   11. Showreel
   12. Credits (optional)
   13. Contact
   14. Footer
   15. Lightbox
   16. Keyframe animations
   17. Responsive — tablet (≤ 1024px)
   18. Responsive — mobile  (≤ 768px)
   19. Responsive — small   (≤ 480px)
================================================================ */


/* ================================================================
   1. CUSTOM PROPERTIES
================================================================ */

:root {
    /* Colour palette */
    --bg:            #080808;
    --bg-alt:        #0d0d0d;
    --bg-card:       #101010;
    --gold:          #c8a96e;
    --gold-light:    #e8ceA0;
    --gold-dim:      rgba(200, 169, 110, 0.10);
    --gold-dim-hover:rgba(200, 169, 110, 0.16);
    --text:          #ede9e1;
    --text-muted:    #5a5a56;
    --text-subtle:   #303030;
    --border:        #1c1c1a;
    --border-light:  #282826;

    /* Typography */
    --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:   'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --nav-h:         76px;
    --section-py:    120px;
    --container-w:   1200px;
    --px:            clamp(20px, 5vw, 80px);

    /* Motion */
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:        0.25s;
    --t-mid:         0.45s;
    --t-slow:        0.7s;
}


/* ================================================================
   2. RESET & BASE
================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
}

/* Focus ring — accessible but unobtrusive */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}


/* ================================================================
   3. CONTAINER & LAYOUT UTILITIES
================================================================ */

.container {
    width: 100%;
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: var(--px);
}


/* ================================================================
   4. NAVIGATION
================================================================ */

.nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--px);
    transition:
        background  var(--t-slow) var(--ease),
        border-color var(--t-slow) var(--ease),
        height var(--t-mid) var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    height: 60px;
}

.nav__logo {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text);
    transition: color var(--t-fast) var(--ease);
    position: relative;
    z-index: 101; /* above mobile overlay */
}

.nav__logo:hover {
    color: var(--gold);
}

/* Desktop links */
.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    inset-block-end: -5px;
    inset-inline-start: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--t-mid) var(--ease);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 101;
}

.nav__toggle span {
    display: block;
    height: 1px;
    background: var(--text);
    transition:
        transform var(--t-mid) var(--ease),
        opacity   var(--t-fast) var(--ease),
        width     var(--t-mid) var(--ease);
}

.nav__toggle span:nth-child(3) {
    width: 60%;
    margin-inline-start: auto;
}

/* Animated to × when open */
.nav__toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { width: 100%; transform: translateY(-6px) rotate(-45deg); }


/* ================================================================
   5. HERO
================================================================ */

.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero background image */
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/hero-bg.jpg') center top / cover no-repeat;
    background-color: var(--bg);
    transform: translateX(-8%);
    scale: 1.2;
}

/* Dark overlay for text legibility over the photo */
.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(8, 8, 8, 0.45) 0%,
            rgba(8, 8, 8, 0.35) 35%,
            rgba(8, 8, 8, 0.6)  70%,
            rgba(8, 8, 8, 0.92) 100%
        ),
        linear-gradient(
            to right,
            rgba(8, 8, 8, 0.5) 0%,
            rgba(8, 8, 8, 0.15) 40%,
            rgba(8, 8, 8, 0.5) 100%
        );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-block-start: calc(var(--nav-h) + 48px);
    padding-block-end: 120px;
    padding-inline: var(--px);
}

/* Small label above the name */
.hero__eyebrow {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold);
    margin-block-end: 28px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

/* Big name */
.hero__name {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(68px, 11.5vw, 156px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block-end: 36px;
}

.hero__name-first {
    color: var(--text);
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 1s var(--ease) 0.35s forwards;
}

.hero__name-last {
    font-style: italic;
    color: var(--gold-light);
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 1s var(--ease) 0.5s forwards;
}

/* Decorative rule between name and CTA */
.hero__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-block-end: 40px;
    opacity: 0;
    animation: fadeIn 0.9s var(--ease) 0.78s forwards;
}

.hero__rule-line {
    display: block;
    width: clamp(36px, 7vw, 72px);
    height: 1px;
    background: var(--gold);
    opacity: 0.45;
}

.hero__rule-diamond {
    display: block;
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.75;
}

.hero__cta {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 14px 36px;
    transition:
        color var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        background var(--t-fast) var(--ease);
    opacity: 0;
    animation: fadeIn 0.9s var(--ease) 1s forwards;
}

.hero__cta:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-dim);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    inset-block-end: 36px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s var(--ease) 1.35s forwards;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
}

.hero__scroll:hover {
    color: var(--gold);
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: currentColor;
    opacity: 0.35;
    animation: scrollPulse 2.2s ease-in-out infinite;
}

.hero__scroll-label {
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}


/* ================================================================
   6. SECTION SHARED STYLES
================================================================ */

.section {
    padding-block: var(--section-py);
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--bg-alt);
}

/* Headshots and contact are specifically alternated */
.headshots,
.contact {
    background-color: var(--bg-alt);
}

.about,
.portraits,
.showreel {
    background-color: var(--bg);
}

.section__header {
    margin-block-end: 64px;
}

.section__eyebrow {
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-block-end: 12px;
}

.section__title {
    font-family: var(--serif);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 300;
    line-height: 1;
    color: var(--text);
}


/* ================================================================
   7. REVEAL ANIMATIONS (scroll-triggered via IntersectionObserver)
================================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity var(--t-slow) var(--ease),
        transform var(--t-slow) var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger siblings inside grids */
.gallery__grid .gallery__item.reveal:nth-child(1),
.clips__grid  .clip.reveal:nth-child(1)          { transition-delay: 0s; }
.gallery__grid .gallery__item.reveal:nth-child(2),
.clips__grid  .clip.reveal:nth-child(2)          { transition-delay: 0.12s; }
.gallery__grid .gallery__item.reveal:nth-child(3) { transition-delay: 0.24s; }


/* ================================================================
   8. ABOUT
================================================================ */

.about__grid {
    display: grid;
    grid-template-columns: 5fr 8fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

/* Image / placeholder */
.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about__placeholder {
    aspect-ratio: 3 / 4;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--text-subtle);
    padding: 24px;
}

.about__placeholder .placeholder__label {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Bio text */
.about__bio {
    font-family: var(--serif);
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 300;
    line-height: 1.72;
    color: var(--text);
    margin-block-end: 20px;
}

.about__secondary {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    margin-block-end: 36px;
}

/* Stats row */
.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-block-start: 1px solid var(--border);
    border-block-end:   1px solid var(--border);
    padding-block: 24px;
    margin-block-end: 40px;
}

.about__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about__stat dt {
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.about__stat dd {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
}

/* Shared silhouette placeholder icon */
.placeholder__silhouette {
    width: 44px;
    height: 56px;
    color: var(--text-subtle);
}


/* ================================================================
   9. BUTTONS
================================================================ */

.btn {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 36px;
    transition: all var(--t-fast) var(--ease);
    cursor: pointer;
}

.btn--outline {
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}


/* ================================================================
   10. HEADSHOTS / GALLERY
================================================================ */

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery__item {
    cursor: pointer;
}

.gallery__inner {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

/* Real image */
.gallery__inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.65s var(--ease);
}

/* Placeholder icon */
.gallery__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
}

.gallery__placeholder .placeholder__silhouette {
    width: 40px;
    height: 50px;
}

/* Hover overlay */
.gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-mid) var(--ease);
}

.gallery__overlay-label {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 9px 22px;
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__item:hover .gallery__inner img {
    transform: scale(1.04);
}

.gallery__credit {
    margin-block-start: 20px;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    text-align: center;
}


/* ================================================================
   10b. CAROUSEL
================================================================ */

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 4px;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__track .gallery__item {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
}

.carousel__arrow {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    transition:
        color var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        opacity var(--t-fast) var(--ease);
}

.carousel__arrow:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.carousel__arrow--prev { inset-inline-start: 12px; }
.carousel__arrow--next { inset-inline-end: 12px; }

.carousel__arrow svg {
    width: 18px;
    height: 18px;
}

.carousel__arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}


/* ================================================================
   10c. PORTRAITS
================================================================ */

.portraits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portraits__grid .gallery__inner--landscape {
    aspect-ratio: 4 / 5;
}

.portraits__grid .gallery__item.reveal:nth-child(1) { transition-delay: 0s; }
.portraits__grid .gallery__item.reveal:nth-child(2) { transition-delay: 0.12s; }
.portraits__grid .gallery__item.reveal:nth-child(3) { transition-delay: 0.24s; }

.portraits__cta {
    text-align: center;
    margin-block-start: 40px;
}


/* ================================================================
   11. SHOWREEL
================================================================ */

/* Featured reel */
.reel__featured {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-block-end: 32px;
}

.reel__featured iframe,
.reel__featured video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.reel__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.reel__play-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.reel__play-icon svg {
    width: 26px;
    height: 26px;
    margin-inline-start: 4px;
}

.reel__placeholder-text {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Clips grid */
.clips__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.clip__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-block-end: 14px;
}

.clip__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clip__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
}

.clip__placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.35;
}

.clip__title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    margin-block-end: 4px;
}

.clip__meta {
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}


/* ================================================================
   12. CREDITS (commented out in HTML — included for when ready)
================================================================ */

.credits__list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-block-start: 1px solid var(--border);
}

.credit {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 80px auto;
    gap: 16px;
    padding-block: 18px;
    border-block-end: 1px solid var(--border);
    align-items: baseline;
    transition: background var(--t-fast) var(--ease);
}

.credit:hover {
    background: var(--bg-card);
    padding-inline: 16px;
    margin-inline: -16px;
}

.credit__year {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.credit__title {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
}

.credit__role,
.credit__director {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-muted);
}

.credit__type {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    text-align: right;
}


/* ================================================================
   13. CONTACT
================================================================ */

.contact__intro {
    font-family: var(--serif);
    font-size: clamp(17px, 1.8vw, 21px);
    font-weight: 300;
    line-height: 1.72;
    color: var(--text-muted);
    max-width: 480px;
    margin-block-end: 48px;
}

.contact__links {
    border-block-start: 1px solid var(--border);
    max-width: 560px;
}

.contact__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
    border-block-end: 1px solid var(--border);
    transition: color var(--t-fast) var(--ease);
}

.contact__link:hover {
    color: var(--gold);
}

.contact__link-label {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-subtle);
    min-width: 76px;
    flex-shrink: 0;
    transition: color var(--t-fast) var(--ease);
}

.contact__link:hover .contact__link-label {
    color: var(--gold);
    opacity: 0.65;
}

.contact__link-value {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
}


/* ================================================================
   14. FOOTER
================================================================ */

.footer {
    border-block-start: 1px solid var(--border);
    padding-block: 44px;
    background: var(--bg);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__name {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.footer__copy {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
}

.footer__nav {
    display: flex;
    gap: 28px;
}

.footer__nav a {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-subtle);
    transition: color var(--t-fast) var(--ease);
}

.footer__nav a:hover {
    color: var(--gold);
}


/* ================================================================
   15. LIGHTBOX
================================================================ */

.lightbox__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-mid) var(--ease);
}

.lightbox__backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 201;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-mid) var(--ease);
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox__img-wrap {
    max-width: min(88vw, 820px);
    max-height: 88dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img-wrap img {
    max-width: 100%;
    max-height: 88dvh;
    object-fit: contain;
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.9);
}

.lightbox__close {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
}

.lightbox__close:hover {
    color: var(--text);
}

.lightbox__close svg {
    width: 22px;
    height: 22px;
}

.lightbox__arrow {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    background: rgba(8, 8, 8, 0.7);
    transition:
        color var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease);
}

.lightbox__arrow--prev { inset-inline-start: 20px; }
.lightbox__arrow--next { inset-inline-end:  20px; }

.lightbox__arrow:hover {
    color: var(--text);
    border-color: var(--border-light);
}

.lightbox__arrow svg {
    width: 18px;
    height: 18px;
}


/* ================================================================
   16. KEYFRAME ANIMATIONS
================================================================ */

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

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.35;
    }
    50% {
        transform: scaleY(0.55);
        opacity: 0.7;
    }
}


/* ================================================================
   17. RESPONSIVE — TABLET (≤ 1024px)
================================================================ */

@media (max-width: 1024px) {
    :root {
        --section-py: 96px;
    }

    .about__grid {
        grid-template-columns: 1fr 1.6fr;
        gap: 48px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ================================================================
   18. RESPONSIVE — MOBILE (≤ 768px)
================================================================ */

@media (max-width: 768px) {
    :root {
        --section-py: 72px;
        --nav-h: 64px;
    }

    /* ---- Mobile nav ---- */
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        /* Full-screen overlay */
        position: fixed;
        inset: 0;
        flex-direction: column;
        gap: 28px;
        align-items: center;
        justify-content: center;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-slow) var(--ease);
        z-index: 99;
    }

    .nav__links.is-open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        font-size: 0.85rem;
        letter-spacing: 0.22em;
    }

    /* ---- Hero ---- */
    .hero__name {
        font-size: clamp(56px, 15vw, 96px);
    }

    /* ---- About ---- */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__placeholder {
        max-width: 260px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---- Gallery / Carousel ---- */
    .gallery__grid,
    .portraits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .carousel__track .gallery__item {
        flex: 0 0 calc(50% - 10px);
    }

    /* ---- Clips ---- */
    .clips__grid {
        grid-template-columns: 1fr;
    }

    /* ---- Footer ---- */
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    /* ---- Lightbox arrows on mobile ---- */
    .lightbox__arrow--prev { inset-inline-start: 8px; }
    .lightbox__arrow--next { inset-inline-end:  8px; }
}


/* ================================================================
   19. RESPONSIVE — SMALL (≤ 480px)
================================================================ */

@media (max-width: 480px) {
    :root {
        --section-py: 56px;
    }

    /* Single-column gallery on very small screens */
    .gallery__grid,
    .portraits__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
    }

    .carousel__track .gallery__item {
        flex: 0 0 85%;
    }

    /* Stack contact links */
    .contact__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .contact__link-label {
        min-width: unset;
    }

    /* Credits — simplify columns */
    .credit {
        grid-template-columns: 48px 1fr;
        row-gap: 4px;
    }

    .credit__director,
    .credit__type {
        grid-column: 2;
    }
}
