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

    @font-face {
    font-family: "terminal";
    src: url("fonts/terminal.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    }

    @font-face {
    font-family: "terminal open";
    src: url("fonts/terminal-open.otf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    }
    
    .chakra-petch-medium {
        font-family: "Chakra Petch", sans-serif;
        font-weight: 500;
        font-style: normal;
    }
    body {
      font-family: "Chakra Petch", sans-serif;
      background: #000000;
      color: #fff;
      overflow-x: hidden;
    }

    body::-webkit-scrollbar {
      display: none;
    }

    /* Vertical scroll space */
    .scroll-container {
      height: 450vh;
    }

    /* Fixed header */
    .header {
      font-family: "terminal", Impact, Helvetica, sans-serif;
      position: fixed;
      top: 24px;
      left: 24px;
      z-index: 10;
      pointer-events: none;
    }

    .header h1 {
      font-size: 2.5rem;
      font-weight: 100;
      letter-spacing: 0.02em;
      color: #ff7b00;
    }

    .header h2 {
      font-size: 1rem;
      font-weight: 500;
      letter-spacing: 0.02em;
    }

    .header p {
      font-size: 0.75rem;
      opacity: 0.6;
      margin-top: 4px;
    }

    /* Horizontal viewport */
    .horizontal-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 100vw;
      overflow: hidden;
    }

    .horizontal {
      display: flex;
      align-items: center;
      height: 100vh;
      padding: 8vw;
      gap: 12vw;
      will-change: transform;
    }

    /* Intro block */
  .intro {
  min-width: 20vw;
height: 100vh;  
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* stop pushing content with space-between */

  padding: 1rem 0;
  position: relative; /* needed for absolute bottom link */
}

.intro-center {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%); /* true vertical centering */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* or center if you want */
  gap: 0.5rem;
  padding-left: 1rem; /* optional for spacing from edge */
}


.intro p {
  font-size: 0.9rem;
}


.portfolio-link {
  position: fixed;    /* now truly fixed on viewport */
  bottom: 1rem;
  left: 1rem;
  color: #00fffb;
  text-decoration: none;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.9rem;
  z-index: 20;        /* above images */
}

.portfolio-link:hover {
  color: #ff6600;
}

    /* Image grid */
    .grid {
      display: grid;
      grid-auto-flow: column;
      grid-template-rows: 1fr 1fr;
      gap: 2vw;
      align-items: center;
      margin-top: 8vh;
    }

    .grid img {
        object-fit: contain;
        width: auto;
        height: auto;
        max-height: 78vh;
        max-width: none;
        filter: contrast(1.05);
        transition: transform 0.4s ease;
        cursor: pointer;
    }

    .grid img:hover {
      transform: scale(1.03);
    }

    /* Horizontal images */
    .grid img.h {
      grid-row: span 1;
      width: 34vw;
      height: 38vh;
    }

    /* Vertical images */
    .grid img.v {
      grid-row: span 2;
      width: 22vw;
      height: 78vh;
    }

    /* End block */
    .end {
      min-width: 30vw;
      opacity: 0.6;
      font-size: 0.85rem;
    }

    .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
    cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.3s ease;

}

.lightbox.active img {
  transform: scale(1);
}

.lightbox,
.lightbox * {
  outline: none;
}

.end a {
  color: #00fffb; /* change this to whatever color you want */
  text-decoration: none; /* remove underline if you like */
  font-family: "Chakra Petch", sans-serif;
}

.end a:hover {
  color: #ff6600; /* color when hovered */
  font-family: "Chakra Petch", sans-serif;
}

@media (max-width: 768px) {

  /* Disable fake horizontal scrolling */
  .scroll-container {
    height: auto;
  }

  .horizontal-wrapper {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .horizontal {
    position: relative;
    display: block;   /* stack vertically */
    height: auto;
    transform: none !important;
    padding: 1.5rem;
    gap: 0;
  }

  /* Intro becomes normal block */
  .intro {
    min-width: 100%;
    height: auto;
    position: relative;
    padding: 3rem 1rem;
  }

  .intro-center {
    position: relative;
    top: auto;
    transform: none;
    padding: 0;
  }

  /* Grid becomes vertical flow */
  .grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* Images scale naturally */
  .grid img,
  .grid img.h,
  .grid img.v {
    width: 100%;
    height: auto;
    max-height: none;
  }

  /* End block */
  .end {
    min-width: 100%;
    margin: 4rem 0;
  }
   .scroll-hint {
    display: none;
  }
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner p {
  font-family: "terminal", monospace;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #00fffb;
  animation: blink 1.2s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}
