/* Disable scroll until intro completes */
body {
  overflow: hidden;
  margin: 0;
  background: #0a0a0a;
}
body.scroll-enabled {
  overflow: hidden; /* still hidden — we handle scroll manually */
}

#scroll-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

#scroll-track {
  display: flex;
  height: calc(var(--vh, 1vh) * 100);
  will-change: transform;
}

.panel {
  flex-shrink: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  position: relative;
  overflow: hidden;
}

.panel--hero {
  /* This width is calculated to fit the right photo offset exactly + 5rem buffer */
  /* Formula: (Right photo left anchor) + (Right photo width) + (5rem buffer) */
  width: max(100vw, calc(min(calc(50vw + (50vh - 8rem)), calc(100vw - 4rem)) + calc(20rem + 6vw) + 5rem));
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  height: calc(var(--vh, 1vh) * 100);
}

.hero-video-wrapper {
  /* Video area always stays locked to full screen width */
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.panel--hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-collage-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 10;
  pointer-events: none;
}

/* Remove the old collage and spacer panel styles */
.panel--collage, .panel--spacer {
  display: none;
}

.panel__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.panel--photo {
  /* 90rem at 14px base is ~1.2x screen width */
  width: 90rem; 
  height: calc(var(--vh, 1vh) * 100);
}

.panel--photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.panel--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.panel--portrait {
  width: 45rem !important;
  margin-left: 0.5rem;
  height: calc(var(--vh, 1vh) * 100);
}

.panel--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.panel--cta h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 0 0 1rem;
}

.panel__caption {
  position: absolute;
  bottom: calc(var(--vh, 1vh) * 8);
  left: 4rem;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.panel__caption .caption__number {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.panel__caption h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.panel__caption p {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* 3-Photo Grid (1 Top, 2 Bottom) */
.panel--grid-1-2 {
  width: 100rem !important;
  height: calc(var(--vh, 1vh) * 100) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem;
  background: #000;
  padding: 0;
  overflow: hidden;
  margin-left: 0.5rem;
}

.row-top {
  height: 60%;
  width: 100%;
}

.row-bottom {
  height: 40%;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.row-bottom .grid-item {
  flex: 1;
  height: 100%;
}

.panel--grid-1-2 .grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #111;
}

.panel--grid-1-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Panel Section — identical sizing to .panel--contact */
.panel--about {
  width: 40rem !important;
  max-width: 100vw;
  background: var(--color-bg);
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 5vh 0.75rem 5vh 2rem;
  overflow: hidden;
  position: relative;
}

.about-content {
  width: 100%;
  max-width: min(35rem, calc(100vw - 1.5rem));
  text-align: left;
  transform-origin: left center;
  transform: scale(min(1, calc(100vh / 900)));
  position: relative;
}

.about-rule {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 1.5rem;
}

.about-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
}

.about-name {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  letter-spacing: 0.2em !important;
  color: var(--color-text) !important;
  margin-bottom: 1rem !important;
  text-align: right;
}

.about-image {
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
  margin-bottom: 0;
  border: 4px solid #fff;
}

.about-email {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  margin-top: 2rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.about-email:hover {
  color: rgba(255,255,255,0.8);
}

.about-credit {
  display: block;
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s;
}

.about-credit:hover {
  color: rgba(255,255,255,0.5);
}

/* Contact Panel Section */
.panel--contact {
  width: 40rem !important;
  max-width: 100vw;
  background: var(--color-bg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 5vh 0.75rem;
  overflow: hidden;
}

.contact-content {
  width: 100%;
  max-width: min(35rem, calc(100vw - 1.5rem));
  text-align: center;
  transform-origin: center center;
  transform: scale(min(1, calc(100vh / 900)));
}

/* On very short mobile screens (landscape), scale aggressively to fit */
@media (max-height: 500px) {
  .contact-content,
  .about-content {
    transform: scale(min(1, calc(100vh / 600)));
  }
}

.contact-content h2 {
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.contact-content form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-content input,
.contact-content textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.8rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s;
}

.contact-content input:focus,
.contact-content textarea:focus {
  border-bottom-color: #fff;
}

.contact-content button {
  background: #fff;
  color: #000;
  border: none;
  padding: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: opacity 0.3s;
}

.contact-content button:hover {
  opacity: 0.8;
}

/* Prevent hover state from sticking on touch devices */
@media (hover: none) {
  .contact-content button:hover {
    opacity: 1;
  }
}

.contact-socials {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-socials a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.contact-socials a:hover {
  color: #fff;
}

/* Staggered 2x2 Grid Panel */
.panel--grid-4 {
  width: 100rem !important;
  height: calc(var(--vh, 1vh) * 100) !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  background: #000;
  padding: 0;
  overflow: hidden;
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.col-left { width: 58%; }
.col-right { width: 42%; }

.item-tl { height: 42%; }
.item-bl { height: 58%; }
.item-tr { height: 67%; }
.item-br { height: 33%; }

.panel--grid-4 .grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #111; 
  aspect-ratio: auto; /* Let the height/width percentages handle it */
}

.panel--grid-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .panel--grid-1-2 {
    width: calc(300vw + 1rem) !important;
  }
  .panel--grid-4 {
    width: calc(100vw / 0.42 + 0.5rem) !important;
  }
  .panel--portrait {
    width: 100vw !important;
  }
}

/* Grunge accents — rough borders on panels */
.panel--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
