/* =========================================================
   NRI CONNECT
========================================================= */

.nri_section {
  width: 100%;
  /* background: #ffffff; */
  color: #111111;
  overflow: hidden;

  /* Initial state */
  opacity: 0;
  transform: translateY(80px);
  padding: 50px 40px;

  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   SECTION VISIBLE
========================================================= */

.nri_section.nri_is_visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   WRAPPER
========================================================= */

.nri_section .nri_wrapper {
  min-height: 680px;

  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* =========================================================
   LEFT CONTENT
========================================================= */

.nri_section .nri_content {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  /* padding: 90px 7vw; */

  /* background: #ffffff; */

  z-index: 2;
}

/* =========================================================
   TOP TITLE
========================================================= */

.nri_section .nri_top_line {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.8s ease 0.25s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.nri_is_visible .nri_top_line {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   HEADING WRAPPER
========================================================= */

.nri_section .nri_heading_wrap {
  position: relative;

  margin-top: 35px;
  margin-bottom: 30px;

  /* overflow: hidden; */
}

/* =========================================================
   BIG OUTLINE TEXT
========================================================= */

.nri_section .nri_outline_text {
  position: absolute;
  top: -45px;
  left: -5px;

  font-size: clamp(55px, 7vw, 110px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -5px;

  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);

  pointer-events: none;
  user-select: none;
}

.nri_is_visible .nri_outline_text {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   MAIN HEADING
========================================================= */

.nri_section .nri_title {
  position: relative;
  z-index: 1;

  margin: 0;

  font-size: clamp(45px, 5vw, 76px);
  line-height: 0.98;

  font-weight: 600;

  letter-spacing: -3px;

  color: #111111;
}

/* =========================================================
   HEADING LINES
========================================================= */

.nri_section .nri_title_line {
  display: block;

  opacity: 0;

  transform: translateY(100%);

  transition:
    opacity 0.9s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.nri_section .nri_title_line:nth-child(1) {
  transition-delay: 0.45s;
}

.nri_section .nri_title_line:nth-child(2) {
  transition-delay: 0.58s;
}

.nri_is_visible .nri_title_line {
  opacity: 1;
  transform: translateY(0);
}

.nri_section .nri_title_light {
  font-weight: 300;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.nri_section .nri_description_wrap {
  overflow: hidden;
}

.nri_section .nri_description {
  max-width: 570px;

  margin: 0 0 35px;

  color: #555555;

  font-size: 15px;
  line-height: 1.8;

  letter-spacing: 0.2px;

  opacity: 0;
  transform: translateY(35px);

  transition:
    opacity 0.9s ease 0.75s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.75s;
}

.nri_is_visible .nri_description {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   FEATURES
========================================================= */

.nri_section .nri_features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  max-width: 620px;

  margin-bottom: 38px;

  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

/* =========================================================
   FEATURE
========================================================= */

.nri_section .nri_feature {
  display: flex;
  gap: 15px;

  padding: 20px 18px 20px 0;

  opacity: 0;
  transform: translateY(35px);

  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.nri_section .nri_feature:nth-child(1) {
  transition-delay: 0.9s;
}

.nri_section .nri_feature:nth-child(2) {
  transition-delay: 1.05s;
}

.nri_is_visible .nri_feature {
  opacity: 1;
  transform: translateY(0);
}

.nri_section .nri_feature + .nri_feature {
  padding-left: 22px;

  border-left: 1px solid #dddddd;
}

/* =========================================================
   FEATURE NUMBER
========================================================= */

.nri_section .nri_feature_number {
  flex-shrink: 0;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #999999;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nri_feature:hover .nri_feature_number {
  color: #111111;
  transform: translateY(-3px);
}

/* =========================================================
   FEATURE CONTENT
========================================================= */

.nri_section .nri_feature_content {
  overflow: hidden;
}

.nri_section .nri_feature_content strong {
  display: block;

  margin-bottom: 5px;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.nri_section .nri_feature_content p {
  margin: 0;

  color: #777777;

  font-size: 12px;

  line-height: 1.5;
}

/* =========================================================
   CTA
========================================================= */

.nri_section .nri_cta_wrap {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.8s ease 1.15s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s;
}

.nri_is_visible .nri_cta_wrap {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   BUTTON
========================================================= */

.nri_section .nri_button {
  position: relative;

  display: inline-flex;
  align-items: center;

  gap: 20px;

  width: fit-content;

  padding: 5px 5px 5px 20px;

  color: #ffffff;

  background: #111111;

  text-decoration: none;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 1px;

  text-transform: uppercase;

  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.nri_section .nri_button::before {
  content: "";

  position: absolute;

  inset: 0;

  background: #333333;

  transform: translateX(-100%);

  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  z-index: 0;
}

.nri_section .nri_button:hover::before {
  transform: translateX(0);
}

.nri_section .nri_button > span {
  position: relative;
  z-index: 1;
}

.nri_section .nri_button:hover {
  color: #ffffff;

  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   BUTTON ICON
========================================================= */

.nri_section .nri_button_icon {
  width: 43px;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  color: #111111;

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
}

.nri_section .nri_button:hover .nri_button_icon {
  transform: rotate(45deg);
}

/* =========================================================
   IMAGE AREA
========================================================= */

.nri_section .nri_image_area {
  position: relative;

  min-height: 680px;

  overflow: hidden;

  background: #111111;
}

/* =========================================================
   IMAGE REVEAL
========================================================= */

.nri_section .nri_image_reveal {
  position: absolute;

  inset: 0;

  overflow: hidden;

  clip-path: inset(0 100% 0 0);

  transition: clip-path 1.6s cubic-bezier(0.77, 0, 0.18, 1) 0.2s;
}

.nri_is_visible .nri_image_reveal {
  clip-path: inset(0 0 0 0);
}

/* =========================================================
   IMAGE
========================================================= */

.nri_section .nri_image {
  position: absolute;

  inset: -5%;

  overflow: hidden;

  transform: scale(1.15);

  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.nri_is_visible .nri_image {
  transform: scale(1);
}

.nri_section .nri_image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cinematic hover zoom */

.nri_section .nri_image_area:hover .nri_image img {
  transform: scale(1.06);
}

/* =========================================================
   IMAGE OVERLAY
========================================================= */

.nri_image_overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.18),
    transparent 45%,
    rgba(0, 0, 0, 0.12)
  );

  pointer-events: none;

  opacity: 0;

  transition: opacity 1s ease 1.2s;
}

.nri_is_visible .nri_image_overlay {
  opacity: 1;
}

/* =========================================================
   IMAGE BADGE
========================================================= */

.nri_section .nri_image_badge {
  position: absolute;

  left: 35px;
  bottom: 35px;

  display: flex;
  flex-direction: column;

  padding: 17px 20px;

  background: rgba(255, 255, 255, 0.95);

  border-left: 3px solid #111111;

  z-index: 2;

  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.8s ease 1.25s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.25s;
}

.nri_is_visible .nri_image_badge {
  opacity: 1;
  transform: translateY(0);
}

.nri_section .nri_image_badge span {
  font-size: 9px;

  letter-spacing: 2px;

  font-weight: 600;

  color: #666666;
}

.nri_section .nri_image_badge strong {
  margin-top: 3px;

  font-size: 17px;

  line-height: 1.1;

  letter-spacing: 1px;

  font-weight: 600;

  color: #111111;
}

/* =========================================================
   VERTICAL TEXT
========================================================= */

.nri_section .nri_vertical_text {
  position: absolute;

  top: 35px;
  right: 25px;

  writing-mode: vertical-rl;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 4px;

  color: #ffffff;

  z-index: 3;

  opacity: 0;

  transform: translateY(-30px);

  transition:
    opacity 0.8s ease 1.1s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s;
}

.nri_is_visible .nri_vertical_text {
  opacity: 0.9;
  transform: translateY(0);
}

/* =========================================================
   IMAGE NUMBER
========================================================= */

.nri_section .nri_image_number {
  position: absolute;

  right: 35px;
  bottom: 30px;

  font-size: 80px;

  font-weight: 700;

  line-height: 1;

  color: transparent;

  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);

  z-index: 2;

  opacity: 0;

  transform: translateY(40px);

  transition:
    opacity 1s ease 1.3s,
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.3s;
}

.nri_is_visible .nri_image_number {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   DESKTOP IMAGE PARALLAX FEEL
========================================================= */

@media (min-width: 992px) {
  .nri_section .nri_image_area {
    perspective: 1000px;
  }

  .nri_section .nri_image {
    transform-origin: center center;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {
  .nri_section .nri_title {
    font-size: clamp(42px, 5vw, 62px);
  }

  .nri_section .nri_content {
    padding: 10px;
  }

  .nri_section .nri_description {
    font-size: 14px;
  }

  .nri_wrapper,
  .nri_section .nri_image_area {
    min-height: 620px;
  }

  .nri_section .nri_outline_text {
    top: -30px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {
  .nri_section .nri_wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nri_section .nri_features {
    max-width: 100%;
  }

  .nri_section .nri_content {
    padding: 0;
  }

  .nri_section .nri_image_area {
    min-height: 550px;
  }

  .nri_section .nri_outline_text {
    top: -35px;
  }

  .nri_section {
    padding: 0;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (min-width: 576px) and (max-width: 767px) {
  .nri_section {
    padding: 0;
  }

  .nri_section .nri_feature + .nri_feature {
    padding-left: 0;
    border-left: none;
  }

  .nri_section .nri_content {
    padding: 65px 25px;
  }

  .nri_section .nri_title {
    font-size: 48px;

    letter-spacing: -2px;
  }

  .nri_section .nri_outline_text {
    font-size: 65px;

    letter-spacing: -3px;

    top: -30px;
  }

  .nri_section .nri_description {
    font-size: 14px;

    line-height: 1.7;
  }

  .nri_section .nri_wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nri_section .nri_features {
    grid-template-columns: 1fr;
  }

  .nri_section .nri_feature + .nri_section .nri_feature {
    padding-left: 0;

    border-left: 0;

    border-top: 1px solid #dddddd;
  }

  .nri_section .nri_image_area {
    min-height: 460px;
  }

  .nri_section .nri_image_badge {
    left: 20px;

    bottom: 20px;
  }

  .nri_section .nri_image_number {
    right: 20px;

    bottom: 20px;

    font-size: 60px;
  }

  .nri_section .nri_vertical_text {
    right: 15px;
    top: 20px;
  }
}

/* =========================================================
   EXTRA SMALL
========================================================= */

@media (min-width: 0px) and (max-width: 575.98px) {
  .nri_section .nri_wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nri_section .nri_features {
    grid-template-columns: 1fr;
  }

  .nri_section .nri_feature + .nri_feature {
    padding-left: 0;
    border-left: none;
  }

  .nri_section {
    padding: 0;
  }

  .nri_section .nri_content {
    padding: 55px 20px;
  }

  .nri_section .nri_title {
    font-size: 42px;
  }

  .nri_section .nri_outline_text {
    font-size: 55px;
  }

  .nri_section .nri_top_line {
    margin-bottom: 5px;
  }

  .nri_section .nri_description {
    font-size: 13px;
  }

  .nri_section .nri_button {
    width: 100%;

    justify-content: space-between;
  }

  .nri_section .nri_image_area {
    min-height: 400px;
  }

  .nri_section .nri_image_badge {
    padding: 13px 15px;
  }

  .nri_section .nri_image_badge strong {
    font-size: 14px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .nri_section,
  .nri_section .nri_top_line,
  .nri_section .nri_outline_text,
  .nri_section .nri_title_line,
  .nri_section .nri_description,
  .nri_section .nri_feature,
  .nri_section .nri_cta_wrap,
  .nri_section .nri_image_reveal,
  .nri_section .nri_image,
  .nri_section .nri_image img,
  .nri_section .nri_image_overlay,
  .nri_section .nri_image_badge,
  .nri_section .nri_vertical_text,
  .nri_section .nri_image_number {
    transition: none !important;

    animation: none !important;

    transform: none !important;
  }

  .nri_section {
    opacity: 1;
  }

  .nri_section .nri_image_reveal {
    clip-path: inset(0);
  }
}
