/* About institute */

.about-institute-section {
  position: relative;
  overflow: hidden;
  padding-block: 0 clamp(26px, 4vw, 54px);
  isolation: isolate;
}

.about-institute-section::before {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: -1;
  width: 74px;
  height: 74px;
  content: "";
  opacity: 0.32;
  background-image: radial-gradient(circle, rgba(var(--rgb-primary), 0.34) 1.8px, transparent 2.4px);
  background-size: 15px 15px;
  pointer-events: none;
}

.about-institute-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.98fr) minmax(430px, 1.02fr);
  align-items: center;
  min-height: clamp(230px, 25vw, 330px);
  gap: clamp(20px, 3vw, 48px);
  direction: ltr;
}

.about-institute-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  text-align: right;
  direction: rtl;
}

.about-institute-heading {
  display: grid;
  justify-items: center;
  max-width: 640px;
}

.about-institute-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: var(--cta-font-weight);
  line-height: var(--line-height-tight);
  gap: 12px;
}

.about-institute-kicker::before,
.about-institute-kicker::after {
  width: clamp(24px, 3vw, 42px);
  height: 2px;
  content: "";
  border-radius: var(--radius-pill);
}

.about-institute-kicker::before {
  background: rgba(var(--rgb-accent), 0.72);
}

.about-institute-kicker::after {
  background: rgba(var(--rgb-primary), 0.62);
}

.about-institute-heading h2 {
  position: relative;
  display: inline-grid;
  justify-items: center;
  max-width: 640px;
  margin: 0px 0px 18px;
  color: var(--color-primary-dark);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0px;
}

.about-institute-heading p {
  max-width: 610px;
  margin: 0px;
  color: var(--color-muted);
  font-size: clamp(0.94rem, 1.03vw, 1.05rem);
  font-weight: 600;
  line-height: 1.9;
}

.about-institute-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cta-height);
  margin-top: clamp(16px, 2vw, 24px);
  padding: var(--cta-padding-y) var(--cta-padding-x);
  gap: var(--cta-gap);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 1px solid rgba(var(--rgb-white), 0.2);
  border-radius: var(--btn-radius);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.24), 0 14px 28px rgba(var(--rgb-primary), 0.24);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.about-institute-cta svg {
  width: var(--cta-icon-size);
  height: var(--cta-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-institute-cta:hover,
.about-institute-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.28), 0 18px 34px rgba(var(--rgb-primary), 0.28);
}

.about-institute-visual {
  position: relative;
  display: grid;
  min-height: clamp(315px, 31vw, 455px);
  pointer-events: none;
  isolation: isolate;
  place-items: center;
}

.about-institute-visual::before {
  position: absolute;
  inset: 4% auto auto -4%;
  z-index: -1;
  width: 68%;
  aspect-ratio: 1;
  content: "";
  opacity: 0.16;
  background: radial-gradient(circle, rgba(var(--rgb-primary), 0.24) 1.8px, transparent 2.6px) 0 0 / 18px 18px;
  border-radius: var(--radius-circle);
}

.about-institute-media-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(265px, 28vw, 455px);
  aspect-ratio: 16 / 10.4;
  box-shadow: 0 28px 64px rgba(var(--rgb-primary), 0.14),
    inset 0 1px 0 rgba(var(--rgb-white), 0.92);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 24% 20%, rgba(var(--rgb-white), 0.88), transparent 28%),
    linear-gradient(135deg, rgba(var(--rgb-primary), 0.18), rgba(var(--rgb-white), 0.72) 42%, rgba(var(--rgb-accent), 0.07));
  border: 1px solid rgba(var(--rgb-primary), 0.12);
  border-radius: clamp(15px, 1vw, 15px);
}

.about-institute-media-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0.72;
  background: linear-gradient(120deg, transparent 0 48%, rgba(var(--rgb-white), 0.45) 49% 51%, transparent 52% 100%),
    radial-gradient(circle at 84% 22%, rgba(var(--rgb-primary), 0.12), transparent 28%);
}

.about-institute-media-glow {
  position: absolute;
  inset: 14% auto auto 9%;
  z-index: 1;
  width: 52%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(var(--rgb-white), 0.82), transparent 66%);
  border-radius: var(--radius-circle);
}

.about-institute-planet {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(220px, 22vw, 360px);
  max-width: 82%;
  height: auto;
  opacity: 0.96;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(var(--rgb-primary), 0.13));
  transform: translateY(-2px);
  pointer-events: none;
  user-select: none;
}

.about-institute-media-card::after {
  position: absolute;
  inset: auto 6% 9%;
  height: 18%;
  content: "";
  filter: blur(18px);
  background: linear-gradient(90deg, rgba(var(--rgb-primary), 0.18), rgba(var(--rgb-accent), 0.12));
  border-radius: 50%;
}

