/* Serie Chile: compact editorial mobile intro. Desktop remains untouched. */
@media (max-width: 760px) {
  .atlas-viewport.is-intro {
    height: calc(100dvh - var(--header-h, 76px)) !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .atlas-intro {
    box-sizing: border-box;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(14px, 2.2vh, 24px) 24px max(14px, env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr) auto auto !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: rgba(247,245,239,.96) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    transform-origin: 50% 50%;
    animation: atlasMobileIntroIn 620ms cubic-bezier(.22,.72,.18,1) both;
  }

  .atlas-intro::before,
  .atlas-intro::after {
    content: none !important;
    display: none !important;
  }

  .atlas-intro-loader {
    grid-row: 2;
    margin: 0 auto clamp(10px, 1.7vh, 16px) !important;
    transform: scale(.78);
    transform-origin: 50% 50%;
  }

  .atlas-intro .section-index {
    grid-row: 3;
    max-width: 240px;
    margin: 0 auto 7px !important;
    text-align: center;
    font-size: 9px !important;
    line-height: 1.35 !important;
    letter-spacing: .18em !important;
  }

  .atlas-intro h2 {
    grid-row: 4;
    width: max-content;
    max-width: min(86vw, 356px);
    margin: 0 auto !important;
    text-align: center;
    font-size: 1px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .atlas-intro-title-lead,
  .atlas-intro-title-map {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
  }

  .atlas-intro-title-lead {
    font-size: clamp(35px, 9.6vw, 43px);
    line-height: .92;
    letter-spacing: -.035em;
  }

  .atlas-intro-title-map {
    margin-top: .08em;
    font-size: clamp(63px, 17.6vw, 78px);
    line-height: .79;
    letter-spacing: -.052em;
  }

  .atlas-intro-grid {
    grid-row: 6;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    border-top: 1px solid rgba(52,42,31,.28) !important;
    border-bottom: 1px solid rgba(52,42,31,.28) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .atlas-intro-grid article {
    box-sizing: border-box;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-content: center !important;
    align-items: start;
    padding: clamp(10px, 1.5vh, 14px) 4px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(52,42,31,.16) !important;
    background: transparent !important;
  }

  .atlas-intro-grid article:last-child {
    border-bottom: 0 !important;
  }

  .atlas-intro-grid article > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 3px;
    font-size: 9px !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
    opacity: .58;
  }

  .atlas-intro-grid article > strong {
    grid-column: 2;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
    letter-spacing: .11em !important;
    text-transform: uppercase;
  }

  .atlas-intro-grid article > p {
    grid-column: 2;
    min-width: 0;
    max-width: 330px;
    margin: 3px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.32 !important;
    opacity: .72;
    overflow-wrap: anywhere;
  }

  .atlas-intro-enter {
    grid-row: 7;
    width: 100%;
    min-height: 46px !important;
    margin: clamp(10px, 1.5vh, 14px) 0 0 !important;
    border: 1px solid #181713 !important;
    background: #181713 !important;
    color: #f4f0e8 !important;
    font-size: 10px !important;
    letter-spacing: .22em !important;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease !important;
  }

  .atlas-intro-enter::after {
    content: "  →";
  }

  .atlas-intro-enter:active {
    transform: scale(.985);
  }

  .atlas-viewport.is-intro .atlas-world {
    animation: atlasMobileWorldIn 760ms cubic-bezier(.22,.72,.18,1) both;
  }

  .atlas-viewport:not(.is-intro) .atlas-world {
    transition: transform 900ms cubic-bezier(.2,.75,.2,1), opacity 520ms ease !important;
  }

  .atlas-intro.is-leaving {
    pointer-events: none;
    animation: atlasMobileIntroOut 420ms cubic-bezier(.4,0,.2,1) both;
  }

  @keyframes atlasMobileIntroIn {
    from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.995); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  @keyframes atlasMobileIntroOut {
    from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    to { opacity: 0; transform: translate3d(0, -22px, 0) scale(.995); }
  }

  @keyframes atlasMobileWorldIn {
    from { opacity: .58; transform: scale(1.045); }
    to { opacity: 1; transform: scale(1); }
  }
}

@media (max-width: 380px), (max-width: 760px) and (max-height: 720px) {
  .atlas-intro {
    padding: 8px 18px max(8px, env(safe-area-inset-bottom)) !important;
    grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr) auto auto !important;
  }

  .atlas-intro-loader {
    margin-bottom: 6px !important;
    transform: scale(.66);
  }

  .atlas-intro .section-index {
    margin-bottom: 4px !important;
    font-size: 8px !important;
  }

  .atlas-intro-title-lead {
    font-size: 31px;
  }

  .atlas-intro-title-map {
    font-size: 57px;
  }

  .atlas-intro-grid article {
    padding: 7px 3px !important;
  }

  .atlas-intro-grid article > strong {
    font-size: 14px !important;
  }

  .atlas-intro-grid article > p {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  .atlas-intro-enter {
    min-height: 42px !important;
    margin-top: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-intro,
  .atlas-viewport.is-intro .atlas-world,
  .atlas-intro.is-leaving { animation: none !important; }
}