/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050505;
    color: #f0f0f0;
    font-family: "Courier New", Courier, monospace;
    overflow-x: hidden;
    padding: 20px 15px;
    position: relative;
    overflow-y: hidden; /* lock scroll until hero is dismissed */
    transition: background-color 0.4s ease;
}
body.hero-done {
  overflow-y: auto; /* unlock scroll after hero */
}

/* --- TOP SIGNATURE IMAGE --- */
.top-signature {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    z-index: 3;
    pointer-events: auto;       /* ← allow clicking */
    cursor: pointer;            /* ← show it's clickable */
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.hero-done .top-signature {
    opacity: 1;
    pointer-events: auto;
}

/* --- HERO INTRO --- */
#hero {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.8s ease;
}

#hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fills the screen, keeps aspect ratio, crops if needed */
    display: block;
}

.skip-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;              /* bigger */
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #f5d47a;                 /* same warm highlight as logo hover */
    opacity: 0.9;                   /* much more visible */
    font-weight: 700;               /* bold */
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);

    animation: hint-pulse 1.6s ease-in-out infinite;
}

/* soft pulsing attention animation */
@keyframes hint-pulse {
    0%   { opacity: 0.5; transform: translate(-50%, 0); }
    50%  { opacity: 1;   transform: translate(-50%, -2px); }
    100% { opacity: 0.5; transform: translate(-50%, 0); }
}

#hero.hero-hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 12px;
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: transparent;
}

.logo {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;            /* we already set this in JS but fine to keep */
    transition: color 0.3s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    background: none;
    border: none;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* --- Filter Dropdown --- */
.filter-nav {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: right;
    display: flex;
    align-items: center;
}

.current-filter {
    opacity: 0.7;
    transition: opacity 0.3s;
    padding-bottom: 0;
    display: inline-block;
}

.filter-nav:hover .current-filter {
    opacity: 1;
}

/* Glassy drop-down panel */
.filter-menu {
    list-style: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;

    /* Maximum Darkness: Pure black with 90% opacity */
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);

    /* Blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 10px 0;
    z-index: 50;

    display: none;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.filter-nav.open .filter-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* List item styling */
.filter-menu li {
    padding: 8px 20px; 
    cursor: pointer;
    white-space: nowrap; 
    transition: background-color 0.2s ease;
}

.filter-menu li:hover {
    background-color: rgba(255, 255, 255, 0.12); 
}

.filter-menu li.active {
    color: #fff;
    font-weight: bold;
}
/* *** END NEW MENU STYLES *** */

/* --- MAIN WRAPPER --- */
#gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 12px;
    position: relative;
    z-index: 1;

    /* start hidden below viewport */
    transform: translateY(100vh);
    transition: transform 1.1s ease-out;
}

/* when hero is done, pull gallery up into place */
body.hero-done #gallery {
    transform: translateY(0);
}

/* --- FEATURED FULL-WIDTH ITEM --- */
#featured {
  margin-top: 64px;          /* ← THIS fixes the black bar */
  margin-bottom: 30px;
  display: block;
}


#featured .gallery-item.featured {
    width: 100%;
}
/* --- FIX: HIDES SMALL MOTION GRAPHICS ITEMS BY DEFAULT --- */
/* This targets all gallery items that have the data-category="motion" attribute */
.gallery-item[data-category="motion"] {
    display: none;
}
/* --- MOTION FEATURED FULL-WIDTH ITEM --- */
#motion-featured {
    margin-bottom: 30px;
    display: none;
}

#motion-featured .gallery-item.motion-featured {
    width: 100%;
}


/* --- Masonry-style gallery using columns for rest --- */
.gallery-grid {
    column-count: 4; /* CHANGED TO 4 COLUMNS */
    column-gap: 15px;
    /* FIX: Force proper column balancing */
    orphans: 1;
    widows: 1;
}

