    :root {
      --bg: #ffffff;
      --text: #0f172a;
      --muted: #64748b;
      --overlay: rgba(0,0,0,0.55);
      --radius: 1.25rem;
      --shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    h1, h2 {
      margin-top: 0;
      line-height: 1.2;
    }

    p {
      margin-bottom: 1rem;
      color: var(--muted);
    }

    /* ---------- Hero ---------- */

    .portfolio-hero-wrapper {
      position: relative;
      height: 70vh;
      min-height: 420px;
      overflow: hidden;
    }

    .portfolio-hero {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 70vh;
      min-height: 420px;
      background-image: url("portimages/fujitrip2.gif");
      background-size: cover;
      background-position: center;
      z-index: 1;
    }

    .hero-content {
      position: relative;
      padding: clamp(2rem, 5vw, 4rem);
      max-width: 900px;
      color: white;
      z-index: 2;
    }

    .portfolio-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
    }

    .hero-content h1 {
      font-size: clamp(2.8rem, 6vw, 3.8rem);
      margin-bottom: 0.75rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .hero-content p {
      font-size: 1.05rem;
      color: #e5e7eb;
      max-width: 600px;
    }

    /* ---------- Intro ---------- */

   .portfolio-intro {
      /* margin-top: 70vh; */
      padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 2.5rem;
      background: white;
      position: relative;
      z-index: 3;
    }



    .portfolio-intro .container {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }

    .portfolio-intro h2 {
      font-size: clamp(1.8rem, 4vw, 2.4rem);
      margin-bottom: 0.75rem;
    }

    .portfolio-intro p {
      font-size: 1.05rem;
    }

    /* ---------- Mosaic Grid ---------- */

    .portfolio-gallery {
      position: relative;
      z-index: 3;
      background: black;
      padding: 2rem 1.5rem 5rem;
    }


    .portfolio-gallery .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .mosaic-grid {
      column-count: 3;
      column-gap: 1.5rem;
    }

    .mosaic-item {
      break-inside: avoid;
      margin-bottom: 1.5rem;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      cursor: pointer;
      transition: transform 0.25s ease;
      background: #f8fafc;
    }

    .mosaic-item:hover {
      transform: translateY(-6px);
    }

    .mosaic-item img {
      width: 100%;
      display: block;
    }

    .mosaic-caption {
      padding: 0.85rem 1rem;
      font-size: 0.9rem;
      color: var(--muted);
      background: white;
    }

    /* ---------- Lightbox ---------- */

    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 2rem;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox-content {
      max-width: 900px;
      width: 100%;
      background: white;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0,0,0,0.4);
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    .lightbox-image img {
      width: 100%;
      height: auto;
      display: block;
    }

    .lightbox-text {
      padding: 1.5rem 2rem 2rem;
    }

    .lightbox-text h3 {
      margin-bottom: 0.5rem;
    }

    .lightbox-text p {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .lightbox-close {
      position: absolute;
      top: 1.25rem;
      right: 1.5rem;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      user-select: none;
    }

    .lightbox-content {
      max-width: 900px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      background: white;
      border-radius: var(--radius);
      box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    }


    /* ---------- Responsive ---------- */

    @media (max-width: 1024px) {
      .mosaic-grid {
        column-count: 2;
      }
    }

    @media (max-width: 640px) {
      .mosaic-grid {
        column-count: 1;
      }

      .portfolio-hero {
        height: 60vh;
      }
    }

    /* ------------ Back to top arrow -----------*/

   #backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-4px);
}



.cta-buttons a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #000;
  color: #000;
  transition: all 0.2s ease;
}

.cta-buttons a.primary {
  background: #000;
  color: #fff;
}

.cta-buttons a.pop {
  background: orange;
  color: blue;
}

.cta-buttons a:hover {
  transform: translateY(-2px);
}