/* ============================================================
   Myriad Pro font faces
   ============================================================ */
   @font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/MyriadPro-Regular.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/MyriadPro-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/MyriadPro-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* ============================================================
     Reset
     ============================================================ */
  *, *::before, *::after {
  cursor: none !important;
}
    
  html, body {
    margin: 0;
    padding: 0;
  }
  
  /* ============================================================
     Base
     ============================================================ */
  body {
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 0.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: inherit;
    transition: color 0.2s ease;                 /* ← add this line */
  }
  
  
  a:hover {  
    color: #c00;  
    text-decoration: none;
  }
  
  

  /* ============================================================
     Custom cursor
     ============================================================ */
  

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100000;        /* ← was 9999; bump to ensure it's always on top */
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  }
  .cursor-dot.hovering {
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.4);
  }
  
  /* ============================================================
     Header
     ============================================================ */
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px 10px 34px;
    position: relative;
    z-index: 2;
  }
  
  .brand a {
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 0.8;
    color: #000;
  }
  .brand a:hover {
    color: #c00;
  }
  
  
  .nav ul {
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 17px;
    letter-spacing: 1em;
  }
  .nav a {
    color: #000;
    font-weight: 400;
    transition: color 0.2s ease;                /* ← add this */
  }
  .nav a:hover {                                  /* ← new rule */  
    color: #c00;
  }
  
  /* ============================================================
     Main content area
     ============================================================ */
  main {
    padding: 0 20px 10px 20px;
  }
  
  /* ============================================================
     Front page hero
     ============================================================ */
  .hero {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  .caption {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 10px 0 20px 5px;
    color: #000;
    font-weight: 400;
  }
  
  /* ============================================================
     Projects list page
     ============================================================ */
  .projects {
    width: 100%;
    padding: 0;
  }

  .projects-list {
    list-style: none;
    margin: -20px;
    padding: 20px 40px 20px 0px;  /* the position of the image */   
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  
  .project-row {    
    width: 100%;    
    text-align: center;                /* center the image horizontally */    
    padding: 0 20px;                   /* side margin from container */
  }
  
  .project-row figure {
    margin: 0;
    width: 100%;
  }
  
  .project-row figure a {
    display: block;
    text-decoration: none;
    color: #000;
  }
  
  .project-row figure img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .project-row figure figcaption {
    padding: 12px 0 0 0;
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    color: #000;
  }
  
  .project-row figure figcaption strong {
    font-weight: 600;
  }
  
  /* ============================================================
   Project thumbnail hover animation
   ============================================================ */
  .project-link {
    display: block;
    text-decoration: none;
    color: #000;
  }

  .project-link figure {
    overflow: hidden;                                /* keeps the scaled image inside its frame */
  }

  .project-thumb { 
    width: 100%; 
    aspect-ratio: auto; 
    object-fit: contain; 
    display: block; 
  }
  
  
  .project-figure {    
    width: 100%;    
    max-width: 100%;                 /* image column width */    
    margin: 20 auto;                    /* center it */
  }
  

  
  .project-link .project-thumb {
    display: block;
    width: 100%;
    height: auto;
    background: #f5f5f5;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .project-link:hover .project-thumb {
    transform: scale(1.03);                          /* subtle 3% scale-up */
    opacity: 0.92;                                    /* slight dim — reads as "interactive" */
  }

  .project-link:focus-visible .project-thumb {
    transform: scale(1.03);                          /* same effect on keyboard focus */
    opacity: 0.92;
  }


  
  
  .project-thumb--empty {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
  }
  
  .project-link figure figcaption {
    padding: 12px 0 0 0;
  }
  
  /* Generic .project-title — applies to project titles anywhere */
  .project-title {
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 0 0 8px 0;
    color: #000;
  }
  
  .project-description {
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #333;
    margin: 0;
    max-width: 720px;
  }
  
  /* ============================================================
   Project detail page
   ============================================================ */
  .project-detail {
    padding: 0;
  }

  .project-header {
    margin: 0 0 8px 0;
    padding: 0;
    text-align: center;                  /* left-aligned, not centered */
  }

  .project-header .project-title {
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    color: #000;
  }

  .project-header .project-description {
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #333;
    margin: 0;
    max-width: 720px;
  }

/* ============================================================
   Carousel — image in dark grey stage, title in white below
   ============================================================ */
   .carousel {
    position: relative;
    width: 100%;
    margin-top: -20px;
    background: transparent;
  }
  
  .carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .carousel__track::-webkit-scrollbar {
    display: none;
  }
  
  .carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
  }
  
  .carousel__stage {
    position: relative;
    width: 100%;
    height: 90vh;                              /* let it follow content */
    max-height: 800px;                          /* remove the 800px cap */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;                           /* slightly more breathing room */
    box-sizing: border-box;

    /* these are the actual ceilings */
    --video-max-width:  min(95vw, 1600px);
    --video-max-height: 200vh;
}



  .carousel__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;                     /* respects the 40px+40px stage padding */
    object-fit: contain;
    background: rgba(59, 59, 59, 0);
  }
  .carousel__video {
    display: block;
    width: 50vw;                              /* 60% of viewport width */
    max-width: 1100px;                        /* hard ceiling */
    max-height: 78vh;
    aspect-ratio: var(--video-aspect, 16 / 9);
    object-fit: cover;
    background: #000;
}


  
  /* show as empty placeholder while video metadata loads */
  .carousel__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #888;
    aspect-ratio: var(--video-aspect, 16 / 9);
    max-width: var(--video-max-width);
  }
  
  .carousel__caption {
    margin: -19px auto 0 auto; 
    padding: 4px 24px 12px 24px;  
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.15em;
    
    color: #000;
    text-align: center;
    background: transparent;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #0c0b0b;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    opacity: 0.4;
    z-index: 3;
  }

  .carousel__btn.is-disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  
  .carousel__btn:hover {
    opacity: 0.9;
  }
  .carousel__btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
    opacity: 1;
  }
  .carousel__btn svg {
    width: 32px;
    height: 32px;
    display: block;
  }
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }
  
  .carousel__counter {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 36px 24px;
    background: transparent;
    border: 1px solid transparent;
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #6d6b6b;
    z-index: 2;
  }

  
  

  /* ============================================================
   Carousel — explicit cursor: none on every element
   Ensures the OS cursor never appears in the carousel area
   ============================================================ */
   .carousel,
   .carousel *,
   .carousel *::before,
   .carousel *::after,
   .carousel button,
   .carousel button *,
   .carousel button svg,
   .carousel button svg * {
     cursor: none !important;
   }
   

  

  /* ============================================================
     Empty state
     ============================================================ */
  .empty-state {
    list-style: none;
    padding: 60px 0;
    text-align: center;
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
  }
  
  /* ============================================================
     Site footer
     ============================================================ */
  .site-footer {
    text-align: left;
    padding: 16px 32px 24px 32px;
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
  }
  .site-footer p { margin: 0; }
  
  /* ============================================================
     Responsive
     ============================================================ */
  @media (max-width: 720px) {
    .site-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding: 16px 20px 4px 20px;
    }
    .brand a {
      font-size: 22px;
      letter-spacing: 0.12em;
      transition: color 0.2s ease; 
    }
    .nav ul {
      gap: 18px;
      flex-wrap: wrap;
    }
    main {
      padding: 0 20px 16px 20px;
    }
    .projects { padding: 16px 20px 48px 20px; }
    .projects-list { gap: 32px; }
    .project-detail { padding: 16px 20px 48px 20px; }
    .carousel__btn { width: 40px; height: 40px; font-size: 24px; }
    .carousel__btn--prev { left: 8px; }
    .carousel__btn--next { right: 8px; }
    .carousel__caption { padding: 12px 20px; }
  }
  
  /* portrait uploads: don't get stretched into a wide letterbox */
@supports not (aspect-ratio: 1) {
  .carousel__stage { padding-top: 56.25%; position: relative; }
  .carousel__image,
  .carousel__video {
    position: absolute; inset: 0; height: 100%;
  }
}

/* ---------- Mobile-friendly tweaks ----------- */
@media (max-width: 720px) {
  .carousel__stage {
    --video-max-width:  100vw;
    --video-max-height: 60vh;
  }
}


