/* =========================================
   ABOUT PAGE
   Later moved to about.css
   ========================================= */

.about-main {
  width: 100%;
  max-width: 1150px;
}

.about-section {
  padding: 14px 0 25px;
}

.about-section h2 {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400;

  border-left: 3px solid var(--red);
  padding-left: 15px;

  margin: 0 0 17px;
}

.about-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #d3deeb;

  margin: 0 0 15px;
  max-width: 790px;
}

/* TECHNOLOGY TEXT AND PRISM */

.technology-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(260px, .85fr);

  gap: 30px;
  align-items: center;
}


/* Desktop: text left, MRR image right */
.technology-text {
  grid-column: 1;
  grid-row: 1;
}

.cornercube {
  grid-column: 2;
  grid-row: 1;
}


.cornercube {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;

  -webkit-mask-image: radial-gradient(
    ellipse 85% 85% at center,
    black 65%,
    rgba(0,0,0,.95) 80%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse 85% 85% at center,
    black 65%,
    rgba(0,0,0,.95) 80%,
    transparent 100%
  );
}

/* CONTACT */

.contact-link {
  display: inline-block;

  margin-top: 8px;
  padding: 11px 20px;

  border: 1px solid #bd4a58;
  color: var(--white);
  text-decoration: none;
}

.contact-link:hover {
  background: #6b1b28;
}

.about-section .contact-email {
  margin-top: 15px;
  color: var(--subtitle);
}

/* MOBILE AND NARROW WINDOWS */


@media (max-width: 700px) {

  .technology-layout {
    grid-template-columns: 1fr;
  }

  /* Mobile: MRR image first, text below */
  .cornercube {
    grid-column: 1;
    grid-row: 1;
    max-height: 300px;
  }

  .technology-text {
    grid-column: 1;
    grid-row: 2;
  }
}
