/* ==========================================================================
   NASHORN – Über Nashorn
   Developed by webndo

   Desktop (>= 1200px) is a 39fr editorial column and a gapless
   3×2 checkerboard. Smaller screens keep the stacked section.
   ========================================================================== */

.about {
  --about-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.about__year {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.about__cta-ne {
  display: none;
}

.about__photo {
  display: none;
}

.about__mark {
  display: none;
}

/* Keep the underline link below the desktop layout. */
@media (max-width: 767.98px),
       (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (max-height: 600px) {
  .about__inner {
    display: flex;
    flex-direction: column;
  }

  .about__copy {
    display: contents;
  }

  .about__board {
    order: 1;
  }

  .about__cta {
    order: 2;
    align-self: flex-start;
  }

  .about .about__cta.engineering__cta {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    margin-top: 0;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: inherit;
    text-transform: none;
  }

  .about .about__cta.engineering__cta .icon {
    width: 19px;
    height: 19px;
    stroke-width: 1.5;
  }

  .about .about__cta.engineering__cta:hover,
  .about .about__cta.engineering__cta:focus-visible {
    border-color: transparent;
    background: transparent;
    color: var(--text-dark);
  }

  .about .about__cta.engineering__cta:hover .icon,
  .about .about__cta.engineering__cta:focus-visible .icon {
    transform: translateX(5px);
  }
}

@media (min-width: 1200px),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) {
  .about {
    overflow: hidden;
  }

  .about__inner {
    display: grid;
    grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .about__copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 160px clamp(48px, 3.9vw, 88px) 160px
      max(min(var(--gutter), 40px), calc((100vw - var(--container-wide)) / 2));
  }

  .about__copy > :not(.about__mark) {
    position: relative;
    z-index: 1;
  }

  .about__mark {
    display: block;
    position: absolute;
    z-index: 0;
    left: -52px;
    bottom: 0;
    width: 240px;
    height: 208px;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
  }

  .about__mark img {
    position: absolute;
    width: 1044px;
    height: 313px;
    max-width: none;
    left: -793px;
    top: -39px;
  }

  .about__text {
    max-width: 38ch;
    margin-bottom: 32px;
  }

  .about .about__cta.engineering__cta {
    align-self: flex-start;
    margin-top: 0;
  }

  .about .about__cta.text-link--underline::after {
    content: none;
  }

  .about__cta-fwd {
    display: none;
  }

  .about__cta-ne {
    display: block;
  }

  .about__board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: clamp(560px, 62vh, 760px);
    margin: 0;
    padding: 0;
    border: 0;
  }

  .about__tile--f1 { grid-column: 1; grid-row: 2; }
  .about__tile--f2 { grid-column: 2; grid-row: 1; }
  .about__tile--f3 { grid-column: 3; grid-row: 2; }
  .about__tile--i1 { grid-column: 1; grid-row: 1; }
  .about__tile--i2 { grid-column: 2; grid-row: 2; }
  .about__tile--i3 { grid-column: 3; grid-row: 1; }

  .about .highlight-list__item,
  .about .highlight-list__item + .highlight-list__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: clamp(32px, 3vw, 48px);
    border: 0;
    background: #fff;
  }

  .about .highlight-list__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    color: var(--nashorn-blue);
    stroke-width: 1.2;
  }

  .about .highlight-list__item strong {
    font-size: 1.1875rem;
  }

  .about__tile {
    position: relative;
    z-index: 1;
  }

  .about__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 26, 41, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 320ms var(--about-ease);
  }

  .about__board:has(.highlight-list__item:is(:hover, :focus-visible)) .about__tile::after {
    opacity: 1;
  }

  .about .highlight-list__item:is(:hover, :focus-visible) {
    z-index: 6;
    transform: scale(1.035);
  }

  .about__board:has(.highlight-list__item:is(:hover, :focus-visible)) .highlight-list__item:is(:hover, :focus-visible)::after {
    opacity: 0;
  }

  .about__photo {
    display: block;
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #d7e0e8;
  }

  .about__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about__tile--i1 img { object-position: 50% 62%; }
  .about__tile--i2 img { object-position: 48% 42%; }
  .about__tile--i3 img { object-position: 58% 48%; }

  .js .about__copy,
  .js .about__tile {
    opacity: 0;
    translate: 0 18px;
  }

  .js .about__photo img {
    clip-path: inset(10% 0 0 0);
  }

  .js .about.is-in .about__copy {
    opacity: 1;
    translate: 0 0;
    transition:
      opacity 720ms var(--about-ease),
      translate 720ms var(--about-ease);
  }

  .js .about.is-in .about__tile {
    opacity: 1;
    translate: 0 0;
    transition:
      opacity 680ms var(--about-ease) var(--d, 0ms),
      translate 680ms var(--about-ease) var(--d, 0ms),
      transform 420ms var(--about-ease);
  }

  .js .about.is-in .about__photo img {
    clip-path: inset(0);
    transition: clip-path 860ms var(--about-ease);
    transition-delay: var(--d, 0ms);
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px) and (prefers-reduced-motion: reduce),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  .js .about__copy,
  .js .about__tile {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .js .about__photo img {
    clip-path: none;
    transition: none;
  }
}
