* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html,
body {
  width: 100vw;
  min-height: 400vh;
  background-color: #111111;
  color: #fff;
  overflow-x: hidden;
  padding-bottom: 2em;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Hide scrollbar like Lusion website */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.loading-subtext {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

h1 {
  text-transform: uppercase;
  font-size: 225px;
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

a,
p {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

p span {
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.logo {
  width: 30px;
  height: 30px;
}

.model {
  position: fixed;
  z-index: 2;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.nav-links {
  display: flex;
  gap: 2em;
  align-items: center;
}

nav img {
  width: 40px;
  height: 30px;
}

nav a {
  text-transform: uppercase;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.7;
}

section {
  width: 100vw;
  height: 100vh;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
}

.header-row {
  display: flex;
  gap: 12em;
  align-items: center;
}

.header-row p {
  text-transform: uppercase;
  width: 20%;
}

.archive {
  height: 200vh !important;
  display: flex;
  flex-direction: column;
  gap: 3em;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.archive-header p {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 200;
  font-size: 16px;
  letter-spacing: 2px;
}

.archive h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 120px;
  font-weight: 200;
  color: #4f4f4f;
  letter-spacing: -0.01em;
}

.archive-info {
  width: 100%;
  padding: 1em;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.archive-info p {
  text-transform: uppercase;
  color: #4f4f4f;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 1px;
}

.outro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6em 2em 2em 2em;
  min-height: 100vh;
  height: auto;
}

.outro-copy h2 {
  width: 75%;
  text-transform: uppercase;
  font-size: 60px;
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.outro-copy h2 .line {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
  display: block;
}

.outro-copy h2 .line span {
  position: relative;
  will-change: transform;
  display: block;
  transform: translateY(70px);
}

.outro-copy p {
  display: flex;
  margin: 1em 0;
  gap: 2em;
  text-transform: uppercase;
  font-weight: 200;
  letter-spacing: 0.5px;
}

.outro-copy p span {
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-transform: uppercase;
}

.footer p:nth-child(1) {
  width: 25%;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: clamp(80px, 15vw, 150px);
  }

  nav {
    padding: 1.5em 1.5em;
  }

  .nav-links {
    gap: 1.5em;
  }

  .nav-links a {
    font-size: 12px;
  }

  .intro {
    padding: 8em 1.5em 4em 1.5em;
  }

  .header-row p {
    width: 100%;
    font-size: 13px;
  }

  .archive {
    padding: 4em 1.5em;
  }

  .archive-item h2 {
    font-size: clamp(40px, 8vw, 60px);
  }

  .outro {
    padding: 4em 1.5em 2em 1.5em;
  }

  .outro-copy h2 {
    width: 100%;
    font-size: clamp(40px, 8vw, 50px);
  }
}

/* Mobile landscape and smaller (max-width: 768px) */
@media (max-width: 768px) {
  body {
    min-height: 300vh;
  }

  h1 {
    font-size: clamp(60px, 12vw, 100px);
    line-height: 0.9;
  }

  nav {
    padding: 1em 1em;
    flex-direction: column;
    gap: 1em;
    align-items: flex-start;
  }

  .logo {
    height: 30px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.8em;
    width: 100%;
  }

  .nav-links a {
    font-size: 11px;
  }

  .intro {
    padding: 6em 1em 3em 1em;
    gap: 2em;
  }

  .header-row {
    gap: 1em;
  }

  .header-row p {
    font-size: 12px;
    line-height: 1.6;
  }

  .archive {
    padding: 3em 1em;
    gap: 2em;
  }

  .archive-header p {
    font-size: 10px;
  }

  .archive-item {
    gap: 1em;
  }

  .archive-item h2 {
    font-size: clamp(32px, 7vw, 45px);
  }

  .archive-info {
    flex-direction: column;
    gap: 0.5em;
  }

  .archive-info p {
    font-size: 12px;
  }

  .outro {
    padding: 3em 1em 1.5em 1em;
  }

  .outro-copy h2 {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 1.5em;
  }

  .outro-footer p {
    font-size: 10px;
  }

  /* Adjust 3D model container for mobile */
  .model {
    pointer-events: auto;
  }

  .model canvas {
    width: 100vw !important;
    height: 100vh !important;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(48px, 11vw, 70px);
  }

  .intro {
    padding: 5em 0.8em 2.5em 0.8em;
  }

  .archive {
    padding: 2.5em 0.8em;
  }

  .archive-item h2 {
    font-size: clamp(28px, 6.5vw, 38px);
  }

  .outro {
    padding: 2.5em 0.8em 1.5em 0.8em;
  }

  .outro-copy h2 {
    font-size: clamp(24px, 5.5vw, 32px);
  }

  .loading-text {
    font-size: 10px;
  }

  .loading-subtext {
    font-size: 9px;
  }

  .loading-spinner {
    width: 32px;
    height: 32px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  h1 {
    font-size: clamp(40px, 8vh, 80px);
  }

  .intro {
    padding: 4em 1em 2em 1em;
  }

  .archive-item h2 {
    font-size: clamp(30px, 6vh, 50px);
  }

  .outro-copy h2 {
    font-size: clamp(24px, 5vh, 40px);
  }
}
