/* ===========================================================================
   CIVITECH STRINGS — page extras (builds on jkg / anandita / ajnara CSS)
   Vibrating-string hero · smart-home tiles · floor picker · payment steps
   =========================================================================== */

/* ---------- Hero ---------- */
.cs-hero .jk-slide img { object-position: 62% 40%; }
.cs-hero .jk-hero-shade { background:
    linear-gradient(90deg, rgba(5, 7, 5, .94) 0%, rgba(5, 7, 5, .8) 36%, rgba(5, 7, 5, .25) 66%, rgba(5, 7, 5, .1) 100%),
    linear-gradient(0deg, rgba(5, 7, 5, .95) 0%, rgba(5, 7, 5, 0) 36%),
    linear-gradient(180deg, rgba(5, 7, 5, .5) 0%, rgba(5, 7, 5, 0) 18%); }
.cs-hero .jk-dots { display: none; }

/* Six golden "strings" that hum across the hero */
.cs-strings { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: flex; justify-content: flex-end; gap: clamp(26px, 4vw, 64px); padding-right: 6vw; }
.cs-strings i {
    position: relative; width: 1px; height: 100%; opacity: .5;
    background: linear-gradient(180deg, transparent 0%, rgba(241, 198, 74, .55) 20%, rgba(255, 231, 160, .9) 50%, rgba(241, 198, 74, .55) 80%, transparent 100%);
    transform-origin: 50% 50%; animation: csHum 3.4s ease-in-out infinite;
}
.cs-strings i:nth-child(2) { animation-delay: -.6s; opacity: .35; }
.cs-strings i:nth-child(3) { animation-delay: -1.2s; }
.cs-strings i:nth-child(4) { animation-delay: -1.8s; opacity: .3; }
.cs-strings i:nth-child(5) { animation-delay: -2.4s; }
.cs-strings i:nth-child(6) { animation-delay: -3s; opacity: .35; }
.cs-strings i::after { content: ''; position: absolute; left: -3px; top: 0; width: 7px; height: 120px; border-radius: 4px; background: radial-gradient(closest-side, rgba(255, 231, 160, .9), transparent); animation: csPluck 5.5s linear infinite; }
.cs-strings i:nth-child(odd)::after { animation-duration: 7s; animation-delay: -2s; }
@keyframes csHum { 0%, 100% { transform: scaleX(1) translateX(0); } 25% { transform: scaleX(2.2) translateX(1px); } 75% { transform: scaleX(2.2) translateX(-1px); } }
@keyframes csPluck { from { top: -120px; } to { top: 100%; } }

