/* Home — shape reveal (GSAP ScrollTrigger)
   Mask asset (manual): images/home/v-mask.svg
   White = visible video | transparent = hidden
*/

.shape-reveal {
  position: relative;
  height: auto;
  opacity: 1;
  background: #ffffff;
}

.shape-reveal.is-dark,
.shape-reveal.is-full {
  background: #0a0a0a;
}

.shape-reveal__pin {
  position: relative;
  top: auto;
  height: 850px;
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.shape-reveal.is-dark .shape-reveal__pin,
.shape-reveal.is-full .shape-reveal__pin {
  background: #0a0a0a;
}

.shape-reveal__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 80px 110px;
  box-sizing: border-box;
  background: #ffffff;
  transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.shape-reveal.is-full .shape-reveal__stage,
.shape-reveal__stage.is-full {
  background: #0a0a0a;
}

.shape-reveal__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: url("../../images/home/v-mask.svg");
  mask-image: url("../../images/home/v-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  /* Figma: 379.125×295, 96px below intro text */
  -webkit-mask-position: center var(--mask-y, 268px);
  mask-position: center var(--mask-y, 268px);
  -webkit-mask-size: var(--mask-w, 379.125px) var(--mask-h, 295px);
  mask-size: var(--mask-w, 379.125px) var(--mask-h, 295px);
  opacity: 1;
  will-change: mask-size, -webkit-mask-size, mask-position, -webkit-mask-position;
  transform-origin: center center;
}

.shape-reveal__media.is-full {
  -webkit-mask-image: none;
  mask-image: none;
}

.shape-reveal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shape-reveal__intro {
  position: relative;
  z-index: 2;
  width: min(804px, 100%);
  text-align: center;
  margin: 0 auto;
  pointer-events: none;
  will-change: opacity, transform;
}

.shape-reveal__heading {
  box-sizing: border-box;
  width: 709px;
  max-width: 100%;
  height: auto;
  min-height: 50px;
  margin: 0 auto 20px;
  font-family: "Nohemi", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 50px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: #221f1f;
  opacity: 1;
}

.shape-reveal__heading-accent {
  color: #f05430;
}

.shape-reveal__sub {
  box-sizing: border-box;
  width: 804px;
  max-width: 100%;
  height: auto;
  min-height: 22px;
  margin: 0 auto;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
  color: #221f1f;
  opacity: 0.8;
}

.shape-reveal__outro {
  position: absolute;
  left: 50%;
  top: 320px;
  bottom: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 886px;
  max-width: calc(100% - 48px);
  text-align: center;
  transform: translate3d(-50%, 80px, 0);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.shape-reveal__outro.is-active {
  pointer-events: auto;
}

.shape-reveal__outro-title {
  box-sizing: border-box;
  width: 886px;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 28px;
  font-family: "Nohemi", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 70px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.shape-reveal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  width: 267px;
  max-width: 100%;
  height: 56px;
  padding: 4px 4px 4px 20px;
  border-radius: 32px;
  background: #ffffff4d;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shape-reveal__btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.shape-reveal__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 175px;
  max-width: 100%;
  margin: 0;
  font-family: "Nohemi", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 14px;
  line-height: 16.8px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
  color: #ffffff;
  font-synthesis: none;
  /* Optical nudge for Nohemi CAP_HEIGHT */
  margin-top: 5px;
}

.shape-reveal__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f05430;
  flex-shrink: 0;
}

.shape-reveal__btn-icon img {
  display: block;
  width: 16px;
  height: 16px;
}

.shape-reveal__scroll {
  position: absolute;
  left: 50%;
  bottom: 110px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  width: auto;
  height: 34px;
  margin-top: 0;
  transform: translateX(-50%);
  color: #221f1f;
  text-decoration: none;
  will-change: opacity;
}

.shape-reveal.is-full .shape-reveal__scroll {
  color: #ffffff;
}

.shape-reveal.is-full .shape-reveal__scroll-icon-frame circle {
  stroke: #ffffff;
}

.shape-reveal.is-full .shape-reveal__scroll-icon-arrow path {
  stroke: #ffffff;
}

.shape-reveal.is-full .shape-reveal__scroll-text {
  color: #ffffff;
}

.shape-reveal__scroll-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #221f1f;
  flex-shrink: 0;
  animation: shape-scroll-bounce 1.8s ease-in-out infinite;
}

