/* ============================================================
   AMENITIES PAGE — PHONE (default)
   ============================================================ */


.amenities-page .page-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--am-pad-mobile);
}

.heading-xl {
  font-family: 'Komrile', 'Georgia', serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 0.95;
  color: var(--merlot);
  font-feature-settings: 'liga' 0;
}

.body-text {
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--merlot);
}

.list-text {
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--merlot);
  padding: 0;
}

.am-show-desktop,
.am-show-tablet {
  display: none;
}

.am-show-mobile {
  display: block;
}

/* ---- HERO ---- */
.am-hero {
  position: relative;
  height: 710px;
  overflow: hidden;
  margin-bottom: 50px;
}
.am-hero-bg {
  position: relative;
  width: 100%;
  height: 100%;
}
.am-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.am-hero-gradient {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--eggshell), transparent);
}
.am-hero-content {
  position: absolute;
  top: 82px;
  left: 0; right: 0;
  z-index: 2;
  padding: 0 0 40px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
}
.am-hero-content .btn {
  padding: 15px 41px;
  font-size: 12px;
  letter-spacing: 2.5px;
}
.am-hero-title {
  font-family: 'Komrile', 'Georgia', serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 0.95;
  color: var(--merlot);
  font-feature-settings: 'liga' 0;
  max-width: 345px;
}

.am-feature-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ---- CURATED COLLECTION ---- */
.am-curated {
 padding: 0 15px;
  margin: 0 auto 90px;
}
.am-curated-inner {
  display: flex;
  flex-direction: column;
  gap: 31px;
}
.am-curated-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.am-curated-title {
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--merlot);
}
.am-curated-desc {
  max-width: 345px;
  padding-top: 0;
  line-height: 1.2;
}
.am-curated-image {
  position: relative;
  width: 100%;
  height: 395px;
  overflow: hidden;
}
.am-curated-img1,
.am-curated-img2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- GROUND FLOOR AMENITIES ---- */
.am-ground {
  margin: 0 0 90px;
  padding: 0 15px;
}
.am-section-title {
  margin-bottom: 50px;
}

/* amenity item */
.am-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-self: stretch;
  gap: 0;
  margin-bottom: 20px;
}
.list-appartments{
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 9px;
}
.am-item:last-child {
  margin-bottom: 0;
}
.am-item-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}
.am-item-line {
  height: 1px;
  background: var(--border);
}
.am-item-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.am-item-name {
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--merlot);
}
.am-item-desc {
  max-width: 345px;
  line-height: 1.2;
}

.am-item .am-item-desc {
  letter-spacing: -0.023em;
  font-size: 14px;
}
.am-item-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}
.am-item-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}
.am-item-img-wrap .img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-item-img-wrap img,
.am-rooftop-img-wrap img {
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(1);
  opacity: 1;
  will-change: opacity, transform;
}

.am-item-img-wrap.is-source-swapping img,
.am-rooftop-img-wrap.is-source-swapping img {
  opacity: 0;
  transform: scale(1.02);
}

/* nav buttons */
.am-gallery-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 0;
  position: static;
}
.am-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--eggshell);
  color: var(--merlot);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.am-nav-btn:hover { opacity: 0.7; }
.am-nav-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

/* ---- ROOFTOP DECK ---- */
.am-rooftop {
  margin: 0 0 60px;
  padding: 0 15px;;
}
.am-rooftop-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.am-rooftop-text {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.am-rooftop-title {
  font-family: 'Komrile', 'Georgia', serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 0.95;
  letter-spacing: 0.015em;
  color: var(--merlot);
  font-feature-settings: 'liga' 0;
}
.am-rooftop-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}
.am-rooftop-img-wrap .img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* feature list */
.am-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.am-rooftop .am-feature-list > li {
  line-height: 37px;
}

.am-rooftop .am-feature-list > li:first-child {
  letter-spacing: -0.002em;
}


.am-feature-line {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ---- TECHNOLOGY & SECURITY ---- */
.am-tech {
  margin: 50px 0 60px;
}
.am-tech-title {
  font-family: 'Komrile', 'Georgia', serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 0.95;
  color: var(--merlot);
  font-feature-settings: 'liga' 0;
  margin-bottom: 30px;
}
.am-tech-title em {
  font-style: italic;
}
.am-tech-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.am-tech-image {
  position: relative;
  width: 100%;
  height: 395px;
  overflow: hidden;
}
.am-tech-img1,
.am-tech-img2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-tech-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.am-tech-lead {
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--merlot);
}
.am-tech-list {
  margin-top: 0;
}

