/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  background: #000;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  overflow-x: hidden;
}
/* screen-reader helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ NAVBAR ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transform: translateY(0);
  transition: transform 0.28s ease;
  will-change: transform;
}
.site-header.nav-hide {
  transform: translateY(-110%);
}
/* gradient underlay following header */
.site-header::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.7) 36%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 640px) {
  .site-header::after {
    height: 110px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.65) 40%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}
.navbar {
  width: 100%;
  padding: 14px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-list li {
  list-style: none;
}

.nav-list li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  font-size: 1.1rem;
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-decoration: none;
}

.nav-list li a:hover {
  opacity: 0.75;
}

.nav-list li a img {
  width: 20px;
  height: 20px;
  filter: brightness(1000%);
}

/* Active nav item (current page) - stronger glow, NO underline */
.nav-list li a.active {
  opacity: 1;
}

.nav-list li a.active span {
  text-shadow:
    0 0 12px rgba(255, 255, 255, 1),
    0 0 24px rgba(255, 255, 255, 0.9);
}

.nav-list li a.active img {
  filter: brightness(1000%) drop-shadow(0 0 10px rgba(255, 255, 255, 1))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  z-index: 0;
}
.hero-img.active {
  opacity: 1;
  z-index: 1;
}
.hero-img.enter {
  animation: fadeIn 0.9s ease-in-out forwards;
  z-index: 2;
}
.hero-img.exit {
  animation: fadeOut 0.9s ease-in-out forwards;
  z-index: 1;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    filter: brightness(1.3) blur(4px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    filter: none;
  }
  to {
    opacity: 0;
    filter: brightness(0.9) blur(3px);
  }
}
.hero-img.zoomout {
  object-fit: contain;
  scale: 0.9;
  background: #000;
}
.hero-top-gradient {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 90%
  );
  z-index: 10;
  pointer-events: none;
}
.hero-bottom-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 0.75) 45%,
    rgba(0, 0, 0, 1) 85%
  );
  z-index: 10;
  pointer-events: none;
}
.hero-text {
  position: absolute;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  width: min(90%, 1400px);
}
.hero-text h1 {
  font-size: 105px;
  font-weight: 400;
  line-height: 1;
}
.hero-text p {
  margin-top: 6px;
  font-size: 64px;
  font-weight: 300;
  opacity: 0.9;
}

/* ============ PORTFOLIO ============ */
.portfolio {
  background: #000;
  padding: 100px 0 120px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.portfolio-header {
  margin-bottom: 80px;
}
.portfolio-header h2 {
  font-size: 63px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.portfolio-header p {
  font-size: 25px;
  font-weight: 300;
  opacity: 0.9;
}
.portfolio-scroll {
  display: flex;
  gap: 60px;
  padding: 0 80px 30px;
  cursor: grab;
  user-select: none;

  overflow-x: auto; /* ✅ allow trackpad horizontal */
  overflow-y: visible; /* ✅ don't clip hover scale vertically */
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.portfolio-scroll::-webkit-scrollbar {
  height: 0;
}
.portfolio-scroll:active {
  cursor: grabbing;
}
.portfolio-item {
  flex: 0 0 390px;
  text-align: center;
  position: relative;
}
.thumb {
  width: 390px;
  height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transform: scale(1);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
  will-change: transform;
  background: #000;
}

/* ✅ Support both IMG and VIDEO inside thumbs */
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.4s;
  border-radius: inherit;
  background: #000;
}

/* ✅ Animation tile uses contain (for both img/video) */
.portfolio-item.animation .thumb img,
.portfolio-item.animation .thumb video {
  object-fit: contain;
  opacity: 1;
}

.thumb .fade {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.thumb .fade.top {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 5%,
    rgba(0, 0, 0, 0.4) 15%,
    rgba(0, 0, 0, 0) 30%
  );
}
.thumb .fade.bottom {
  bottom: -2px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 10%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.2) 35%,
    rgba(0, 0, 0, 0) 45%
  );
}
.portfolio-item:hover .thumb {
  transform: scale(1.08);
  filter: brightness(1.15) saturate(1.2);
}
.portfolio-item:hover .thumb img,
.portfolio-item:hover .thumb video {
  opacity: 1;
}
.portfolio-item h3 {
  margin-top: 25px;
  font-size: 25px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.scroll-indicator {
  position: relative;
  width: 90%;
  height: 2px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0.7;
  overflow: visible;
}
.scroll-progress {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 7px;
  width: 150px;
  background: #fff;
  transition: left 0.1s linear;
}

/* ============ SERVICES ============ */
.services {
  background: #000;
  padding: 100px 0 120px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.services-header {
  position: relative;
  z-index: 10;
}
.services-header h2 {
  font-size: 63px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.services-header p {
  font-size: 25px;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 70px;
}

.services-showcase {
  position: relative;
  width: 80vw;
  max-width: 1400px;
  margin: -120px auto 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
  display: block;
  z-index: 2;

  /* Stable layout box (prevents reflow hitches) */
  aspect-ratio: 16 / 9;
  max-height: 72vh;
}

/* Stack media */
.services-showcase img,
.services-showcase video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  filter: brightness(0.97);

  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ✅ Visibility toggles */
.services-showcase img.is-hidden,
.services-showcase video.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.services-showcase img.is-shown,
.services-showcase video.is-shown {
  opacity: 1;
  pointer-events: auto;
}

/* ✅ Fade only the ACTIVE element (shown), not both */
.services-showcase.fade-out .is-shown {
  opacity: 0;
  transform: scale(0.99);
}
.services-showcase.fade-in .is-shown {
  opacity: 1;
  transform: scale(1);
}

.services-gradient-top,
.services-gradient-bottom {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 3;
}
.services-gradient-top {
  top: 0;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.65) 30%,
    rgba(0, 0, 0, 0) 90%
  );
}
.services-gradient-bottom {
  bottom: 0;
  height: 48%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 18%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.9) 92%
  );
}

