/* ============================================
   Commercial Space page (commercial-space.html)
   Compact banner, location (Google map + location map), the opportunity,
   ground floor units per tower (tabs), the business tiles and a closing card.
   Loaded after style.css and project.css. Only cs-* rules.
   ============================================ */

.cs-hero svg, .cs-sec svg, .cs-lb svg{fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
:root{--cs-ease: cubic-bezier(0.22, 1, 0.36, 1);}

/* ---------- Banner ---------- */
.cs-hero{position: relative; overflow: hidden; isolation: isolate; display: flex; min-height: 620px; background: rgb(18, 22, 26); color: #ffffff;}
.cs-hero-bg{position: absolute; inset: 0; z-index: -2;}
.cs-hero-bg img{width: 100%; height: 100%; object-fit: cover; object-position: 60% 12%; display: block; translate: 0 var(--hb, 0); transform: scale(1.08); animation: csKen 14s var(--cs-ease) forwards;}
@keyframes csKen{to{transform: scale(1);}}
.cs-hero-shade{position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 14, 16, 0.8) 0%, rgba(12, 14, 16, 0.45) 42%, rgba(12, 14, 16, 0.05) 75%), linear-gradient(180deg, rgba(12, 14, 16, 0.15) 0%, rgba(12, 14, 16, 0) 40%, rgba(12, 14, 16, 0.5) 100%);}
.cs-hero-inner{flex: 1; display: flex; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 56px);}
.cs-hero-copy{max-width: 640px; translate: 0 var(--hc, 0); opacity: var(--ho, 1); animation: sol-rise 900ms ease both;}
.cs-hero .pj-badge{margin-bottom: 22px;}
.cs-hero .pj-hero2-title{font-size: clamp(46px, 5.2vw, 84px);}
.cs-hero .pj-hero2-title em{display: block; margin-top: 0.1em; font-size: 0.55em; letter-spacing: -0.02em;}
.cs-hero .pj-hero2-lead{max-width: 480px;}

/* ---------- Section heads ---------- */
.cs-sec{scroll-margin-top: calc(var(--cs-nav-h, 76px) + 16px);}
.cs-head{display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 56px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 44px);}
.cs-head--center{justify-content: center; text-align: center;}
.cs-head--center .na-eyebrow{justify-content: center;}
.cs-title{font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; color: rgb(26, 20, 16);}
.cs-title em{display: block; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: rgb(240, 90, 40);}
.cs-intro{flex: 1 1 420px; max-width: 620px; display: grid; gap: 10px; padding-left: clamp(16px, 2vw, 24px); border-left: 2px solid rgb(240, 90, 40);}
.cs-intro p, .cs-lead{font-family: "Source Serif 4", Georgia, serif; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; color: rgb(74, 70, 64);}