.shape-reveal__scroll-icon-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.shape-reveal__scroll-icon-arrow {
  position: relative;
  z-index: 1;
  display: block;
}

.shape-reveal__scroll-text {
  display: inline-block;
  width: 103px;
  height: 20px;
  font-family: "Nohemi", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #221f1f;
  opacity: 1;
  white-space: nowrap;
}

@keyframes shape-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* Large tablet / small desktop */
@media (max-width: 1200px) {
  .shape-reveal__stage {
    padding: 72px 40px 80px;
  }

  .shape-reveal__heading {
    width: 100%;
    font-size: clamp(36px, 4.2vw, 48px);
  }

  .shape-reveal__sub {
    width: 100%;
    max-width: 640px;
  }

  .shape-reveal__outro {
    top: 28%;
    width: min(780px, calc(100% - 64px));
  }

  .shape-reveal__outro-title {
    width: 100%;
    font-size: clamp(40px, 5vw, 58px);
    margin-bottom: 24px;
  }

  .shape-reveal__scroll {
    bottom: 64px;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .shape-reveal__pin {
    height: auto;
    min-height: 100svh;
  }

  .shape-reveal__stage {
    padding: 100px 24px 56px;
  }

  .shape-reveal__intro {
    width: 100%;
    max-width: 560px;
    padding: 0 4px;
  }

  .shape-reveal__heading {
    width: 100%;
    height: auto;
    font-size: clamp(30px, 5vw, 40px);
    margin-bottom: 14px;
  }

  .shape-reveal__sub {
    width: 100%;
    height: auto;
    max-width: 520px;
    font-size: 15px;
    line-height: 22px;
  }

  .shape-reveal__media {
    -webkit-mask-position: center var(--mask-y, 240px);
    mask-position: center var(--mask-y, 240px);
  }

  .shape-reveal__scroll {
    bottom: 40px;
    width: auto;
  }

  .shape-reveal__outro {
    top: 50%;
    bottom: auto;
    width: min(640px, calc(100% - 48px));
    transform: translate3d(-50%, calc(-50% + 40px), 0);
  }

  .shape-reveal__outro-title {
    height: auto;
    font-size: clamp(32px, 5.5vw, 48px);
    margin-bottom: 20px;
  }

  .shape-reveal__btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .shape-reveal__pin {
    height: auto;
    min-height: 100svh;
  }

  .shape-reveal__stage {
    padding: 96px 20px 48px;
  }

  .shape-reveal__intro {
    width: 100%;
    max-width: 100%;
  }

  .shape-reveal__heading {
    font-size: clamp(26px, 7.5vw, 32px);
    margin-bottom: 12px;
    line-height: 1.1;
  }

  .shape-reveal__sub {
    font-size: 14px;
    line-height: 20px;
    max-width: 100%;
  }

  .shape-reveal__media {
    -webkit-mask-position: center var(--mask-y, 220px);
    mask-position: center var(--mask-y, 220px);
  }

  .shape-reveal__scroll {
    bottom: 28px;
  }

  .shape-reveal__scroll-text {
    font-size: 12px;
    line-height: 16px;
  }

  .shape-reveal__outro {
    top: 50%;
    width: calc(100% - 32px);
    transform: translate3d(-50%, calc(-50% + 32px), 0);
  }

  .shape-reveal__outro-title {
    font-size: clamp(26px, 8vw, 34px);
    margin-bottom: 18px;
    line-height: 1.1;
  }

  .shape-reveal__btn {
    width: 100%;
    max-width: 100%;
  }

  .shape-reveal__btn-text {
    justify-content: flex-start;
    width: auto;
    font-size: 14px;
    line-height: 16.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape-reveal__media {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .shape-reveal__stage,
  .shape-reveal__stage.is-full {
    background: #0a0a0a;
  }

  .shape-reveal__intro {
    display: none;
  }

  .shape-reveal__outro {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    pointer-events: auto;
  }

  .shape-reveal__scroll {
    color: #ffffff;
  }

  .shape-reveal__scroll-icon-frame circle {
    stroke: #ffffff;
  }

  .shape-reveal__scroll-icon-arrow path {
    stroke: #ffffff;
  }

  .shape-reveal__scroll-text {
    color: #ffffff;
  }
}
