/*
 * V74 keeps the V52 desktop composition and typography hierarchy in
 * Montserrat. Tracking, spacing, and content-section rules remain inherited.
 * On mobile, the opening hero becomes the approved cinematic full-screen
 * composition while every live-text role remains Montserrat.
 *
 * The optical corrections below use a 380 grade for roles that use SF 300 and
 * a smaller responsive scale for Montserrat's naturally wider section titles.
 */

@font-face {
  font-display: swap;
  font-family: "Casalta Montserrat V74";
  font-style: normal;
  font-weight: 100 900;
  src: url("assets/fonts/montserrat-v58/Montserrat-V58.ttf") format("truetype");
}

.site-v2.site-v74 {
  --display-font: "Casalta Montserrat V74", Arial, sans-serif;
  font-family: var(--display-font);
  font-synthesis: none;
}

.site-v2.site-v74[data-supporting-type="Montserrat V74"] *,
.site-v2.site-v74[data-supporting-type="Montserrat V74"] *::before,
.site-v2.site-v74[data-supporting-type="Montserrat V74"] *::after,
.site-v2.site-v74[data-supporting-type="Montserrat V74"] *::placeholder,
.site-v2.site-v74[data-supporting-type="Montserrat V74"] *::marker,
.site-v2.site-v74[data-supporting-type="Montserrat V74"] *::file-selector-button {
  font-family: var(--display-font) !important;
  font-synthesis: none;
}

/*
 * SF's 300-grade display text renders optically heavier than Montserrat Light
 * at the same numeric weight. Use the variable font's 380 grade so every role
 * that was 300 in V52 carries the same visible stroke strength in Montserrat;
 * only the main section-title sizes receive the separate correction below.
 */
.site-v2.site-v74 .atlas-toolbar h2,
.site-v2.site-v74 .section-heading h2,
.site-v2.site-v74 .about h2,
.site-v2.site-v74 .building-meta h3,
.site-v2.site-v74 .news-list h3,
.site-v2.site-v74 .about p,
.site-v2.site-v74 .hero-stats dd,
.site-v2.site-v74 .parcel-card h2 {
  font-weight: 380;
}

/*
 * At 72px Montserrat makes the section-title words roughly 16-25% wider than
 * San Francisco. These sizes bring the visible title footprint back in line
 * with V52 while preserving the same 0.98 line-height and breakpoint rhythm.
 */
.site-v2.site-v74 .atlas-toolbar h2,
.site-v2.site-v74 .section-heading h2,
.site-v2.site-v74 .about h2 {
  font-size: 60px;
}

/* Keep long editorial headings calm and prevent single-word final lines. */
.site-v2.site-v74 .building-meta h3,
.site-v2.site-v74 .news-list h3 {
  text-wrap: balance;
}

.site-v2.site-v74 .news-list .journal-summary,
.site-v2.site-v74 .about > p {
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .site-v2.site-v74 .atlas-toolbar h2,
  .site-v2.site-v74 .section-heading h2,
  .site-v2.site-v74 .about h2 {
    font-size: 46px;
  }
}

@media (max-width: 560px) {
  .site-v2.site-v74 .atlas-toolbar h2,
  .site-v2.site-v74 .section-heading h2,
  .site-v2.site-v74 .about h2 {
    font-size: 38px;
  }

  .site-v2.site-v74 .news-list h3 {
    font-size: 30px;
  }
}

/*
 * Mobile opening cover: full-viewport image, official logo, store badges, and
 * a quiet building credit. Only the hero/header geometry changes here; the
 * rest of the site retains V52's layout and V74's Montserrat hierarchy.
 */
@media (max-width: 700px) {
  .site-v2.site-v74 .home-hero--studio {
    background: #11110f;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: 0;
    position: relative;
  }

  .site-v2.site-v74 .home-hero--studio .hero-screen {
    border: 0;
    border-radius: 0;
    height: 100%;
    inset: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
  }

  .site-v2.site-v74 .home-hero--studio .hero-screen > img:first-child {
    aspect-ratio: auto;
    height: 100%;
    object-fit: cover;
    object-position: 59% center;
    width: 100%;
  }

  .site-v2.site-v74 .home-hero--studio .hero-screen::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 9, 0.18) 0%, rgba(10, 10, 9, 0.02) 31%, rgba(10, 10, 9, 0.08) 51%, rgba(10, 10, 9, 0.6) 100%),
      linear-gradient(90deg, rgba(10, 10, 9, 0.15), transparent 58%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
  }

  .site-v2.site-v74 .site-header {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 72px;
    padding: 14px 16px;
  }

  .site-v2.site-v74 .site-header:not(.is-scrolled):not(.is-open) .wordmark {
    opacity: 0;
    pointer-events: none;
  }

  .site-v2.site-v74 .site-header:not(.is-scrolled):not(.is-open) .menu-toggle span {
    background: #ffffff;
  }

  .site-v2.site-v74 .hero-download {
    align-items: stretch;
    background: transparent;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
    inset: 0;
    justify-content: flex-start;
    padding: max(70px, calc(env(safe-area-inset-top) + 54px)) 22px max(44px, calc(env(safe-area-inset-bottom) + 28px));
    position: absolute;
    text-align: left;
    z-index: 3;
  }

  .site-v2.site-v74 .hero-brand-mark {
    display: block;
    filter: brightness(0) invert(1);
    height: auto;
    margin: clamp(24px, 7svh, 66px) auto 0;
    max-width: none;
    opacity: 0.92;
    width: min(84vw, 390px);
  }

  .site-v2.site-v74 .hero-download .hero-pitch,
  .site-v2.site-v74 .hero-download .hero-pitch span {
    color: #ffffff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.34);
  }

  .site-v2.site-v74 .hero-download .hero-pitch {
    margin: auto 0 0;
    max-width: 345px;
  }

  .site-v2.site-v74 .hero-download .hero-pitch > span {
    display: block;
    white-space: nowrap;
  }

  .site-v2.site-v74 .store-badges {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    margin: 26px 0 34px;
    width: 100%;
  }

  .site-v2.site-v74 .store-badge {
    align-items: center;
    display: flex;
    max-width: none;
    width: 100%;
  }

  .site-v2.site-v74 .store-badge img {
    display: block;
    height: auto;
    width: 100%;
  }

  .site-v2.site-v74 .home-hero--studio figcaption {
    align-items: flex-end;
    background: transparent;
    border: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    justify-content: flex-end;
    left: auto;
    padding: 0;
    position: absolute;
    right: 16px;
    text-align: right;
    width: auto;
    z-index: 4;
  }

  .site-v2.site-v74 .home-hero--studio figcaption strong {
    display: none;
  }

  .site-v2.site-v74 .home-hero--studio figcaption span {
    color: inherit;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 370px) {
  .site-v2.site-v74 .hero-download {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-v2.site-v74 .store-badges {
    gap: 7px;
  }
}

/* Preserve V52's type sizes while protecting its deliberate two-line copy. */
@media (max-width: 331px) {
  .site-v2.site-v74 .building-meta {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 323px) {
  .site-v2.site-v74 .hero-download {
    padding-left: 14px;
    padding-right: 14px;
  }
}
