/* Final responsive refinements from the approved Nora Aria layouts. */

.footer-ac-link {
  display: flex;
  align-items: center;
  gap: clamp(30px, 2.5vw, 48px);
  color: inherit;
  line-height: 0;
  text-decoration: none;
}

@media (min-width: 768px) {
  html.is-wheel-scrolling {
    scroll-behavior: auto !important;
  }

  .quiet-copy p {
    max-width: 860px;
  }

  .quiet-copy p br {
    display: none;
  }
}

@media (max-width: 767px) {
  html.type-lightbox-open,
  html.type-lightbox-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .mobile-type-gallery__card {
    cursor: zoom-in;
  }

  .type-lightbox[hidden] {
    display: none;
  }

  .type-lightbox {
    --type-lightbox-width: calc(100vw - 30px);
    --type-lightbox-height: calc(100dvh - 184px);
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 260ms ease;
    touch-action: none;
  }

  .type-lightbox.is-open {
    opacity: 1;
  }

  .type-lightbox__stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--type-lightbox-width);
    height: var(--type-lightbox-height);
    display: grid;
    place-items: center;
    overflow: hidden;
    transform: translate(-50%, -50%);
  }

  .type-lightbox__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 220ms ease;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
  }

  .type-lightbox.is-zoomed .type-lightbox__image {
    transition: none;
    cursor: grab;
  }

  .type-lightbox__button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }

  .type-lightbox__button img {
    display: block;
    width: 43px;
    height: 43px;
    pointer-events: none;
  }

  .type-lightbox__close {
    top: calc(env(safe-area-inset-top, 0px) + 38px);
    left: 50%;
    transform: translateX(-50%);
  }

  .type-lightbox__previous,
  .type-lightbox__next {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
  }

  .type-lightbox__previous { left: calc(50% - 58px); }
  .type-lightbox__next { left: calc(50% + 15px); }

  .type-lightbox__counter {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .image-track .track-card {
    aspect-ratio: 1.6890497946;
    height: auto;
  }

  .image-track .track-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .drone-label {
    column-gap: 4px;
  }

  .sea-caption {
    height: 248.836px;
    min-height: 0;
  }

  .typology-block .plan-main {
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-top: 8px;
    margin-bottom: -33px;
  }

  .typology-block .plan-site {
    height: 180px;
    object-fit: cover;
    object-position: center;
  }

  .typology-block .meters {
    column-gap: 0;
    row-gap: 0;
    margin-bottom: -5px;
    padding-bottom: 11px;
  }

  .typology-block .meters-panel {
    font-size: 12px;
    line-height: 1.35;
  }
}

@keyframes noraAriaTypologyIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noraAriaMetersDrop {
  0% {
    opacity: 0;
    height: 0;
  }
  24% { opacity: 1; }
  100% {
    opacity: 1;
    height: var(--meters-panel-height, auto);
  }
}

@keyframes noraAriaMetersClose {
  0% {
    opacity: 1;
    height: var(--meters-panel-height, auto);
  }
  76% { opacity: 1; }
  100% {
    opacity: 0;
    height: 0;
  }
}

.typology-sequence {
  animation-duration: 1.32s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.typology-sequence--title {
  animation-delay: .08s;
}

.typology-sequence--meta {
  animation-delay: .3s;
}

.typology-sequence--layout > .type-copy {
  animation: noraAriaTypologyIn 1.38s cubic-bezier(.16, 1, .3, 1) .5s both;
}

.typology-sequence--layout > .plan-main {
  animation: noraAriaTypologyIn 1.5s cubic-bezier(.16, 1, .3, 1) .72s both;
}

.typology-sequence--layout > .plan-site {
  animation: noraAriaTypologyIn 1.5s cubic-bezier(.16, 1, .3, 1) .96s both;
}

.typology-sequence--layout .tabs {
  animation: noraAriaTypologyIn 1.34s cubic-bezier(.16, 1, .3, 1) .46s both;
}

.typology-sequence--layout .meters {
  animation: noraAriaTypologyIn 1.28s cubic-bezier(.16, 1, .3, 1) 1.16s both;
}

.typology-sequence--layout .meters-panel {
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 12px;
  overflow: hidden;
  transform-origin: top center;
  animation: noraAriaMetersDrop 1.12s cubic-bezier(.22, .61, .36, 1) both;
  will-change: height, opacity;
}

.typology-sequence--layout .meters-panel.is-closing {
  pointer-events: none;
  animation: noraAriaMetersClose 1.08s cubic-bezier(.22, .61, .36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .typology-sequence,
  .typology-sequence--layout > .type-copy,
  .typology-sequence--layout > .plan-main,
  .typology-sequence--layout > .plan-site,
  .typology-sequence--layout .tabs,
  .typology-sequence--layout .meters,
  .typology-sequence--layout .meters-panel {
    animation: none;
  }
}