/* Gallery items (used in both featured + grid) */
.gallery-item {
    position: relative;
    margin-bottom: 15px;
    /* FIX: Stronger break avoidance */
    break-inside: avoid-column; 
    -webkit-column-break-inside: avoid;
    border-radius: 35px;
    overflow: hidden;
    background: #111;

    transform: translateY(40px);
    transition: transform 0.6s ease;

    display: inline-block;
    width: 100%;
}

/* cinematic cursor */
.gallery-item,
.gallery-item video,
.gallery-item img {
    cursor: url('images/cursor-reel.png') 16 16, pointer;
}

/* Slide-in effect */
.gallery-item.in-view {
    transform: translateY(0);
}

/* Default Video Behavior (Fallback for non-preview videos) */
video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.5s ease;
    filter: grayscale(20%);
}

.gallery-item:hover video {
    opacity: 1;
    transform: scale(1.02);
    filter: grayscale(0%);
}

/* Default Image Behavior */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.5s ease;
    filter: grayscale(20%);
}

.gallery-item:hover img {
    opacity: 1;
    transform: scale(1.02);
    filter: grayscale(0%);
}

/* --- OVERLAY FIX: ENSURE TEXT STAYS ON TOP --- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 5; /* Ensure this is higher than the video preview */
    pointer-events: none;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* CHANGED FONT TO INTER FOR CINEMATIC LOOK */
.overlay h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.overlay p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
}

/* --- PREVIEW & COVER LOGIC (THE FIX) --- */

