/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter Light';
  src: url('fonts/Inter_24pt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter ExtraLight';
  src: url('fonts/Inter_18pt-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Inter Light', sans-serif;
  font-weight: 300;
  background: #fff;
  color: #000;
}


/* Scroll container with snapping */
.scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

/* Turn off scroll snapping on smaller screens */
@media (max-width: 768px) {
  .scroll-container {
    scroll-snap-type: none;
  }
}

@media (max-width: 768px) {
  .panel {
    height: auto;
    min-height: 100vh; /* still ensures panels are tall enough */
  }
}

@media (max-width: 768px) {
  .panel.project-hero {
    height: auto;
    min-height: 100vh; /* Optional: ensures it’s still at least full screen if content is short */
    padding-bottom: 2rem; /* Adds breathing room at bottom */
  }
}

/* Each panel = full screen, with scroll snap */
.panel {
  scroll-snap-align: start;
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner frame (20px inset) */
.inner-frame {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Hero panel styles */
.hero {
  background:  #1D003e;
  color: #fff;
  text-align: left;
}
.hero h1 {
  font-family: 'Inter Light', sans-serif;
  font-size: 11vw;
  color: #ccff33;
  font-weight: 100;
  line-height: 1;
  margin-left: 7px;
}

.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.in-view h1 .line {
  opacity: 1;
  transform: translateY(0);
}

.hero.in-view h1 .line:nth-child(1) {
  transition-delay: 0.3s;
}
.hero.in-view h1 .line:nth-child(2) {
  transition-delay: 0.6s;
}
.hero.in-view h1 .line:nth-child(3) {
  transition-delay: 0.9s;
}

.hero a,
.hero a:link,
.hero a:visited {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.hero a:hover,
.hero a:focus {
  color: #ccff33;
}

.hero a:active {
  color: #ccff33;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Logo */
.logo {
  position: fixed;
  top: 35px;
  left: 40px;
  font-size: 1rem;
  color: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Full image layout */
.single-image {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.single-image .inner-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* your white frame */
  height: 100%;
  box-sizing: border-box;
}

.single-image .image-col {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.single-image .image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 500px) {
  /* Default layout: Project pages */
  .panel.single-image {
    height: auto;
    margin: 20px 0;
  }

  .panel.single-image .inner-frame {
    padding: 0;
    height: auto;
    display: block;
  }

  .panel.single-image .image-col {
    height: auto;
  }

  .panel.single-image .image-col img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* Special layout: Tall portrait panels on homepage */
  .panel.single-image.tall-image {
    height: calc(100vh - 40px);
    margin: 20px 0;
  }

  .panel.single-image.tall-image .inner-frame {
    height: 100%;
    display: flex;
    align-items: flex-end; /* so caption stays near bottom */
    justify-content: center;
    padding: 0;
  }

  .panel.single-image.tall-image .image-col {
    height: 100%;
    position: relative;
  }

  .panel.single-image.tall-image .image-col img {
    height: 100%;
    object-fit: cover;
  }

  .panel.single-image.tall-image .caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    background: none;
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  /* Add spacing between panels */
  .panel.single-image.full-width {
    height: auto !important;
    min-height: auto !important;
    margin: 20px 0 !important;
  }

  /* Constrain the image to have white space left/right */
  .panel.single-image.full-width .inner-frame {
    padding: 0 20px;
  }

  /* Crop the landscape image (center 60%) */
  .panel.single-image.full-width .image-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 1 / 1; /* Makes it square-ish on mobile */
  }
}

/* Consistent spacing between panels */
.panel {
  margin: 0;
}

/* Avoid double spacing when two panels stack */
.panel + .panel {
  margin-top: 0;
}


/* Two-image layout */
.two-image .inner-frame {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}
.image-col {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .two-image .inner-frame {
    flex-direction: column;
    align-items: stretch; /* stretch columns full width */
    gap: 20px; /* spacing between images */
  }

  .two-image .image-col {
    width: 100%;
    height: 100vh; /* allow for vertical centering */
    display: flex;
    align-items: center;       /* vertical centering */
    justify-content: center;   /* horizontal centering */
    overflow: hidden;
  }

  .two-image .image-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
  }
}

/* Initial state: hidden and transparent */
.image-col img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible: fade in and move into place */
.image-col img.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* Floating arrow button */
.scroll-arrow {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1010;
  text-decoration: none;
}
.arrow-circle {
  background-color: #ccff33;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.arrow-circle:hover {
  transform: translateY(2px);
  background-color: #b6e62d;
}
.arrow-circle img {
  width: 23px;
  height: 23px;
  transition: transform 0.4s ease;
}
/* Rotate arrow when at bottom */
.scroll-arrow.up .arrow-circle img {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .scroll-arrow {
    display: none;
  }
}

/* Captions */
.caption {
  position: absolute;
  bottom: 35px;
  left: 40px;
  font-size: 0.9rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.4;
}

.single-image .caption {
  bottom: 15px;
  left: 20px;
}

/* Tighter positioning for two-image panels */
.two-image .caption {
  bottom: 15px;
  left: 20px;
}

.caption.light {
  color: #fff;
}
.caption.dark {
  color: #000;
}
.caption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px; /* Adjust this value as needed */
  transition: color 0.2s ease, opacity 0.2s ease;
}
.caption a:hover {
  opacity: 0.7;
}


/* Contact toggle styled like logo */
.contact-toggle {
  position: fixed;
  top: 35px;
  left: 120px;
  font-size: 1rem;
  color: #fff;
  font-family: 'Inter Light', sans-serif;
  z-index: 1002;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.contact-toggle:hover {
  color: #ccff33;
}

/* Toggle when panel is open */
.contact-toggle.open {
  color: #000;
}
.contact-toggle.open:hover {
  color: #333; /* dark grey hover */
}

/* back toggle styled like logo */
.back-toggle {
  position: fixed;
  top: 35px;
  left: 180px;
  font-size: 1rem;
  color: #fff;
  font-family: 'Inter Light', sans-serif;
  z-index: 1002;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.back-toggle:hover {
  color: #ccff33;
}

/* Toggle when panel is open */
.back-toggle.open {
  color: #000;
}
.back-toggle.open:hover {
  color: #333; /* dark grey hover */
}




/* New layout for project hero */
.project-hero {
  background: #1D003e;
  color: white;
  position: relative;
}

.project-hero .hero-heading {
  position: absolute;
  top: 150px;
  left: 34px;
}

.project-hero .hero-heading h1 {
  font-family: 'Inter Light', sans-serif;
  color: #ccff33;
  font-size: 6vw;
  font-weight: 100;
  margin: 0;
max-width: calc(100vw - 68px); /* prevents edge overflow (34px on each side) */
  box-sizing: border-box;
}

.project-hero .hero-description {
  position: absolute;
  top: 165px;
  left: 50vw;
  width: 35vw; /* Takes up 35% of the viewport */
  padding-right: 0;
  font-size: 1rem;
  font-family: 'Inter Light', sans-serif;
  line-height: 1.6;
  color: white;
  box-sizing: border-box;
}

.hero-description a,
.hero-subtext a,
.project-hero .hero-description a,
.project-hero .hero-subtext a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.hero-description a:hover,
.hero-subtext a:hover,
.project-hero .hero-description a:hover,
.project-hero .hero-subtext a:hover {
  color: #ccff33;
}

.hero-subtext {
  color: #ffffff;
  font-family: 'Inter Light', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 10px;
  white-space: nowrap;
  overflow-wrap: normal;
  max-width: 100%;
}

.project-hero .hero-subtext,
.project-hero .hero-description {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When the panel is in view */
.project-hero.in-view .hero-subtext {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s; /* After last heading line */
}

.project-hero.in-view .hero-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

/* Optional responsiveness for narrow screens */
@media (max-width: 768px) {
  .project-hero .hero-heading,
  .project-hero .hero-description {
    position: static;
    width: auto;
    padding: 20px;
    top: auto;
    left: auto;
  }

  .project-hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 150px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-hero .hero-heading h1 {
    font-size: 10vw;
    margin-bottom: 30px;
  }
}




/* Responsive stacking on mobile */
@media (max-width: 768px) {
  .project-hero .inner-frame {
    flex-direction: column;
    padding: 40px 20px;
  }

  .hero-heading,
  .hero-description {
    flex: 1 1 100%;
  }

  .hero-heading h1 {
    font-size: 10vw;
    margin-bottom: 20px;
  }
}

/* Panel black logo (same position as white logo) */
.panel-logo {
  position: absolute;
  top: 35px;
  left: 40px;
  font-size: 1rem;
  color: #000;
  font-family: 'Inter Light', sans-serif;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


/* Contact content layout */
.contact-content {
  position: absolute;
  top: 35px;
  left: 40%;
 width: 60vw; /* Adjust width as needed */
	max-width: 640px; /* Prevents text from getting too wide */
  font-family: 'Inter Light', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 40px;
}


.info-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.info-label {
  width: 80px;
  min-width: 80px;
  font-size: 1rem;
  color: #000;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.info-text {
  flex: 1;
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
}

.info-text p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.info-text a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px; /* Adjust this value as needed */
  transition: color 0.2s ease, opacity 0.2s ease;
}

.info-text a:hover {
  opacity: 0.6;
}

.info-text.clients p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0; /* Reset p margin */
}

.info-text.clients span {
  background: none;
  display: flex;
  align-items: center;
  line-height: 1.2;
  font-size: 1rem;
  padding: 0;
}

.info-section {
  background-color: #ccff33;
}

#info {
  position: relative;
  z-index: 1005; /* Higher than .contact-toggle’s z-index of 1002 */
}

.logo-signoff {
  margin-top: 2rem; /* spacing above the logo row */
}

.signoff-logo {
  width: 120px; /* or whatever size works nicely */
  height: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.signoff-logo:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .contact-content {
    position: static;         /* Remove absolute positioning */
    top: auto;
    left: auto;
    width: 100%;              /* Use full width of container */
    padding: 0 16px;
    margin-top: 150px;
    box-sizing: border-box;
    gap: 24px;
  }

  .panel.info-section {
    position: static;         /* Let the panel grow naturally */
    height: auto;
    overflow: visible;
  }
}

  .info-row {
    flex-direction: column;
    gap: 10px;
  }

  .info-label,
  .info-text {
    width: 100%;
    min-width: unset;
  }

  .info-label {
    text-align: left;
  }

  .info-text p {
    margin-bottom: 8px;
  }

.info-text.clients p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.info-text.clients span {
  display: inline;
  line-height: 1.4;
}
	
@media (max-width: 768px) {
  .single-image {
    height: auto; /* Allow height to adjust naturally */
  }

  .single-image .inner-frame {
    padding: 20px; /* Maintain white border */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .single-image .image-col {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
  }

  .single-image .image-col img {
    width: 153.85%; /* Zoom in to show center 65% (100 / 65 = ~1.5385) */
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin-left: -26.925%; /* (153.85 - 100) / 2 = 26.925 to center the zoom */
  }
	
	@media (max-width: 768px) {
  .single-image .image-col img {
    width: 100%;
    margin-left: 0;
  }
}

  .single-image .caption {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 10px;
    padding: 0 20px;
    font-size: 0.85rem;
  }
}