/* ---------- Smart homes ---------- */
.cs-smart-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.cs-smart-media { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .25); aspect-ratio: 5 / 3.4; background: #0C100D; }
.cs-smart-media img { width: 100%; height: 100%; object-fit: cover; }
.cs-smart-pulse { position: absolute; right: 22px; top: 22px; width: 54px; height: 54px; border-radius: 50%; background: rgba(10, 13, 11, .7); border: 1px solid rgba(241, 198, 74, .6); }
.cs-smart-pulse::before, .cs-smart-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(241, 198, 74, .6); animation: csRing 2.6s ease-out infinite; }
.cs-smart-pulse::after { animation-delay: 1.3s; }
@keyframes csRing { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.cs-smart-copy h2 { margin-bottom: 14px; }
.cs-smart-copy > p { color: var(--text-dim); margin-bottom: 22px; }
.cs-smart-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cs-smart-list li {
    display: grid; gap: 12px; justify-items: start; padding: 18px 16px; border-radius: 18px;
    background: rgba(255, 255, 255, .025); border: 1px solid rgba(212, 175, 55, .2);
    transition: transform .5s var(--ease-lux), border-color .4s, background .4s;
}
.cs-smart-list li:hover { transform: translateY(-4px); border-color: rgba(241, 198, 74, .55); background: rgba(212, 175, 55, .07); }
.cs-sic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .35); }
.cs-sic svg { width: 21px; height: 21px; fill: none; stroke: var(--gold-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-smart-list b { font-size: 14px; font-weight: 600; color: #fff; }

/* Plans on white brochure paper */
.cs-plan-media { background: #fff !important; }
.cs-plan-media img { object-fit: contain !important; padding: 8px 8px 58px !important; }
.cs-plan-img { background: #fff !important; }

/* Tower picker: 27 floors */
.cs-tower .aj-floor { height: 21px; }
.cs-tower .aj-tower-cap span { letter-spacing: .2em; }

/* ---------- Payment steps ---------- */
.cs-pay { margin-top: 24px; padding: 26px 28px; border-radius: 24px; background: linear-gradient(160deg, rgba(20, 24, 20, .9), rgba(10, 13, 11, .95)); border: 1px solid rgba(212, 175, 55, .25); }
.cs-pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.cs-pay-head h3 { font: 400 22px 'Fraunces', Georgia, serif; color: #fff; }
.cs-pay-head h3 em { font-style: normal; color: var(--text-dim); font-size: 15px; }
.cs-pay-head span { font-size: 13px; color: var(--text-dim); }
.cs-pay-head b { color: var(--gold-bright); font-weight: 600; }
.cs-pay-steps { list-style: none; display: grid; grid-template-columns: 1fr 2fr 7fr; gap: 10px; }
.cs-pay-steps li { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; border: 1px solid rgba(212, 175, 55, .28); background: rgba(212, 175, 55, .05); min-width: 0; }
.cs-pay-steps li::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-lux); }
.cs-pay.in .cs-pay-steps li::before, .cs-pay.is-in .cs-pay-steps li::before { transform: scaleX(1); }
.cs-pay-steps strong { font: 400 clamp(26px, 3vw, 40px)/1 'Fraunces', Georgia, serif; color: var(--gold-bright); }
.cs-pay-steps span { font-size: 13px; color: #DDE2DC; }
.cs-pay-steps em { font-style: normal; font: 500 12.5px 'IBM Plex Mono', monospace; color: var(--text-dim); }

/* ---------- Amenities ---------- */
.cs-amen-photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.cs-amen-ph { position: relative; margin: 0; height: 240px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .2); background: #0C100D; }
.cs-amen-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-lux); }
.cs-amen-ph:hover img { transform: scale(1.06); }
.cs-amen-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 5, .85)); }
.cs-amen-ph figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 2; font: 400 19px 'Fraunces', Georgia, serif; color: #fff; }

/* ---------- Site map + price list ---------- */
.cs-site-grid { grid-template-columns: 1.4fr 1fr; }
.cs-site-grid .jk-site-img { height: 420px; background: #fff; }
.cs-site-grid .jk-site-img img { object-fit: contain; object-position: center; }

/* ---------- Location highlights ---------- */
.cs-near { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-near-card { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(212, 175, 55, .2); }
.cs-near-card .jk-ic { margin-bottom: 12px; }
.cs-near-card b { display: block; font: 400 19px 'Fraunces', Georgia, serif; color: #fff; margin-bottom: 4px; }
.cs-near-card small { font-size: 13px; line-height: 1.55; color: var(--text-dim); }

/* Brochure band */
.cs-cta { background:
    linear-gradient(100deg, rgba(8, 11, 9, .96) 0%, rgba(8, 11, 9, .82) 55%, rgba(8, 11, 9, .35) 100%),
    url('strings/tower-render.jpg') right center / cover !important; }

@media (max-width: 1100px) {
    .cs-smart-grid { grid-template-columns: 1fr; }
    .cs-smart-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .cs-pay-steps { grid-template-columns: 1fr; }
    .cs-amen-photos { grid-template-columns: 1fr 1fr; }
    .cs-amen-ph:first-child { grid-column: 1 / -1; }
    .cs-site-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cs-strings { gap: 22px; padding-right: 4vw; }
    .cs-smart-list { grid-template-columns: 1fr 1fr; }
    .cs-near { grid-template-columns: 1fr; }
    .cs-amen-ph { height: 190px; }
    .cs-site-grid .jk-site-img { height: 300px; }
    .cs-pay { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-strings i, .cs-strings i::after, .cs-smart-pulse::before, .cs-smart-pulse::after { animation: none; }
    .cs-pay-steps li::before { transition: none; transform: scaleX(1); }
}
