/* =========================================================
   WHY QUICKENED
    Editorial Section
========================================================= */

.why-section {
  position: relative;

  padding: 105px 0 90px;

  overflow: hidden;

  background: #f7f9fc;

  color: var(--blue-dark, #05225e);
}

/* =========================================================
   BACKGROUND
========================================================= */

.why-bg {
  position: absolute;

  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.why-grid {
  position: absolute;

  inset: 0;

  opacity: 0.28;

  background-image:
    linear-gradient(rgba(5, 34, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 34, 94, 0.035) 1px, transparent 1px);

  background-size: 80px 80px;

  mask-image: linear-gradient(
    90deg,
    transparent,
    black 25%,
    black 75%,
    transparent
  );
}

.why-watermark {
  position: absolute;

  right: -70px;

  bottom: -120px;

  color: rgba(3, 58, 161, 0.025);

  font-size: 560px;

  line-height: 0.8;

  font-weight: 800;

  letter-spacing: -0.13em;

  user-select: none;
}

.why-glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(90px);
}

.why-glow-one {
  width: 250px;
  height: 250px;

  top: -100px;
  left: 12%;

  background: rgba(3, 58, 161, 0.045);

  animation: whyGlowOne 10s ease-in-out infinite;
}

.why-glow-two {
  width: 200px;
  height: 200px;

  right: 3%;
  bottom: 5%;

  background: rgba(221, 3, 27, 0.025);

  animation: whyGlowTwo 11s ease-in-out infinite;
}

/* =========================================================
   CONTAINER
========================================================= */

.why-container {
  position: relative;

  z-index: 2;

  width: min(1240px, calc(100% - 64px));

  margin: 0 auto;
}

/* =========================================================
   EYEBROW
========================================================= */

.why-header {
  margin-bottom: 45px;
}

.why-eyebrow {
  display: flex;

  align-items: center;

  gap: 13px;

  color: #0646bd;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 0.21em;
}

.why-eyebrow-mark {
  position: relative;

  width: 42px;

  height: 1px;

  flex: 0 0 auto;

  background: rgba(3, 58, 161, 0.65);
}

.why-eyebrow-mark::before {
  content: "";

  position: absolute;

  left: 0;

  top: 50%;

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: #dd031b;

  transform: translateY(-50%);

  box-shadow: 0 0 0 3px rgba(221, 3, 27, 0.08);
}

/* =========================================================
   MAIN
========================================================= */

.why-main {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(400px, 1.05fr);

  gap: 105px;

  align-items: start;
}

/* =========================================================
   LEFT STATEMENT
========================================================= */

.why-statement {
  padding-right: 20px;
}

.why-index {
  display: block;

  margin-bottom: 22px;

  color: #9aa7ba;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 0.18em;
}

.why-statement h2 {
  max-width: 620px;

  margin: 0;

  color: var(--blue-dark, #05225e);

  font-size: clamp(48px, 5.3vw, 72px);

  line-height: 0.96;

  font-weight: 700;

  letter-spacing: -0.065em;
}

.why-statement h2 span {
  color: #0646bd;
}

.why-statement > p {
  max-width: 470px;

  margin: 28px 0 0;

  color: #71829f;

  font-size: 13px;

  line-height: 1.8;
}

/* =========================================================
   SIGNATURE
========================================================= */

.why-signature {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-top: 38px;

  color: #8b98aa;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 0.15em;
}

.signature-line {
  width: 30px;

  height: 1px;

  background: #dd031b;
}

.why-pillar {
  position: relative;

  border-top: 1px solid rgba(5, 34, 94, 0.12);

  border-bottom: 1px solid rgba(5, 34, 94, 0.12);

  transition: background 0.4s ease;
}

.why-pillar.active {
  background: rgba(255, 255, 255, 0.58);
}

.why-pillar::before {
  content: "";

  position: absolute;

  left: 0;

  top: 50%;

  width: 2px;

  height: 0;

  background: #dd031b;

  transform: translateY(-50%);

  transition: height 0.4s ease;
}

.why-pillar.active::before {
  height: 34px;
}

/* =========================================================
   TRIGGER
========================================================= */

.why-pillar-trigger {
  width: 100%;

  min-height: 72px;

  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr)
    30px;

  align-items: center;

  gap: 16px;

  padding: 0 12px 0 16px;

  border: 0;

  background: transparent;

  color: #71829f;

  text-align: left;

  cursor: pointer;
}

.why-pillar.active .why-pillar-trigger {
  color: var(--blue-dark, #05225e);
}

.pillar-number {
  color: #a5afbd;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 0.06em;
}

.why-pillar.active .pillar-number {
  color: #dd031b;
}

.pillar-title {
  font-size: 15px;

  font-weight: 700;

  letter-spacing: -0.015em;
}

/* =========================================================
   PLUS SYMBOL
========================================================= */

.pillar-symbol {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 28px;

  height: 28px;

  border: 1px solid rgba(5, 34, 94, 0.12);

  border-radius: 50%;

  color: #71829f;

  font-size: 16px;

  font-weight: 300;

  line-height: 1;

  transition:
    transform 0.4s ease,
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}

.why-pillar.active .pillar-symbol {
  color: #ffffff;

  background: #05225e;

  border-color: #05225e;

  transform: rotate(45deg);
}

/* =========================================================
   CONTENT
========================================================= */

.pillar-content {
  display: grid;

  grid-template-rows: 0fr;

  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-content p {
  min-height: 0;

  overflow: hidden;

  margin: 0;

  padding: 0 58px 0 74px;

  color: #7b8aa2;

  font-size: 11px;

  line-height: 1.75;

  opacity: 0;

  transform: translateY(-8px);

  transition:
    opacity 0.35s ease,
    transform 0.45s ease,
    padding 0.45s ease;
}

.why-pillar.active .pillar-content {
  grid-template-rows: 1fr;
}

.why-pillar.active .pillar-content p {
  padding-bottom: 24px;

  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   FOOTER
========================================================= */

.why-footer {
  display: flex;

  align-items: center;

  gap: 25px;

  width: min(1160px, calc(100% - 40px));

  margin: 32px auto 0;
}

.why-footer-line {
  flex: 1;

  height: 1px;

  background: rgba(5, 34, 94, 0.08);
}

.why-footer-content {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #8b98aa;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 0.15em;

  white-space: nowrap;
}

.why-footer-dot {
  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: #dd031b;
}

.why-footer-divider {
  color: #c3cad5;
}

.why-footer-content strong {
  color: #0646bd;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes whyGlowOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate3d(20px, 15px, 0);
    opacity: 1;
  }
}

@keyframes whyGlowTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.45;
  }

  50% {
    transform: translate3d(-18px, -12px, 0);
    opacity: 0.8;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .why-section {
    padding: 85px 0 75px;
  }

  .why-container {
    width: min(100% - 48px, 900px);
  }

  .why-header {
    margin-bottom: 38px;
  }

  .why-main {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .why-statement {
    padding-right: 0;
  }

  .why-statement h2 {
    max-width: 680px;

    font-size: clamp(46px, 7vw, 64px);
  }

  .why-statement > p {
    max-width: 620px;
  }

  .why-pillars {
    max-width: 800px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .why-section {
    padding: 70px 0 60px;
  }

  .why-container {
    width: calc(100% - 32px);
  }

  .why-header {
    margin-bottom: 32px;
  }

  .why-eyebrow {
    gap: 11px;

    font-size: 8px;

    letter-spacing: 0.18em;
  }

  .why-eyebrow-mark {
    width: 34px;
  }

  .why-main {
    gap: 42px;
  }

  .why-index {
    margin-bottom: 17px;
  }

  .why-statement h2 {
    font-size: clamp(39px, 10.5vw, 52px);

    line-height: 0.98;
  }

  .why-statement > p {
    margin-top: 22px;

    font-size: 11px;

    line-height: 1.75;
  }

  .why-signature {
    margin-top: 28px;

    font-size: 6.5px;
  }

  .why-pillar-trigger {
    min-height: 64px;

    grid-template-columns:
      35px
      minmax(0, 1fr)
      27px;

    gap: 10px;

    padding-left: 11px;
    padding-right: 7px;
  }

  .pillar-title {
    font-size: 13px;
  }

  .pillar-symbol {
    width: 25px;
    height: 25px;

    font-size: 14px;
  }

  .why-pillar.active::before {
    height: 28px;
  }

  .pillar-content p {
    padding: 0 35px 0 55px;

    font-size: 10.5px;

    line-height: 1.7;
  }

  .why-pillar.active .pillar-content p {
    padding-bottom: 20px;
  }

  .why-footer {
    width: calc(100% - 24px);

    gap: 14px;

    margin-top: 27px;
  }

  .why-footer-content {
    gap: 6px;

    font-size: 6px;

    letter-spacing: 0.1em;
  }

  .why-watermark {
    right: -100px;

    bottom: -60px;

    font-size: 380px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .why-container {
    width: calc(100% - 24px);
  }

  .why-statement h2 {
    font-size: 38px;
  }

  .why-pillar-trigger {
    min-height: 60px;
  }

  .pillar-title {
    font-size: 12.5px;
  }

  .pillar-content p {
    padding-left: 48px;
    padding-right: 24px;
  }

  .why-footer {
    width: calc(100% - 20px);
  }
}

/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 375px) {
  .why-container {
    width: calc(100% - 20px);
  }

  .why-statement h2 {
    font-size: 35px;
  }

  .why-pillar-trigger {
    grid-template-columns:
      30px
      minmax(0, 1fr)
      25px;

    gap: 8px;
  }

  .pillar-title {
    font-size: 12px;
  }

  .pillar-content p {
    padding-left: 40px;
    padding-right: 18px;
  }

  .why-footer {
    width: calc(100% - 16px);
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .why-glow,
  .pillar-content,
  .pillar-content p,
  .pillar-symbol {
    animation: none !important;

    transition: none !important;
  }
}