.about-institute-path {
  position: absolute;
  z-index: 0;
  height: auto;
  overflow: visible;
  opacity: 0;
  fill: none;
  pointer-events: none;
  will-change: opacity, transform;
}

.about-institute-path path {
  fill: none;
  stroke: var(--about-path-stroke);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 7;
  stroke-dashoffset: 42;
}

.about-institute-path-left {
  inset: 6.5% auto auto 1.8%;
  width: clamp(170px, 16vw, 230px);
  transform: rotate(-6deg) translateY(12px) scale(0.96);
  transform-origin: 12% 72%;
  --about-path-stroke: url(#aboutConnectorCapGradient);
}

.about-institute-path-right {
  inset: auto -2% -1% auto;
  width: clamp(205px, 20vw, 285px);
  transform: rotate(8deg) translateY(14px) scale(0.96);
  transform-origin: 84% 20%;
  --about-path-stroke: url(#aboutConnectorGoalGradient);
}

.about-institute-visual.is-in-view .about-institute-path-left {
  animation: aboutConnectorCapIn 0.7s cubic-bezier(0.18, 0.82, 0.22, 1) 0.3s forwards;
}

.about-institute-visual.is-in-view .about-institute-path-right {
  animation: aboutConnectorGoalIn 0.72s cubic-bezier(0.18, 0.82, 0.22, 1) 0.48s forwards;
}

.about-institute-visual.is-in-view .about-institute-path path {
  animation: aboutConnectorDraw 0.9s ease-out 0.38s forwards;
}

.about-institute-node {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(46px, 4.5vw, 62px);
  height: clamp(46px, 4.5vw, 62px);
  color: var(--color-primary);
  background: rgba(var(--rgb-primary), 0.12);
  border: 1px solid rgba(var(--rgb-primary), 0.12);
  border-radius: var(--radius-circle);
  box-shadow: 0 18px 42px rgba(var(--rgb-primary), 0.12), inset 0 1px 0 rgba(var(--rgb-white), 0.92);
  backdrop-filter: blur(16px) saturate(138%);
  -webkit-backdrop-filter: blur(16px) saturate(138%);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

.about-institute-node svg {
  width: 56%;
  height: 56%;
  fill: currentColor;
}

.about-institute-node-cap {
  top: 15%;
  left: -2%;
}

.about-institute-node-goal {
  right: clamp(-28px, -3.4vw, -12px);
  bottom: clamp(58px, 19%, 88px);
  color: var(--color-accent);
  background: rgba(var(--rgb-accent), 0.12);
  animation-delay: 0.76s;
}

.about-institute-floating-card {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 7px;
  width: clamp(158px, 14vw, 220px);
  padding: 14px 16px;
  color: var(--color-primary-dark);
  text-align: right;
  direction: rtl;
  background: rgba(var(--rgb-white), 0.78);
  border: 1px solid rgba(var(--rgb-primary), 0.1);
  border-radius: 10px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.about-institute-tests-card {
  top: clamp(8px, 1.2vw, 18px);
  right: clamp(20px, 5vw, 82px);
}

.about-institute-success-card {
  left: clamp(-28px, -1.6vw, -8px);
  bottom: clamp(38px, 5.5vw, 70px);
}

.about-institute-results-card {
  right: clamp(24px, 12.3vw, 65px);
  bottom: clamp(-30px, -1.4vw, -10px);
  width: clamp(170px, 15vw, 238px);
}

.about-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  background: rgba(var(--rgb-primary), 0.08);
  border-radius: var(--radius-circle);
}

.about-card-icon-red {
  color: var(--color-accent);
  background: rgba(var(--rgb-accent), 0.1);
}

.about-card-icon-blue,
.about-institute-node {
  color: var(--color-primary);
  background: rgba(var(--rgb-primary), 0.12);
}

.about-institute-node-goal {
  color: var(--color-accent);
  background: rgba(var(--rgb-accent), 0.12);
}

.about-card-icon svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

.about-institute-floating-card strong {
  color: var(--color-primary-dark);
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
}

.about-institute-floating-card p {
  margin: 0px;
  color: var(--color-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.7;
}

.about-institute-floating-card ul {
  display: grid;
  justify-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 5px;
  color: var(--color-text);
  font-size: clamp(0.72rem, 0.82vw, 0.9rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
  direction: rtl;
  list-style: none;
}

.about-institute-floating-card li {
  position: relative;
  width: 100%;
  padding-inline: 0 14px;
  line-height: 1.45;
  text-align: right;
}

.about-institute-floating-card li::after {
  position: absolute;
  top: 0.62em;
  inset-inline-end: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--color-primary);
  border-radius: var(--radius-circle);
  box-shadow: 0 0 0 3px rgba(var(--rgb-primary), 0.08);
}

.about-mini-bars {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  align-items: end;
  justify-content: end;
  justify-self: start;
  width: min(100%, 126px);
  height: 36px;
  padding: 3px 2px 4px;
  gap: 7px;
  /* direction: ltr; */
}

.about-mini-bars i {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 10px;
  background: linear-gradient(180deg, rgba(var(--rgb-white), 0.52) 0%, rgba(var(--rgb-primary), 0.34) 14%, rgba(var(--rgb-primary), 0.2) 100%);
  border: 1px solid rgba(var(--rgb-primary), 0.08);
  border-bottom: 0;
  border-radius: 7px 7px 2px 2px;
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.86), 0 6px 10px rgba(var(--rgb-primary), 0.08);
}

.about-mini-bars i:nth-child(1) {
  height: 8px;
}

.about-mini-bars i:nth-child(2) {
  height: 12px;
}

.about-mini-bars i:nth-child(3) {
  height: 17px;
}

.about-mini-bars i:nth-child(4) {
  height: 27px;
  background: linear-gradient(180deg, rgba(var(--rgb-white), 0.48) 0%, rgba(var(--rgb-primary), 0.84) 16%, rgba(var(--rgb-primary), 0.56) 100%);
  border-color: rgba(var(--rgb-primary), 0.12);
}

.about-mini-bars i:nth-child(5) {
  height: 13px;
}

.about-mini-bars i:nth-child(6) {
  height: 30px;
  background: linear-gradient(180deg, rgba(var(--rgb-white), 0.5) 0%, rgba(var(--rgb-accent), 0.86) 15%, rgba(var(--rgb-accent), 0.58) 100%);
  border-color: rgba(var(--rgb-accent), 0.14);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.86), 0 7px 12px rgba(var(--rgb-accent), 0.11);
}

.about-institute-visual.is-in-view .about-institute-node,
.about-institute-visual.is-in-view .about-institute-floating-card {
  animation: aboutFloatCardIn 0.66s cubic-bezier(0.18, 0.82, 0.22, 1) forwards;
}

.about-institute-visual.is-in-view .about-institute-tests-card,
.about-institute-visual.is-in-view .about-institute-node-cap {
  animation-delay: 0.66s;
}

.about-institute-visual.is-in-view .about-institute-success-card {
  animation-delay: 0.82s;
}

.about-institute-visual.is-in-view .about-institute-results-card {
  animation-delay: 1.04s;
}

.about-institute-visual.is-in-view .about-institute-node-goal {
  animation-delay: 0.76s;
}

@keyframes aboutConnectorCapIn {
  to {
    opacity: 0.78;
    transform: rotate(20deg) translateY(0) scale(1);
  }
}

@keyframes aboutConnectorGoalIn {
  to {
    opacity: 0.86;
    transform: rotate(65deg) translateY(0) scale(1);
  }
}

@keyframes aboutConnectorDraw {
  from {
    stroke-dashoffset: 82;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes aboutFloatCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .about-institute-inner {
      grid-template-columns: minmax(450px, 1.1fr) minmax(360px, 0.9fr);
      gap: clamp(12px, 1.8vw, 24px);
    }

  .about-institute-planet {
      left: auto;
      width: clamp(210px, 24vw, 330px);
    }
}

@media (max-width: 900px) {
  .about-institute-section {
      padding-block: 0 clamp(30px, 6vw, 48px);
    }

  .about-institute-inner {
      display: block;
      min-height: auto;
    }

  .about-institute-visual {
      position: absolute;
      inset: -8% auto auto -18%;
      z-index: -1;
      width: min(48vw, 300px);
      min-height: auto;
      aspect-ratio: 1;
      opacity: 0.58;
    }

  .about-institute-planet {
      top: auto;
      left: auto;
      width: min(78%, 300px);
    }

  .about-institute-content {
      width: 100%;
      margin-inline: auto;
    }

  .about-institute-heading h2 {
      max-width: 620px;
    }
}

@media (max-width: 640px) {
  .about-institute-visual {
      position: relative;
      inset: auto;
      z-index: 0;
      width: min(100%, 430px);
      min-height: clamp(430px, 112vw, 530px);
      margin: 0 auto clamp(16px, 4vw, 24px);
      overflow: visible;
      aspect-ratio: auto;
      opacity: 1;
    }

  .about-institute-content {
      position: relative;
      z-index: 2;
      margin-top: clamp(-110px, -18vw, -64px);
    }

  .about-institute-visual::before {
      inset: 12% auto auto -12%;
      width: 82%;
      opacity: 0.11;
    }

  .about-institute-media-card {
      width: clamp(245px, 72vw, 318px);
      border-radius: clamp(15px, 1vw, 15px);
      transform: translateY(clamp(34px, 8vw, 48px));
    }

  .about-institute-planet {
      top: auto;
      left: auto;
      width: clamp(190px, 56vw, 260px);
    }

  .about-institute-path-left {
      inset: 12% auto auto 4%;
      z-index: 1;
      width: clamp(112px, 32vw, 148px);
      transform: rotate(20deg) translateY(10px) scale(0.94);
      transform-origin: 12% 72%;
    }

  .about-institute-path-right {
      inset: auto 3% 24% auto;
      z-index: 1;
      width: clamp(142px, 45vw, 188px);
      transform: rotate(65deg) translateY(12px) scale(0.94);
      transform-origin: 84% 20%;
    }

  .about-institute-floating-card {
      padding: 9px 10px;
      gap: 5px;
      border-radius: 10px;
    }

  .about-institute-tests-card {
      top: 0;
      right: clamp(8px, 4vw, 18px);
      width: clamp(132px, 39vw, 160px);
    }

  .about-institute-success-card {
      left: 0;
      bottom: clamp(56px, 40vw, 130px);
      width: clamp(124px, 41vw, 144px);
    }

  .about-institute-results-card {
      right: clamp(8px, 5vw, 20px);
      bottom: clamp(8px, 40vw, 100px);
      width: clamp(132px, 44vw, 154px);
    }

  .about-institute-node-cap {
      top: clamp(52px, 15vw, 70px);
      left: clamp(20px, 7vw, 34px);
    }

  .about-institute-node-goal {
      right: clamp(20px, 8vw, 38px);
      bottom: clamp(150px, 39vw, 190px);
    }

  .about-institute-floating-card strong {
      font-size: 0.76rem;
    }

  .about-institute-floating-card p,
    .about-institute-floating-card ul {
      font-size: 0.64rem;
    }

  .about-institute-floating-card ul {
      gap: 4px;
      line-height: 1.28;
    }

  .about-institute-floating-card li {
      min-height: 17px;
      padding-inline: 0 10px;
    }

  .about-institute-floating-card li::after {
      width: 4px;
      height: 4px;
      box-shadow: 0 0 0 2.5px rgba(var(--rgb-primary), 0.075);
    }

  .about-card-icon,
    .about-institute-node {
      width: 34px;
      height: 34px;
    }

  .about-mini-bars {
      grid-auto-columns: 9px;
      width: min(100%, 98px);
      height: 28px;
      gap: 5px;
    }
}

@media (max-width: 420px) {
  .about-institute-visual {
      width: min(100%, 380px);
      min-height: clamp(420px, 124vw, 505px);
    }

  .about-institute-media-card {
      width: clamp(225px, 76vw, 292px);
      transform: translateY(clamp(-60px, -20vw, 25px));
    }

  .about-institute-planet {
      width: clamp(176px, 58vw, 238px);
    }

  .about-institute-path-left {
      inset: 11% auto auto -1%;
      width: clamp(104px, 33vw, 132px);
    }

  .about-institute-path-right {
      inset: auto -2% 27% auto;
      width: clamp(132px, 46vw, 168px);
    }

  .about-institute-tests-card {
      top: 0;
      right: 0;
      width: clamp(124px, 40vw, 142px);
    }

  .about-institute-success-card {
      left: 0;
      bottom: clamp(56px, 40vw, 130px);
      width: clamp(124px, 41vw, 144px);
    }

  .about-institute-results-card {
      right: clamp(14px, 15vw, 40px);
      bottom: clamp(8px, 40vw, 100px);
      width: clamp(132px, 44vw, 154px);
    }

  .about-institute-node-cap {
      top: clamp(54px, 16vw, 66px);
      left: clamp(-10px, -25vw, -14px);
    }

  .about-institute-node-goal {
      right: clamp(-10px, -9vw, -10px);
      bottom: clamp(150px, 50vw, 195px);
    }
}

@media (prefers-reduced-motion: reduce) {
  .about-institute-path path,
    .about-institute-node,
    .about-institute-floating-card {
      animation: none;
      opacity: 1;
      transform: none;
      stroke-dashoffset: 0;
    }
}

/* page-flow-atmosphere: start */
.about-institute-section {
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.34) 0%, rgba(236, 245, 253, 0.46) 50%, rgba(248, 251, 255, 0.28) 100%);
}

.about-institute-section::after {
  position: absolute;
  inset: auto auto -18% -10%;
  z-index: -1;
  width: clamp(260px, 36vw, 560px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.42;
  background:
    radial-gradient(circle at 48% 44%, rgba(var(--rgb-white), 0.74), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(var(--rgb-primary), 0.11), transparent 64%);
  pointer-events: none;
}
/* page-flow-atmosphere: end */