@media (max-width: 767px) {
  /* Keep amenities dividers visible on mobile even if GSAP line reveal leaves scaleX(0). */
  .amenities-page .am-item-line,
  .amenities-page .am-feature-line {
    display: block;
    width: 100%;
    min-height: 1px;
    height: 1px;
    flex-shrink: 0;
    transform: none !important;
    will-change: auto !important;
    opacity: 1;
  }

  .amenities-page article > * + * {
    margin-top: 20px;
  }

  .am-ground {
    margin: 0px 0 88px;
  }

  .am-rooftop-text {
    gap: 52px;
  }

  .am-rooftop-inner {
    gap: 25px;
  }

  .am-tech {
    margin: 90px 0 66px;
    padding: 0 15px;
  }

  .am-tech-inner {
    gap: 20px;
  }

  .am-tech-content {
    gap: 70px;
  }

  .am-feature-list {
    gap: 10px;
  }

  .am-rooftop .am-feature-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 34px;
  }

  .am-rooftop .am-feature-list {
    gap: 0px;
  }

  .am-rooftop .am-feature-item .list-text {
    font-size: 14px;
    line-height: 1;
  }

  .am-rooftop-text > ul:nth-child(2) > li:nth-child(1) > span:nth-child(2) {
    line-height: 1.1;
  }

  .am-rooftop-text > ul:nth-child(2) > li:nth-child(2) > span:nth-child(2) {
    line-height: 1.2;
  }

  .am-rooftop-text > ul:nth-child(2) > li:nth-child(3) {
    line-height: 1.5;
  }

  .am-rooftop-text > ul:nth-child(2) > li:nth-child(3) > span:nth-child(2) {
    line-height: 1.1;
  }

  .am-tech-list {
    gap: 0px;
  }

  .am-tech-list .am-feature-item {
    height: 48px;
  }

  .am-tech-list > li:nth-child(3),
  .am-tech-list > li:nth-child(4),
  .am-tech-list > li:nth-child(5) {
    height: 34px;
  }

  .am-tech-list > li {
    display: flex;
    flex-direction: column;
    gap: 11px;
        line-height: 12px;
    font-size: 14px;
  }





  .am-item:first-child .am-item-desc {
    letter-spacing: -0.027em;
    line-height: 17px;
  }

  .am-gallery-nav {
    gap: 12px;
  }

}

/* ============================================================
   TABLET  (768px – 1199px)
   ============================================================ */
