/* =========================================================
   INNER PAGES (loaded after style.css)
   ========================================================= */
.section-ivory { background: var(--ivory); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end; color: #fff; background: var(--black) var(--bg) center / cover no-repeat; isolation: isolate; padding: 130px 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 12, .7) 0%, rgba(11, 11, 12, .35) 45%, rgba(11, 11, 12, .92) 100%); }
.page-title { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 300; line-height: .95; margin: 0; max-width: 1100px; }
.page-title em { color: var(--gold); }
.page-lead { max-width: 620px; color: rgba(255, 255, 255, .78); font-weight: 300; font-size: 1.08rem; margin: 1.4rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .7rem; padding: 0; margin: 0 0 1.8rem; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.crumbs li { color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: .7rem; max-width: 100%; }
.crumbs li + li::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; }
.crumbs li[aria-current] { color: var(--gold-2); min-width: 0; max-width: 60vw; }
.crumbs li[aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Project hero ---------- */
.d-hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--black); padding-top: 110px; }
.d-hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 14s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.d-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, .65) 0%, rgba(11, 11, 12, .1) 30%, rgba(11, 11, 12, .35) 60%, rgba(11, 11, 12, .95) 100%); }
.d-hero-inner { position: relative; padding-bottom: 2.5rem; }
.d-title { font-size: clamp(2.4rem, 6vw, 5.8rem); font-weight: 300; line-height: .98; max-width: 1150px; margin: 0 0 1rem; }
.d-loc { font-size: 1rem; color: rgba(255, 255, 255, .8); letter-spacing: .04em; margin-bottom: 2rem; }
.d-loc i { color: var(--gold); }
.d-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.d-facts { position: relative; border-top: 1px solid rgba(255, 255, 255, .15); background: rgba(11, 11, 12, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.d-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.d-facts-grid div { padding: 1.5rem 1.5rem 1.5rem 0; }
.d-facts-grid div + div { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 1.8rem; }
.d-facts-grid dt { font-size: .62rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.d-facts-grid dd { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.6rem); line-height: 1.2; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .55rem; vertical-align: middle; }
.dot-ready { background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62, 207, 142, .2); }
.dot-uc { background: var(--gold); box-shadow: 0 0 0 4px rgba(197, 165, 114, .2); }
@media (max-width: 767.98px) {
  .d-hero { min-height: 0; padding-top: 120px; }
  .d-hero-inner { padding-bottom: 2rem; }
  .d-cta .btn { flex: 1; padding-inline: .8rem; }
  .d-facts-grid { grid-template-columns: 1fr 1fr; }
  .d-facts-grid div { padding: 1rem 0; }
  .d-facts-grid div + div { padding-left: 1rem; }
  .d-facts-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .d-facts-grid div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
}

/* ---------- Sub-nav ---------- */
.d-subnav { position: sticky; top: 74px; z-index: 1020; background: #fff; border-bottom: 1px solid var(--stone); }
.d-subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.d-subnav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.d-subnav ul::-webkit-scrollbar { display: none; }
.d-subnav a { display: block; padding: 1.2rem 1rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; position: relative; }
.d-subnav a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.d-subnav a:hover, .d-subnav a.is-active { color: var(--black); }
.d-subnav a.is-active::after { transform: scaleX(1); }
@media (max-width: 767.98px) { .d-subnav a { padding: 1rem .7rem; font-size: .6rem; letter-spacing: .14em; } .d-subnav a::after { left: .7rem; right: .7rem; } }
.page-detail section[id] { scroll-margin-top: 140px; }

/* ---------- Overview ---------- */
.d-prose { color: #4a463f; font-size: 1.04rem; margin-top: 1.8rem; }
.d-prose p { margin-bottom: 1.2rem; }
.d-feature { margin: 2.5rem 0 0; aspect-ratio: 16 / 9; overflow: hidden; }
.d-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.d-side { position: sticky; top: 150px; background: var(--black); color: #fff; }
.d-side-price { padding: 2rem 2rem 1.6rem; border-bottom: 1px solid var(--line-dark); }
.d-side-price span { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.d-side-price strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1.1; margin: .3rem 0; }
.d-side-price small { color: rgba(255, 255, 255, .6); font-size: .84rem; }
.d-side-form { padding: 1.6rem 2rem 1.4rem; }
.d-side-title { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .4rem; }
.d-side-call { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.1rem; border-top: 1px solid var(--line-dark); color: var(--gold-2); font-size: .8rem; letter-spacing: .1em; }
.d-side-call:hover { background: var(--char-2); color: #fff; }
@media (max-width: 991.98px) { .d-side { position: static; } }

/* ---------- Content lists ---------- */
.info-list { list-style: none; padding: 0; margin: 0 0 1.4rem; border-top: 1px solid var(--line); }
.info-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.5rem; }
.info-list li strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--black); line-height: 1.3; }
.info-list li:not(:has(strong)) { grid-template-columns: 1fr; padding-left: 1.6rem; position: relative; }
.info-list li:not(:has(strong))::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 10px; height: 1px; background: var(--gold); }
@media (max-width: 575.98px) { .info-list li { grid-template-columns: 1fr; gap: .3rem; } }
.lux-table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
.lux-table th, .lux-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.lux-table th { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.d-extra-title { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; }

/* ---------- Highlights ---------- */
.d-highlights { background: var(--black); color: #fff; }
.hl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.hl-grid li { padding: 2.2rem 2rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .4s; }
.hl-grid li:hover { background: var(--char-2); }
.hl-num { font-family: var(--serif); font-size: 1rem; color: var(--gold); }
.hl-grid h3 { font-size: 1.55rem; font-weight: 400; margin: .8rem 0 .7rem; }
.hl-grid p { color: rgba(255, 255, 255, .65); font-size: .93rem; margin: 0; }

/* ---------- Amenities ---------- */
.am-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stone); border: 1px solid var(--stone); }
.am-card { background: #fff; padding: 2rem 1.8rem; transition: background .4s; }
.am-card:hover { background: var(--ivory); }
.am-card i { font-size: 1.7rem; color: var(--gold-deep); display: block; margin-bottom: 1.1rem; }
.am-card h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: .5rem; }
.am-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Location ---------- */
.d-location { background: var(--ivory); }
.loc-adv { list-style: none; padding: 0; margin: 2.4rem 0 0; }
.loc-adv li { display: flex; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.loc-adv li:first-child { border-top: 1px solid var(--line); }
.loc-adv i { flex: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); font-size: 1.1rem; }
.loc-adv strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--black); line-height: 1.3; }
.loc-adv span { font-size: .93rem; color: var(--muted); }
.d-map { position: sticky; top: 150px; display: block; background: #fff; padding: 1rem; box-shadow: 0 30px 70px -40px rgba(11, 11, 12, .45); }
.d-map img { width: 100%; }
.zoom-tag { position: absolute; right: 1.6rem; bottom: 1.6rem; background: var(--black); color: #fff; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; padding: .55rem .9rem; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.plan-card { display: block; border: 1px solid var(--stone); background: #fff; transition: border-color .3s, box-shadow .3s; }
.plan-card:hover { border-color: var(--gold); box-shadow: 0 24px 50px -30px rgba(11, 11, 12, .4); }
.plan-img { display: block; aspect-ratio: 4 / 3; padding: 1.2rem; background: #fbfaf7; }
.plan-img img { width: 100%; height: 100%; object-fit: contain; }
.plan-label { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-top: 1px solid var(--stone); font-family: var(--serif); font-size: 1.25rem; color: var(--black); }
.plan-label i { font-size: .9rem; color: var(--gold-deep); }

/* ---------- Gallery ---------- */
.d-gallery { background: var(--char); color: #fff; }
.gal-count { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: .8rem; }
.gal-item { position: relative; overflow: hidden; display: block; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .4s; }
.gal-item:hover img { transform: scale(1.07); opacity: .85; }
.gal-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gal-item:nth-child(6n + 4) { grid-column: span 2; }
@media (max-width: 991.98px) { .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .gal-item:nth-child(6n + 4) { grid-column: span 1; } }
@media (max-width: 575.98px) { .gal-grid { grid-auto-rows: 130px; gap: .5rem; } }

/* ---------- Detail CTA band ---------- */
.d-cta-band { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; color: #fff; background: var(--black) var(--bg) center / cover fixed; isolation: isolate; }
.d-cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 12, .93), rgba(11, 11, 12, .6)); }
@media (hover: none), (max-width: 991.98px) { .d-cta-band { background-attachment: scroll; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 8, 9, .96); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(11, 11, 12, .5); color: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: all .3s; }
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 1.4rem; text-align: center; color: rgba(255, 255, 255, .75); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 575.98px) { .lb-prev, .lb-next { top: auto; bottom: 3.5rem; transform: none; } }

/* ---------- Listing grid ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.p-grid .p-card.is-hidden { display: none; }
.list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--stone); }
.list-count { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.list-count b { color: var(--black); font-weight: 500; }
.list-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.list-filters select { border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a4854f' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right .9rem center; padding: .7rem 2.2rem .7rem 1rem; font-size: .8rem; letter-spacing: .04em; color: var(--black); appearance: none; border-radius: 0; outline: none; max-width: 100%; }
.list-filters select:focus { border-color: var(--gold); }
.empty-state { text-align: center; max-width: 640px; margin: 0 auto; padding: 2rem 0; }
.empty-icon { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 2rem; color: var(--gold-deep); margin-bottom: 1.6rem; }
.empty-state h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 1rem; }
.empty-state p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Generic cards ---------- */
.lux-card { background: #fff; border: 1px solid var(--stone); padding: 2.2rem; height: 100%; transition: border-color .3s, box-shadow .3s; }
.lux-card:hover { border-color: var(--gold); box-shadow: 0 24px 50px -32px rgba(11, 11, 12, .35); }
.lux-card .lux-ic { font-size: 1.7rem; color: var(--gold-deep); display: block; margin-bottom: 1.2rem; }
.lux-card h3 { font-size: 1.7rem; font-weight: 400; margin-bottom: .8rem; }
.lux-card p { color: var(--muted); margin: 0; }

/* ---------- Developers directory ---------- */
.dev-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--stone); border: 1px solid var(--stone); }
.dev-dir a { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 2.2rem 1.5rem 1.5rem; text-align: center; transition: background .3s; }
.dev-dir a:hover { background: var(--ivory); }
.dev-dir img { height: 64px; width: 100%; object-fit: contain; transition: transform .4s; }
.dev-dir a:hover img { transform: scale(1.05); }
.dev-dir strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--black); }
.dev-dir small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.dev-hero-logo { display: inline-grid; place-items: center; background: #fff; padding: .8rem 1.4rem; margin-bottom: 1.6rem; height: 84px; }
.dev-hero-logo img { max-height: 56px; width: auto; }

/* ---------- About ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 767.98px) { .mv-grid { grid-template-columns: 1fr; } }
.about-figure { position: relative; margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-figure figcaption { position: absolute; left: 0; bottom: 0; background: var(--black); color: #fff; padding: 1.6rem 2rem; }
.about-figure figcaption strong { display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 300; color: var(--gold); line-height: 1; }
.about-figure figcaption span { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 2.4rem 0 0; }
.contact-list li { display: flex; gap: 1.3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list i { flex: none; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); font-size: 1.15rem; }
.contact-list span { display: block; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-list a, .contact-list p { font-family: var(--serif); font-size: 1.35rem; color: var(--black); margin: 0; line-height: 1.35; }
.contact-list a:hover { color: var(--gold-deep); }
.contact-form-box { background: var(--black); color: #fff; padding: clamp(2rem, 4vw, 3.2rem); }
.contact-form-box h2 { font-size: 2.4rem; font-weight: 400; margin-bottom: .5rem; }
.contact-form-box > p { color: rgba(255, 255, 255, .6); margin-bottom: 1.2rem; }
.map-wrap { filter: grayscale(1) contrast(1.05); transition: filter .6s; line-height: 0; }
.map-wrap:hover { filter: none; }
.map-wrap iframe { width: 100%; height: 460px; border: 0; }

/* ---------- Career ---------- */
.job { border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job-head { width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding: 2rem 0; background: none; border: 0; text-align: left; color: var(--black); }
.job-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; margin: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.job-tags span { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line); padding: .45rem .8rem; color: var(--muted); }
.job-head > i { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.job-head[aria-expanded="true"] > i { transform: rotate(45deg); background: var(--black); color: #fff; border-color: var(--black); }
.job-body { padding: 0 0 2.4rem; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--stone); border: 1px solid var(--stone); margin: 1.4rem 0 2rem; }
.job-facts div { background: #fff; padding: 1.1rem 1.3rem; }
.job-facts dt { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.job-facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.15rem; color: var(--black); }
@media (max-width: 767.98px) { .job-head { grid-template-columns: 1fr auto; gap: 1rem; } .job-tags { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Blog article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article-cover { margin: 0 0 3rem; aspect-ratio: 16 / 9; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; margin: 2.6rem 0 1rem; }
.article p { font-size: 1.08rem; color: #3f3b35; line-height: 1.9; }
.article-share { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.article-share a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--black); }
.article-share a:hover { background: var(--black); color: #fff; }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: flex; align-items: center; background: var(--black); color: #fff; padding: 140px 0 80px; text-align: center; }
.nf strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(7rem, 22vw, 16rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); }

@media (max-width: 767.98px) {
  .d-hero-shade, .page-hero::before { background: linear-gradient(180deg, rgba(11, 11, 12, .72) 0%, rgba(11, 11, 12, .55) 40%, rgba(11, 11, 12, .92) 100%); }
  .page-hero { min-height: 440px; }
}

/* fixed column counts so 4 / 8 items always fill complete rows */
@media (max-width: 1199.98px) { .hl-grid, .am-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .hl-grid, .am-grid { grid-template-columns: 1fr; } }

/* bordered grids: no filled background, so an incomplete last row stays clean */
.dev-dir, .job-facts { gap: 0; background: none; border: 0; border-top: 1px solid var(--stone); border-left: 1px solid var(--stone); }
.dev-dir > a, .job-facts > div { border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }

/* ---------- Thank-you page ---------- */
.thanks-hero { background: var(--black) radial-gradient(90% 70% at 50% 0%, rgba(197, 165, 114, .16), transparent 70%); color: #fff; padding: 150px 0 clamp(4rem, 8vw, 6rem); text-align: center; }
.thanks-card { max-width: 820px; margin: 0 auto; }
.thanks-check { width: 92px; height: 92px; margin: 0 auto 1.6rem; display: block; }
.thanks-check circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 230; stroke-dashoffset: 230; animation: drawC 1s var(--ease-out) .2s forwards; }
.thanks-check path { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawC .6s var(--ease-out) 1s forwards; }
@keyframes drawC { to { stroke-dashoffset: 0; } }
.thanks-hero .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.thanks-hero .page-title { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.4rem; }
.btn-wa { background: #25d366; border: 1px solid #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.thanks-steps { list-style: none; padding: 0; margin: clamp(3.5rem, 7vw, 5rem) auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); text-align: left; }
.thanks-steps li { padding: 2rem 1.8rem; border-right: 1px solid var(--line-dark); }
.thanks-steps li:last-child { border-right: 0; }
.thanks-steps span { font-family: var(--serif); color: var(--gold); }
.thanks-steps h2 { font-size: 1.6rem; font-weight: 400; margin: .6rem 0 .5rem; }
.thanks-steps p { color: rgba(255, 255, 255, .6); font-size: .93rem; margin: 0; }
@media (max-width: 767.98px) { .thanks-steps { grid-template-columns: 1fr; } .thanks-steps li { border-right: 0; border-bottom: 1px solid var(--line-dark); } }

/* Rich text from the admin editor */
.d-prose a { color: var(--gold-deep, #a4854f); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.d-prose a:hover { color: #0b0b0c; }
.d-prose h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: #0b0b0c; margin: 1.6rem 0 .8rem; }
.d-prose h4 { font-size: 1.1rem; font-weight: 600; color: #0b0b0c; margin: 1.4rem 0 .6rem; }
.d-prose > ul:not([class]), .d-prose > ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.d-prose > ul:not([class]) li, .d-prose > ol li { margin-bottom: .45rem; }
.d-prose > ul:not([class]) li::marker, .d-prose > ol li::marker { color: #c5a572; }
.d-prose blockquote { border-left: 3px solid #c5a572; padding: .3rem 0 .3rem 1.2rem; margin: 0 0 1.2rem; font-style: italic; color: #2a2a30; }
.d-prose strong, .d-prose b { color: #1d1d21; font-weight: 600; }

/* Payment plan */
.d-payment .pay-note { color: var(--muted); margin: 1rem 0 1.6rem; max-width: 22rem; }
.pay-prose { margin-top: 0; }
.pay-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 1.4rem; counter-reset: pay; box-shadow: 0 20px 40px -30px rgba(11, 11, 12, .35); }
.pay-table thead th { background: var(--black); color: var(--gold-2); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 1.05rem 1.3rem; text-align: left; white-space: nowrap; }
.pay-table td { padding: 1rem 1.3rem; border-top: 1px solid var(--line); color: #2a2a30; vertical-align: middle; }
.pay-table tbody tr { transition: background .2s; }
.pay-table tbody tr:nth-child(even) { background: #fcfaf6; }
.pay-table tbody tr:hover { background: #f8f1e4; }
.pay-table td:first-child { counter-increment: pay; font-weight: 500; color: var(--black); }
.pay-table td:first-child::before { content: counter(pay, decimal-leading-zero); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .85rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); font-size: .72rem; font-weight: 600; vertical-align: middle; }
.pay-table td:not(:first-child) { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--gold-deep); white-space: nowrap; }
.pay-table thead th:not(:first-child), .pay-table td:not(:first-child) { text-align: right; }
@media (max-width: 575.98px) {
  .pay-table thead th, .pay-table td { padding: .85rem .9rem; }
  .pay-table td:first-child::before { width: 1.6rem; height: 1.6rem; margin-right: .55rem; font-size: .62rem; }
  .pay-table td:not(:first-child) { font-size: 1.05rem; white-space: normal; }
}