/* ---------- Zoom button (location map, unit plans) ---------- */
.cs-zoom{position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(26, 20, 16, 0.78); color: #ffffff; cursor: zoom-in; transition: background 200ms ease, transform 300ms var(--cs-ease);}
.cs-zoom svg{width: 18px; height: 18px;}
.cs-zoom:hover{background: rgb(240, 90, 40); transform: scale(1.08);}

/* ---------- Convenient location: two maps ---------- */
.cs-maps{display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(14px, 1.8vw, 24px);}
.cs-gmap, .cs-lmap{position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: #ffffff; box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.06), 0 40px 80px -50px rgba(26, 20, 16, 0.5);}
.cs-gmap{min-height: 440px;}
.cs-gmap iframe{position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.9);}
.cs-lmap{display: flex; align-items: center; justify-content: center; padding: clamp(10px, 1.4vw, 18px);}
.cs-lmap img{display: block; width: 100%; height: auto; max-width: 546px; transition: transform 1200ms var(--cs-ease);}
.cs-lmap:hover img{transform: scale(1.03);}

/* ---------- Opportunity: photo with a scroll mask + text ---------- */
.cs-opp-grid{display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center;}
.cs-opp-media{position: relative; margin: 0; aspect-ratio: 675 / 470; overflow: hidden; border-radius: 30px; box-shadow: 0 40px 80px -50px rgba(26, 20, 16, 0.55);}
.cs-opp-media img{position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; display: block; translate: 0 var(--py, 0);}
.cs-opp-body{translate: 0 var(--pb, 0);}
.cs-opp-body .cs-title{margin-bottom: 20px;}
.cs-lead{font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; color: rgb(61, 49, 41);}

/* ---------- Ground floor units: tower tabs + plan ---------- */
.cs-tabs{position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 99px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(26, 20, 16, 0.08), 0 16px 34px -28px rgba(26, 20, 16, 0.5);}
.cs-tab-pill{position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 99px; background: rgb(26, 20, 16); transition: transform 480ms var(--cs-ease), width 480ms var(--cs-ease);}
.cs-tab{position: relative; z-index: 1; min-height: 46px; padding: 0 24px; border: 0; border-radius: 99px; background: none; font-family: Outfit, system-ui, sans-serif; font-size: 15px; font-weight: 600; color: rgb(61, 49, 41); cursor: pointer; white-space: nowrap; transition: color 300ms ease;}
.cs-tab[aria-selected="true"]{color: #ffffff;}
.cs-tab:focus-visible{outline: 3px solid rgba(240, 90, 40, 0.4); outline-offset: 2px;}
.cs-panel[hidden]{display: none;}
.cs-panel.is-in{animation: csRise 560ms var(--cs-ease) both;}
@keyframes csRise{from{opacity: 0; transform: translateY(16px);} to{opacity: 1; transform: none;}}
.cs-panel-t{margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(26, 20, 16);}
.cs-panel-t em{font-style: normal; color: rgb(240, 90, 40);}
.cs-plan{position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: rgb(236, 236, 236); box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.06), 0 40px 80px -50px rgba(26, 20, 16, 0.5);}
.cs-plan-scroll{overflow-x: auto; scrollbar-width: thin; padding: clamp(14px, 2.4vw, 36px);}
.cs-plan-scroll:focus-visible{outline: 3px solid rgba(240, 90, 40, 0.4); outline-offset: -3px;}
.cs-plan-scroll img{display: block; width: 100%; max-width: 1086px; height: auto; margin: 0 auto;}
.cs-swipe{display: none;}

/* ---------- A space suitable for: 12 tiles ---------- */
.cs-uses{display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none;}
.cs-use{display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 190px; padding: 26px 16px; border-radius: 24px; background: #ffffff; text-align: center; box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.06), 0 26px 50px -42px rgba(26, 20, 16, 0.5); transition: transform 400ms var(--cs-ease), box-shadow 400ms ease;}
.cs-use i{display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: #fff5f0; transition: background 400ms ease, transform 500ms var(--cs-ease);}
.cs-use i img{max-width: 46px; max-height: 40px; object-fit: contain; transition: filter 400ms ease;}
.cs-use h3{font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; color: rgb(26, 20, 16);}
.cs-use:hover{transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(240, 90, 40, 0.3), 0 34px 60px -38px rgba(240, 90, 40, 0.55);}
.cs-use:hover i{background: rgb(240, 90, 40); transform: scale(1.06) rotate(-4deg);}
.cs-use:hover i img{filter: brightness(0) invert(1);}

/* ---------- Want to know more? ---------- */
.cs-more{display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 54px); border-radius: 30px; background: radial-gradient(520px 260px at 100% 0%, rgba(240, 90, 40, 0.32), transparent 70%), linear-gradient(150deg, rgb(36, 30, 26), rgb(18, 15, 13)); color: #ffffff; box-shadow: 0 40px 80px -50px rgba(16, 12, 10, 0.8);}
.cs-more-t{font-size: clamp(28px, 3vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em;}
.cs-more-t em{font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; color: rgb(255, 150, 112);}
.cs-more-actions{display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px;}
.cs-call{display: inline-flex; align-items: center; gap: 14px; color: #ffffff; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: 0.01em;}
.cs-call small{display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255, 150, 112);}
.cs-call-ico{display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); transition: background 260ms ease, border-color 260ms ease;}
.cs-call-ico svg{width: 20px; height: 20px;}
.cs-call:hover{color: #ffffff;}
.cs-call:hover .cs-call-ico{background: rgb(240, 90, 40); border-color: rgb(240, 90, 40);}

/* ---------- Full-screen viewer ---------- */
.cs-lb{position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 70px 20px 20px; background: rgba(12, 14, 16, 0.94);}
.cs-lb[hidden]{display: none;}
.cs-lb-scroll{max-width: 100%; max-height: 100%; overflow: auto;}
.cs-lb img{display: block; max-width: 100%; max-height: calc(100vh - 90px); border-radius: 14px; background: #ffffff; animation: csRise 420ms var(--cs-ease) both;}
.cs-lb-x{position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #ffffff; cursor: pointer;}
.cs-lb-x svg{width: 20px; height: 20px;}
.cs-lb-x:hover{background: rgb(240, 90, 40);}

/* the page wrapper clips sideways overflow without becoming a scroll box */
@supports (overflow: clip){ .ic1{overflow-x: clip;} }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .cs-maps, .cs-opp-grid{grid-template-columns: minmax(0, 1fr);}
  .cs-gmap{min-height: 380px;}
  .cs-uses{grid-template-columns: repeat(3, minmax(0, 1fr));}
  .cs-opp-body{translate: none;}
}
@media (max-width: 720px){
  .cs-hero{min-height: 0;}
  .cs-hero-shade{background: linear-gradient(180deg, rgba(12, 14, 16, 0.2) 0%, rgba(12, 14, 16, 0.1) 25%, rgba(12, 14, 16, 0.6) 50%, rgba(12, 14, 16, 0.9) 100%);}
  .cs-hero-inner{align-items: flex-end; padding: 18px 16px;}
  .cs-hero .pj-hero2-crumb{gap: 6px; margin-bottom: 14px; font-size: 12px;}
  .cs-hero .pj-badge{margin-bottom: 12px; padding: 5px 11px; font-size: 10.5px; letter-spacing: 0.05em;}
  .cs-hero .pj-hero2-title{font-size: clamp(38px, 11vw, 48px); line-height: 0.95; letter-spacing: -0.04em;}
  .cs-hero .pj-hero2-lead{max-width: none; margin-top: 12px; font-size: 14.5px; line-height: 1.55;}
  .cs-hero .pj-hero2-cta{gap: 10px; margin-top: 18px;}
  .cs-hero .pj-hero2-btn{flex: 1 1 0; justify-content: center; min-height: 46px; padding: 0 12px; gap: 8px; font-size: 14px; white-space: nowrap;}
  .cs-hero .pj-hero2-btn svg{width: 16px; height: 16px;}
  .cs-fab-hide .pj-fab:not(.is-open) .pj-fab-btn{opacity: 0; transform: translateY(24px) scale(0.92); pointer-events: none;}
  .cs-head{gap: 18px;}
  .cs-intro{flex-basis: 100%;}
  .cs-gmap{min-height: 320px; border-radius: 22px;}
  .cs-lmap, .cs-opp-media, .cs-plan{border-radius: 22px;}
  .cs-tabs{display: flex; width: 100%;}
  .cs-tab{flex: 1 1 0; min-height: 44px; padding: 0 12px; font-size: 14px;}
  /* plans keep a readable size and pan sideways */
  .cs-plan-scroll{padding: 12px; scroll-snap-type: x proximity;}
  .cs-plan-scroll img{width: 860px; max-width: none;}
  .cs-swipe{display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px 12px; font-size: 12.5px; font-weight: 500; color: rgb(110, 98, 90);}
  .cs-swipe svg{width: 16px; height: 16px; color: rgb(240, 90, 40); animation: csNudge 1.8s ease-in-out infinite;}
  .cs-uses{grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;}
  .cs-use{min-height: 160px; gap: 12px; padding: 20px 10px; border-radius: 20px;}
  .cs-use i{width: 66px; height: 66px;}
  .cs-use i img{max-width: 38px; max-height: 32px;}
  .cs-use h3{font-size: 13.5px;}
  .cs-more{border-radius: 24px;}
  .cs-more-actions{width: 100%; flex-direction: column; align-items: stretch;}
  .cs-more-actions .pj-hero2-btn{justify-content: center; min-height: 48px;}
  /* full-screen viewer: the plan at a readable size, panned sideways */
  .cs-lb{align-items: center; padding: 70px 0 16px;}
  .cs-lb-scroll{width: 100%; padding: 0 12px;}
  .cs-lb img{max-width: none; width: auto; max-height: 70vh;}
}
@keyframes csNudge{0%, 100%{transform: translateX(-3px);} 50%{transform: translateX(3px);}}
@media (prefers-reduced-motion: reduce){
  .cs-hero-bg img, .cs-hero-copy, .cs-panel.is-in, .cs-lb img, .cs-swipe svg{animation: none;}
  .cs-hero-bg img{transform: none;}
  .cs-tab-pill, .cs-use, .cs-use i, .cs-lmap img{transition: none;}
}

/* the live banner text is two full lines: never cut it short */
#top.pj-hc.cs-hero .pj-hero2-lead{display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible;}
@media (max-width: 720px){ .cs-hero-bg img{object-position: 70% 0%;} }

/* ---------- Tiles rise one by one as they scroll in ----------
   commercial-space.js arms the grid (so the tiles stay visible without JS)
   and gives each tile entering the screen its own delay, in order. */
.cs-uses.is-armed .cs-use{opacity: 0; translate: 0 80px; scale: 0.96; transition: opacity 700ms ease var(--d, 0ms), translate 950ms var(--cs-ease) var(--d, 0ms), scale 950ms var(--cs-ease) var(--d, 0ms), transform 400ms var(--cs-ease), box-shadow 400ms ease;}
.cs-uses.is-armed .cs-use.is-up{opacity: 1; translate: none; scale: none;}
@media (max-width: 720px){ .cs-uses.is-armed .cs-use{translate: 0 50px;} }