@media (min-width: 768px) {

  .amenities-page .page-inner {
    max-width: var(--am-frame-tablet);
    padding: 0 var(--am-pad-tablet);
  }

  .heading-xl {
    font-size: 74px;
  }

  .body-text {
    font-size: 16px;
  }



  .am-show-mobile,
  .am-show-desktop {
    display: none;
  }

  .am-show-tablet {
    display: block;
  }

  /* hero */
  .am-hero { height: 768px; }
  .am-hero-title { font-size: 70px; max-width: 846px; }
  .am-hero-content { top:127px; padding-bottom: 50px; gap: 25px; }
  .am-hero-content .btn {
    min-width: 245px;
    height: 46px;
    padding: 0 30px;
  }

  /* curated */
  .am-curated { padding: 0; }
  .amenities-page .page-inner.am-curated-inner {
    padding-right: var(--am-pad-tablet);
    padding-left: max(
      var(--am-pad-tablet),
      calc(100% - var(--am-tablet-rail) - var(--am-pad-tablet))
    );
    margin-left: auto;
    gap: 80px;
  }
  .am-curated-text {
    gap: 40px;
    width: min(100%, 540px);
  }
  .am-curated-title { font-size: 25px; }
  .am-curated-image { height: 560px; }
  .am-curated-desc {
    max-width: 471px;
    width: 100%;
    font-size: 14px;
  }

  /* ground */
  .am-ground { 
    margin: 0 0 140px; }
  .am-section-title {
    margin-bottom: 40px;
    padding: 0 var(--am-pad-tablet);
    font-size: 70px;
  }
  .am-item { gap: 40px; margin-bottom: 40px; }
  .am-item { width: 100%; }
  .am-item-header { flex-direction: column; gap: 15px; width: 100%; }
  .am-item-meta {
    display: grid;
    grid-template-columns: minmax(0, 275px) minmax(0, 1fr);
    gap: 15px;
    align-items: flex-start;
    width: min(100%, var(--am-tablet-copy));
    max-width: 100%;
  }
  .am-item-name {
    font-size: 25px;
    width: auto;
    min-width: 0;
  }
  .am-item-desc {
    width: auto;
    max-width: none;
    min-width: 0;
    font-size: 14px;
  }
  .am-item-img-wrap { height: 565px; }
  .am-item-gallery { position: relative; flex-direction: column; }

  /* rooftop */
  .am-rooftop { margin: 0 0 140px; }
  .am-rooftop-title { font-size: 70px; }
  .am-rooftop-text { gap: 60px; }
  .am-rooftop-img-wrap { min-height: 565px; }

  /* tech */
  .am-tech { margin: 60px 0 140px; }
  .am-tech-title { font-size: 70px; margin-bottom: 60px; }
  .am-tech-image { height: 850px; }
  .am-tech-lead { font-size: 25px; }
  .am-tech-content {
    width: min(100%, var(--am-tablet-rail));
    margin-left: auto;
    padding-left: 0;
    gap: 80px;
  }

  /* nav buttons */
  .am-nav-btn { width: 40px; height: 40px; background: var(--eggshell); }
  .am-gallery-nav {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding-top: 0;
    gap: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .am-hero-content {
    padding: 0px 0 40px 25px;
    gap: 55px;
  }

  .am-hero {
    height: auto;
    min-height: 768px;
    margin-bottom: 99px;
  }

  .amenities-page .page-inner.am-curated-inner,
  .am-curated-inner {
    gap: 81px;
  }

  .am-curated {
    margin: 0 0 142px;
    margin-left: 315px;
  }

  .list-text {
    font-size: 14px;
    margin-bottom: 0;
  }

  .am-ground {
    padding: 0px 25px;
    margin: 0px 0 125px;
  }

  .heading-xl.am-section-title {
    max-width: 58%;
  }

  .am-section-title {
    margin-bottom: 56px;
  }

  .am-rooftop {
    padding: 0 25px;
  }

  .am-rooftop-inner {
    gap: 61px;
  }

  .am-rooftop-text {
    gap: 47px;
  }

  .am-rooftop-title {
    letter-spacing: 0em;
    line-height: 1;
  }

  .am-item {
    gap: 26px;
  }

  .am-gallery-nav {
    bottom: 21px;
    right: 19px;
    gap: 14px;
  }

  .list-appartments {
    gap: 0px;
  }

  .am-item .am-item-desc {
    letter-spacing: 0;
    max-width: 50%;
  }

  .am-rooftop .am-feature-list {
    min-height: 92px;
    gap: 0;
  }
  .am-feature-list > li {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0px;
  }
  .am-rooftop .am-feature-item:nth-child(1),
  .am-rooftop .am-feature-item:nth-child(2) {
    height: 34px;
  }

  .am-rooftop .am-feature-item:nth-child(3) {
    height: 24px;
  }

  .am-rooftop-text > ul:nth-child(2) > li:nth-child(1) > span:nth-child(2),
  .am-rooftop-text > ul:nth-child(2) > li:nth-child(2) > span:nth-child(2) {
    line-height: 1;
  }

  .am-tech {
    padding: 0 25px;
  }

  .am-tech-title {
    margin-bottom: 48px;
  }

  .am-tech-lead {
    max-width: 80%;
  }

  .amenities-page .footer-top.footer-primary {
    flex-direction: row;
    gap: 200px;
  }

  .amenities-page .footer {
    padding: 0 25px 36px 25px;
    margin-top: 74px;
  }

  .amenities-page .footer-navs {
    column-gap: 128px;
  }

  .am-tech-content {
    margin-left: 291px;
  }

  .am-tech-list {
    gap: -9px;
  }

  .am-tech-list > .am-feature-item {
    min-height: 34px;
  }

  .am-tech-list > li:nth-child(2) > span:nth-child(2) {
    font-size: 14px;
  }

  .am-tech-list > li{
    font-size: 23px;
    display: flex;
    flex-direction: column;
  }

  .am-tech-list > li:not(:last-child) > span:nth-child(2) {
    line-height: 1;
  }

  .am-tech-list > li:last-child {
    height: 24px;
    min-height: 24px;
  }
}

/* ============================================================
   DESKTOP  (≥ 1200px)
   ============================================================ */
@media (min-width: 1200px) {
.list-appartments{
  gap: 60px;
}
  .amenities-page .page-inner {
    max-width: var(--am-frame-desktop);
    padding: 0 var(--am-pad-desktop);
  }

  .heading-xl {
    font-size: 100px;
    line-height: 0.95;
  }

  .body-text {
    font-size: 16px;
  }



  .am-show-mobile,
  .am-show-tablet {
    display: none;
  }

  .am-show-desktop {
    display: block;
  }

  /* hero */
  .am-hero { height: 900px; margin-bottom: 160px; }
  .am-hero-gradient { top: 0; height: 329px; }
  .am-hero-content {
    top: 133px;
    gap: 71px;
    padding-left: 40px;
  }
  .am-hero-title { font-size: 100px; max-width: 1032px; }
  .am-hero-content .btn {
    min-width: 245px;
    height: 46px;
    padding: 0 30px;
  }

  /* curated
  .amenities-page .page-inner.am-curated-inner {
    gap: 90px;
    margin-left: auto;
    padding-right: var(--am-pad-desktop);
    padding-left: max(
      var(--am-pad-desktop),
      calc(100% - var(--am-desktop-rail) - var(--am-pad-desktop))
    );
  } */
  .am-curated {
    --am-curated-left: clamp(360px, 34.5vw, 552px);
    --am-curated-right-gap: 14px;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 221px var(--am-curated-left);
    width: min(1034px, calc(100vw - var(--am-curated-left) - var(--am-curated-right-gap)));
    max-width: 1034px;
    min-width: 0;
  }

  .am-curated-inner {
    gap: 90px;
    width: 100%;
  }

  .am-curated-text {
    flex-direction: column;
    gap: 50px;
    width: min(100%, 760px);
  }
  .am-curated-title { font-size: 40px; max-width: 760px; }
  .am-curated-desc { max-width: 512px; flex-shrink: 0; }
  .am-curated-image { height: 700px; }

  /* ground */
  .am-ground { 
    margin: 0 0 197px;
    padding: 0 40px; }
  .am-section-title { 
    margin-bottom: 80px;
    padding: 0 var(--am-pad-desktop); 
    width: 48%;
  }
  .am-item { 
    width: 100%;
    gap: 43px; 
    margin-bottom: 0; 
  }
  .am-item-header {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .list-appartments .am-item-meta {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 387px);
    column-gap: 30px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }
  .list-appartments .am-item-name {
    font-size: 40px;
    width: auto;
    min-width: 0;
    grid-column: 1;
  }
  .list-appartments .am-item-desc {
    width: auto;
    max-width: none;
    min-width: 0;
    grid-column: 2;
  }
  .list-appartments .body-text.am-item-desc {
    width: min(100%, 387px);
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .am-item-img-wrap {
    height: 800px;
    width: 100%;
    margin-left: 0;
  }

  /* nav buttons */
  .am-nav-btn { width: 50px; height: 50px; background: var(--eggshell); }
  .am-nav-icon { width: 14px; height: 14px; }
  .am-gallery-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding-top: 0;
    gap: 12px;
  }

  /* rooftop */
  .am-rooftop { margin: 80px 0 200px; padding: 0 40px; }
  .am-rooftop-inner { gap: 80px; }
  .am-rooftop-title {
    font-size: 90px;
    line-height: 100%;
    letter-spacing: 0em;
  }
  .am-rooftop-text {
    max-width: 760px;
    gap: 28px;
  }
  .am-rooftop .am-feature-list {
    gap: 10px;
  }
  .am-rooftop-text > ul > li > span {
    font-size: 14px;
    line-height: 1;
  }
  .am-rooftop-img-wrap {
    height: 800px;
    width: 100%;
    margin-left: 0;
  }

  /* tech */
  .am-tech {
    margin: 60px 0 200px;
    padding: 0 40px;
  }
  .am-tech-title { font-size: 90px; margin-bottom: 64px; }
  .am-tech-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }
  .am-tech-image {
    flex: 1 1 47%;
    max-width: 759px;
    min-width: 0;
    height: 800px;
  }
  .am-tech-content {
    flex: 1 1 0;
    justify-content: space-between;
    min-height: 800px;
    padding-left: 0;
    min-width: 0;
    gap: 65px;
  }
  .am-feature-list.am-tech-list {
    gap: 9px;
    align-items: flex-start;
  }
  .am-feature-list.am-tech-list > .am-feature-item {
    gap: 10px;
  }
  .am-feature-list.am-tech-list > .am-feature-item:last-child {
    gap: 10px;
  }
  .am-tech-list > li.am-feature-item:nth-child(4) > span:nth-child(2) {
    letter-spacing: 0em;
    text-align: left;
  }
  .list-text {
    font-size: 14px;
    line-height: 100%;
  }
  .am-tech-lead { font-size: 40px; line-height: 1; }
}