/* 1. Cover Image acts as the "Base": Static position, defines card height */
.gallery-item .cover {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* 2. Video Preview floats on top: Absolute position IF a cover exists */
/* MODIFIED: If it's just the video (no cover), let it be the block element */
.gallery-item .preview {
    display: block;       /* changed from absolute to block by default */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2; 
    /* removed opacity: 0 so it is visible by default if it is the only element */
    transition: transform 0.4s ease; /* removed opacity transition */
}

/* If a cover DOES exist, we want the video to be absolute and hidden initially */
.gallery-item .cover + .preview {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 3. Reveal video on hover (only applies if we have the cover+preview combo) */
.gallery-item:hover .cover + .preview {
    opacity: 1;
    transform: scale(1.05); 
    filter: grayscale(0%);
}

/* Standard hover effect for the single video preview (zoom/color) */
.gallery-item:hover .preview {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* -------------------------------------- */


/* --- About Overlay --- */
.about-content-layout {
    display: flex;
    flex-direction: column; /* Default stack on mobile */
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px; /* Limits the max width of the content */
    padding: 20px;
    gap: 40px; /* Spacing between image and text */
}

/* Photo Column Styling */
.about-photo-col {
    width: 100%;
    max-width: 300px; /* Controls max size of the image on mobile */
    aspect-ratio: 1 / 1; /* Forces a square container */
    overflow: hidden;
    /* Optional: Add a subtle border or box shadow if desired */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
}

.about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the square container without distortion */
    display: block;
}

/* Text Column Styling */
.about-text-col {
    width: 100%;
    max-width: 600px;
    padding-top: 20px; /* Add some space above the text on mobile */
}

/* Desktop: Switch to two columns */
@media (min-width: 768px) {
    .about-content-layout {
        flex-direction: row; /* Side-by-side on desktop */
        align-items: flex-start; /* Align content to the top */
        gap: 80px; /* Increased spacing on desktop */
    }

    .about-photo-col {
        flex-shrink: 0; /* Keep the photo column from shrinking */
        width: 300px;
        max-width: 300px;
        margin-top: 15px; /* Offset to align with text */
    }

    .about-text-col {
        flex-grow: 1; /* Allow text column to take remaining space */
        padding-top: 0;
    }
}
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98); /* Darker background */
    z-index: 2000; /* Super high to sit on top of everything */
    display: none; /* This fixes the ghost cross issue */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-container.active {
    display: flex; /* Only show when clicked */
    opacity: 1;
}

.about-content {
    max-width: 650px;
    padding: 20px;
    text-align: left;
    margin: 0 auto;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.overlay-container.active .about-content {
    transform: translateY(0);
}
/* screenplay-style bio */
.script-block {
    width: 100%;
    margin-bottom: 1.8rem;
}

/* EXT. PORTFOLIO – ABOUT */
.script-slug {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

/* character name */
.script-character {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    text-align: center;
}

/* dialogue lines */
.script-dialogue {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.about-content h2 {
    font-family: 'Anton', system-ui, sans-serif;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bio {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.2rem;
}

/* center the whole contact section */
.contact-info {
    margin-top: 2rem;
    text-align: center;      /* ⬅ important */
}

.contact-info h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
}

.socials {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.socials a {
    font-size: 0.85rem;
    opacity: 0.7;
    border-bottom: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}

.socials a:hover {
    opacity: 1;
    border-bottom: 1px solid #fff;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: transform 0.3s, opacity 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* Layout: video on the left, text on the right */
.project-layout {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Video column */
.project-video-col {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh; /* <--- FIX */
}


.project-video-col video,
#project-video {
    width: 100%;
    max-height: 70vh;
    background: #000;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border-radius: 0;
}

#project-youtube {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Large photo in overlay - Rounded corners ONLY here */
#project-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border-radius: 35px; /* Rounding applies only to the photo */
    display: none;
}

/* Info column (corpus area) */
.project-info-col,
.project-meta-panel {
    flex: 2;
    font-family: "Courier New", Courier, monospace;
    color: #f0f0f0;
    padding-top: 4px;
}

/* Title CHANGED FONT TO INTER */
.project-meta-panel #project-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

/* Meta line (type · role) */
.project-meta-panel #project-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 1.4rem;
}

/* Description text */
.project-meta-panel #project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d0d0d0;
}

.project-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(14px) saturate(115%);
-webkit-backdrop-filter: blur(14px) saturate(115%);

  display: none;          /* hidden by default */
  opacity: 0;
  pointer-events: none;

  z-index: 9999;
}

.project-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Close button (top-right of overlay) */
.project-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
}

.project-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Responsive tweaks: Stack on Mobile */
@media (max-width: 1024px) {
    #project-overlay .project-layout {
        flex-direction: column; /* Stack vertically on smaller screens */
        gap: 30px;
        padding-top: 40px;
    }

    #project-overlay .project-video-col {
        height: auto;
        max-height: 50vh; /* Shorter video on mobile */
        width: 100%;
        max-width: 100%;
    }
    
    #project-youtube {
        width: 100%;
        height: 50vh; /* Force height */
    }

    #project-overlay .project-meta-panel {
        width: 100%;
        text-align: center; /* Center text on mobile */
    }
    
    /* 2 Columns on Tablet */
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    #project-overlay {
        align-items: flex-start;
        padding-top: 80px;
    }

    .project-close {
        top: 20px;
        right: 20px;
        font-size: 2.4rem;
    }
    
    /* 1 Column on Mobile */
    .gallery-grid {
        column-count: 1;
    }
}

/* ===============================
   PROJECT OVERLAY LAYOUT FIX
   (Centers + scales media)
================================ */

/* Center the whole overlay content */
.project-overlay.active{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;       /* breathing room */
  box-sizing: border-box;
}

/* Main layout block inside overlay */
.project-layout{
  width: min(1500px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: start;       /* keep text aligned like now */
}

/* Left column should NOT collapse */
.project-video-col{
  width: 100%;
  min-width: 0;
}

/* Make the embedded player big and responsive */
.project-video-col iframe,
.project-video-col video,
.project-video-col img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;      /* keep your rounded style */
  border: 2px solid rgba(255,255,255,0.28);
box-shadow: 0 20px 60px rgba(0,0,0,0.65);
overflow: hidden;

}

/* Give iframe a proper height (so it won’t glue to top / shrink) */
.project-video-col iframe{
  aspect-ratio: 16 / 9;     /* default = horizontal */
  height: auto;
  max-height: 84vh;         /* fills screen but stays inside */
}