.services-content {
  position: relative;
  top: -150px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.services-field {
  font-size: 41px;
  font-weight: 400;
  margin-bottom: 20px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

/* Services list — single circular bullets */
.services-col ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0;
}
.services-col li {
  margin: 9px 0;
  font-size: 20px;
  font-weight: 300;
  list-style-position: outside;
}
.services-col li::before {
  content: none !important;
}

/* responsive for services */
@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-content {
    top: -120px;
  }
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-content {
    top: -100px;
  }
  .services-showcase {
    width: 92vw;
    aspect-ratio: 4 / 3;
    max-height: 60vh;
  }
}

/* ============ CONTACT (clean & final) ============ */
section.contact {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding-bottom: 120px;
}
/* Background rotator */
section.contact .contact-image-wrap {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
}
section.contact .contact-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
section.contact .contact-img.active {
  opacity: 1;
}
section.contact .contact-gradient {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}
section.contact .contact-gradient.top {
  top: 0;
  height: 28%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 25%,
    rgba(0, 0, 0, 0) 70%
  );
}
section.contact .contact-gradient.bottom {
  bottom: 0;
  height: 32%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0) 75%
  );
}
/* Heading overlay */
section.contact .contact-heading {
  position: relative;
  z-index: 99;
  text-align: center;
  width: min(92%, 1120px);
  margin: 0 auto;
  pointer-events: none;
}
section.contact .contact-heading h2 {
  font-size: 63px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
section.contact .contact-heading p {
  font-size: 25px;
  font-weight: 300;
  opacity: 0.9;
}
/* Main layout */
section.contact .contact-content {
  position: relative;
  z-index: 4;
  margin: -120px auto 0;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 80px;
  justify-content: center;
  align-items: flex-start;
}
/* Info list */
section.contact .contact-info {
  justify-self: end;
  min-width: 0;
  margin-top: -14px;
}
section.contact .contact-info ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
section.contact .contact-info li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  column-gap: 20px;
  margin: 22px 0;
}
section.contact .contact-info li img {
  width: 38px;
  height: 38px;
  filter: brightness(1000%);
  opacity: 0.95;
}
section.contact .contact-info li span {
  font-size: 20px;
  font-weight: 300;
  opacity: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Form */
section.contact .contact-form {
  justify-self: start;
  min-width: 360px;
}
section.contact .contact-form form {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  row-gap: 20px;
  margin: 0;
}
section.contact .contact-form input,
section.contact .contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 300;
  font-family: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
section.contact .contact-form textarea {
  min-height: 100px;
  resize: vertical;
}
section.contact .contact-form input::placeholder,
section.contact .contact-form textarea::placeholder {
  color: #fff;
  opacity: 0.7;
}
section.contact .contact-form input:focus,
section.contact .contact-form textarea:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
section.contact .contact-form button {
  justify-self: start;
  padding: 10px 24px;
  font-size: 16px;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  width: 50%;
}
section.contact .contact-form button:hover {
  background: #fff;
  color: #000;
}
/* Responsive */
@media (max-width: 1100px) {
  section.contact .contact-content {
    max-width: 100%;
    padding: 0 5%;
    grid-template-columns: 1fr;
    column-gap: 0;
    justify-content: stretch;
    margin-top: -90px;
  }
  section.contact .contact-info {
    justify-self: start;
    margin-top: 0;
  }
  section.contact .contact-info li {
    grid-template-columns: 32px 1fr;
    margin: 16px 0;
    column-gap: 16px;
  }
  section.contact .contact-info li img {
    width: 32px;
    height: 32px;
  }
  section.contact .contact-info li span {
    font-size: 18px;
  }
  section.contact .contact-form {
    min-width: 0;
  }
  section.contact .contact-form form {
    row-gap: 12px;
    max-width: 360px;
  }
  section.contact .contact-form button {
    width: auto;
  }
}
@media (max-width: 600px) {
  section.contact .contact-image-wrap {
    height: 64vh;
    min-height: 440px;
  }
  section.contact .contact-heading h2 {
    font-size: 34px;
  }
  section.contact .contact-heading p {
    font-size: 16px;
  }
  section.contact .contact-content {
    margin-top: -70px;
    padding: 0 5%;
  }
}