/* If your JS adds a class for vertical items, this will make vertical bigger */
.project-overlay.is-vertical .project-video-col iframe,
.project-overlay.is-vertical .project-video-col video,
.project-overlay.is-vertical .project-video-col img{
  aspect-ratio: 9 / 16;
  max-height: 82vh;
}

/* Make the close button stay in the corner */
.project-close{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;
}

/* Mobile: stack video above text */
@media (max-width: 980px){
  .project-overlay.active{
    padding: 24px;
  }
  .project-layout{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .project-video-col iframe{
    max-height: 60vh;
  }
}

/* =========================================
   CATEGORY DROPDOWN – GLASS RESTORE
========================================= */

.filter-menu{
  background: rgba(40, 40, 40, 0.45) !important;  /* translucent dark glass */
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);

  border: 1px solid rgba(255, 255, 255, 0.35);    /* white glass stroke */
  border-radius: 18px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  overflow: hidden;
}

/* hover highlight stays subtle */
.filter-menu li:hover{
  background: rgba(255, 255, 255, 0.12);
}

/* active item */
.filter-menu li.active{
  background: rgba(255, 255, 255, 0.16);
}
/* Loader: visible until video actually starts */
#hero-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.9);
  animation: spin 0.8s linear infinite;
  opacity: 1;
}

@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

/* Hint: hidden at first */
#hero .skip-hint {
  position: absolute;
  bottom: 32px;     /* <- keeps it where it used to be */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* When hero is ready, remove loader */
body.hero-ready #hero-loader { opacity: 0; pointer-events: none; }

/* Show hint only after we say so */
body.hero-hint-on #hero .skip-hint { opacity: 1; }

/* ===== Landing "Show more" button ===== */
.show-more-wrap{
  width: 100%;
  display: none;              /* JS will turn it on only when needed */
  justify-content: center;
  padding: 50px 0 30px;
}

#show-more{
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#show-more:hover{
  transform: translateY(-1px);
  opacity: 1;
}

/* ===== Show More: local dropdown menu (glassy) ===== */
.show-more-wrap{
  position: relative; /* important: menu positions relative to this block */
}

.show-more-menu{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(70% + 12px);
  min-width: 220px;

  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;

  background: rgba(40, 40, 40, 0.45);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  padding: 10px 0;
  z-index: 999;
}

/* open state */
.show-more-wrap.open .show-more-menu{
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* style the cloned <li> items */
.show-more-menu li{
  list-style: none;
  padding: 8px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.show-more-menu li:hover{
  background: rgba(255, 255, 255, 0.12);
}

.show-more-menu li.active{
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

/* =========================
   FOOTER
========================= */
.site-footer{
  width: 100%;
  padding: 28px 18px 40px;
  margin-top: 40px;
}


.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 33px;
  border-radius: 35px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255,255,255,0.22);

  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-brand{
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  opacity: 0.95;
}

.footer-note{
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.65;
}

.footer-copy{
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.5;
}

.footer-links{
  margin-left: auto;            /* <-- pushes links to the right */
  justify-content: flex-end;     /* <-- aligns them to the right */
  align-self: flex-end;
  padding-bottom: 4px;
  text-align: right;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-right: 100px;
}

.footer-link{
  font-size: 0.9rem;
  opacity: 0.75;
  text-decoration: none;
  color: #fff;
  transition: opacity .2s ease;
}
.footer-link:hover{ opacity: 1; }

.back-to-top{
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.25);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  opacity: 0.9;
  transition: transform .2s ease, opacity .2s ease;
  white-space: nowrap;
}

#back-to-top, .back-to-top{
  position: absolute;
  right: 18px;
  bottom: 16px;
}

.back-to-top:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Mobile stack */
@media (max-width: 780px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links{
    justify-content: flex-start;
  }
}

/* HERO scroll fade/blur */
#hero{
  will-change: opacity, filter;
}

#hero-video{
  will-change: opacity, filter;
}

/* optional: smoothness (helps if your JS updates a lot) */
#hero, #hero-video{
  transition: opacity 0.12s linear, filter 0.12s linear;
}
