/* ==========================================================================
   Inner pages: projects list, project detail, interiors, branded, about, contact
   ========================================================================== */

/* ---------- Projects list ---------- */
.list-hero { padding: calc(var(--header-h) + clamp(60px, 10vw, 140px)) 0 clamp(40px, 5vw, 70px); }
.list-hero .label { margin-bottom: 22px; }
.list-hero h1 em { color: var(--stone-dim); }

.filters { position: sticky; top: 0; z-index: 40; background: rgba(14,13,12,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px; padding-bottom: 14px; }
.filters__search { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 200px; border: 1px solid var(--line-strong); border-radius: 99px; height: 40px; padding: 0 16px; }
.filters__search svg { width: 15px; height: 15px; color: var(--smoke); flex: none; }
.filters__search input { background: none; border: 0; outline: none; width: 100%; font-size: 14px; }
.filters__search:focus-within { border-color: var(--bronze); }
.filters__sel { display: flex; gap: 8px; flex-wrap: wrap; }
.filters__sel select { -webkit-appearance: none; appearance: none; height: 40px; border: 1px solid var(--line-strong); border-radius: 99px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23b08d5e'/%3E%3C/svg%3E") right 14px center no-repeat; padding: 0 34px 0 16px; font-size: 13px; }
.filters__sel select option { background: var(--onyx-2); }
.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 99px; padding: 3px; margin-left: auto; }
.view-toggle button { height: 32px; padding: 0 16px; border-radius: 99px; font-size: 13px; color: var(--stone-dim); }
.view-toggle button[aria-selected="true"] { background: var(--stone); color: var(--onyx); }
@media (max-width: 760px) {
  .filters { position: relative; }
  .filters__sel { width: 100%; }
  .filters__sel select { flex: 1 1 30%; min-width: 0; padding-left: 12px; padding-right: 26px; background-position: right 10px center; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
  .view-toggle { margin-left: 0; }
}

.list-body { padding-top: 32px; padding-bottom: clamp(80px, 10vw, 140px); }
.list-count { margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 60px) clamp(16px, 2vw, 28px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.empty { padding: 80px 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.map { height: min(78svh, 760px); border: 1px solid var(--line); background: var(--onyx-2); }

/* Leaflet theming */
.leaflet-container { background: var(--onyx-2); font-family: var(--f-body); }
.leaflet-control-zoom a { background: var(--onyx-2) !important; color: var(--stone) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(14,13,12,.7) !important; color: var(--smoke) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--stone-dim) !important; }
.mk { background: none; border: 0; }
.mk i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 4px rgba(233,225,211,.18); transition: background .3s; }
.mk span { opacity: 0; pointer-events: none; transition: opacity .25s; }
.mk:hover span, .mk--on span, .z-near .mk span { opacity: 1; }
.mk:hover { z-index: 1000 !important; }
.mk:hover i, .mk--on i { background: var(--rosso); }
.mk span { position: absolute; left: 0; top: 0; display: inline-block; transform: translate(-50%, -100%); margin-top: -12px; white-space: nowrap; background: var(--stone); color: var(--onyx); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 99px; position: relative; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.mk span::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--stone); }
.mk:hover span, .mk--on span { background: var(--rosso); color: var(--stone); }
.mk:hover span::after, .mk--on span::after { border-top-color: var(--rosso); }
.leaflet-popup-content-wrapper { background: var(--onyx-2); color: var(--stone); border-radius: 6px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-popup-tip { background: var(--onyx-2); }
.mk-pop { display: block; }
.mk-pop img { width: 100%; height: 130px; object-fit: cover; }
.mk-pop b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 20px; padding: 12px 14px 2px; }
.mk-pop span { display: block; font-size: 12px; color: var(--smoke); padding: 0 14px 14px; }

/* ---------- Project detail ---------- */
.ph-pre { display: block; font-size: .28em; letter-spacing: .3em; text-transform: uppercase; font-family: var(--f-body); font-weight: 400; margin-bottom: .3em; color: var(--stone-dim); }
.phero h1 em { font-style: italic; }

.facts { border-bottom: 1px solid var(--line); background: var(--onyx); position: relative; z-index: 2; }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; }
.facts__row > div { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.facts__row > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts__row b { font-weight: 400; font-size: 15.5px; }
.facts__cta { border-left: 0 !important; }
@media (max-width: 960px) {
  .facts__row { grid-template-columns: 1fr 1fr; }
  .facts__row > div { padding: 16px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .facts__row > div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
  .facts__cta { grid-column: 1 / -1; border-bottom: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
}

.why__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.why__lead { margin: 22px 0 28px; max-width: 20ch; }
.why__fig { margin: 0; aspect-ratio: 4 / 5; }
.why__fig img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } .why__fig { aspect-ratio: 4 / 3; } }

.inside__card { position: relative; display: block; height: 92svh; min-height: 520px; overflow: hidden; }
.inside__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.inside__card:hover > img { transform: scale(1.04); }
.inside__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.9), rgba(14,13,12,.1) 60%); }
.inside__body { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.inside__hint { color: var(--stone-dim); max-width: 44ch; font-size: 15px; }

.gallery .chips { max-width: 640px; justify-content: flex-end; }
@media (max-width: 760px) { .gallery .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .gallery .chips .chip { flex: none; } }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 20vw, 300px); gap: 10px; grid-auto-flow: dense; }
.gitem { position: relative; overflow: hidden; display: block; width: 100%; height: 100%; background: var(--onyx-2); }
.gitem--wide { grid-column: span 2; grid-row: span 2; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gitem:hover img { transform: scale(1.05); }
.gitem .label { position: absolute; left: 12px; bottom: 12px; color: var(--stone); background: rgba(14,13,12,.55); padding: 5px 9px; border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 760px) { .ggrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 36vw; } .gitem--wide { grid-column: span 2; grid-row: span 1; height: 100%; } }

.amen__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.amen__item { margin: 0; }
.amen__item .img-reveal { aspect-ratio: 4 / 3; }
.amen__item img { width: 100%; height: 100%; object-fit: cover; }
.amen__item figcaption { margin-top: 14px; font-family: var(--f-display); font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; max-width: 24ch; }
@media (max-width: 760px) { .amen__row { grid-template-columns: 1fr; } }

.plans .chips { max-width: 760px; justify-content: flex-end; }
@media (max-width: 760px) { .plans .chips { justify-content: flex-start; } }
.plans__stage { display: block; width: 100%; position: relative; cursor: zoom-in; background: #e9e3d8; border-radius: 4px; overflow: hidden; }
.plans__stage img { width: 100%; transition: opacity .25s; }
.plans__zoom { position: absolute; right: 14px; bottom: 14px; background: rgba(26,24,22,.8); color: var(--ivory) !important; padding: 6px 10px; border-radius: 99px; }

.loc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.loc__grid .label { margin-bottom: 18px; }
.loc__list { margin-top: 32px; }
.loc__list li { grid-template-columns: 90px 1fr; }
.loc__map { height: min(70svh, 620px); border: 1px solid var(--line); position: sticky; top: 100px; }
@media (max-width: 900px) { .loc__grid { grid-template-columns: 1fr; } .loc__map { height: 56svh; position: relative; top: 0; } }

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); }
.ledger b { font-weight: 400; font-size: 16px; }

.pay__bar { display: flex; gap: 4px; }
.pay__bar > div { border-top: 2px solid var(--bronze); padding-top: 18px; min-width: 0; }
.pay__bar > div:nth-child(2) { border-color: var(--rosso); }
.pay__bar > div:nth-child(3) { border-color: var(--stone); }
.pay__bar b { display: block; font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; }
.pay__bar span { display: block; margin-top: 10px; font-size: 14px; color: var(--stone-dim); }

.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: clamp(16px, 1.3vw, 19px); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary i { position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bronze); transition: transform .4s var(--ease); }
.faq__list summary i::after { transform: rotate(90deg); }
.faq__list details[open] summary i::after { transform: rotate(0); }
.faq__list details p { margin: 0 0 24px; color: var(--stone-dim); max-width: 62ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

.nextp { position: relative; display: block; height: 80svh; overflow: hidden; }
.nextp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); filter: brightness(.55); }
.nextp:hover > img { transform: scale(1.05); }
.nextp__body { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); z-index: 1; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Interiors ---------- */
.int-hero { padding: calc(var(--header-h) + clamp(50px, 8vw, 120px)) 0 clamp(40px, 6vw, 80px); }
.int-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.int-hero__grid .label { margin-bottom: 22px; }
.int-hero__fig { aspect-ratio: 5 / 4; margin: 0; }
.int-hero__fig img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .int-hero__grid { grid-template-columns: 1fr; } }

.lib { padding-bottom: clamp(80px, 10vw, 140px); }
.lib__bar { position: sticky; top: 0; z-index: 30; background: rgba(14,13,12,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.lib__bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .lib__bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; } .lib__bar .chip { flex: none; } }
.lib__stage { position: relative; aspect-ratio: 16 / 8; overflow: hidden; margin-bottom: 14px; background: var(--onyx-2); }
.lib__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.lib__stage-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(to top, rgba(14,13,12,.85), transparent); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lib__stage-cap b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; display: block; margin-top: 8px; }
@media (max-width: 760px) { .lib__stage { aspect-ratio: 4 / 5; } }
.lib__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lib__thumbs button { position: relative; aspect-ratio: 4 / 3; overflow: hidden; opacity: .82; transition: opacity .3s; }
.lib__thumbs button:hover, .lib__thumbs button[aria-pressed="true"] { opacity: 1; }
.lib__thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--stone); }
.lib__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lib__thumbs span { position: absolute; left: 8px; bottom: 6px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
@media (max-width: 600px) { .lib__thumbs { grid-template-columns: repeat(3, 1fr); } .lib__thumbs span { display: none; } }

.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--onyx-2); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__b { clip-path: inset(0 0 0 50%); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--stone); cursor: ew-resize; }
.compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--stone); color: var(--onyx); display: grid; place-items: center; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.compare__tag { position: absolute; top: 16px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(14,13,12,.6); padding: 6px 10px; border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.compare__tag--a { left: 16px; }
.compare__tag--b { right: 16px; }
.compare-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
@media (max-width: 760px) { .compare { aspect-ratio: 4 / 5; } }

.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.detail { margin: 0; }
.detail .img-reveal { aspect-ratio: 3 / 4; }
.detail img { width: 100%; height: 100%; object-fit: cover; }
.detail figcaption { margin-top: 14px; }
.detail figcaption b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; margin-bottom: 6px; color: var(--ink); }
.detail figcaption span { font-size: 13px; color: #6a6358; }
@media (max-width: 900px) { .details { grid-template-columns: 1fr 1fr; } }

/* ---------- Branded ---------- */
.brand-sec { position: relative; }
.brand-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.brand-hero > video, .brand-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.92), rgba(14,13,12,.15) 55%); }
.brand-hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(32px, 6vw, 72px); }
.brand-hero .label { margin-bottom: 18px; color: var(--stone-dim); }
.brand-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }
.brand-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-strip button { flex: none; width: clamp(240px, 32vw, 520px); aspect-ratio: 4 / 3; overflow: hidden; scroll-snap-align: start; }
.brand-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.brand-strip button:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .brand-body { grid-template-columns: 1fr; } .brand-strip button { width: 78vw; } }

/* ---------- About ---------- */
.lead-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.leader { margin: 0; }
.leader .img-reveal { aspect-ratio: 4 / 5; background: var(--onyx-2); }
.leader img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader figcaption { padding-top: 16px; }
.leader b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.leader span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.leader p { font-size: 14px; color: var(--stone-dim); margin: 12px 0 0; }
@media (max-width: 1000px) { .lead-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 200px 1fr 1fr; gap: clamp(20px, 4vw, 60px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); align-items: center; }
.timeline .yr { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; font-style: italic; color: var(--bronze); }
.timeline h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.1; margin: 0 0 12px; }
.timeline p { margin: 0; color: var(--stone-dim); }
.timeline .tl-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--onyx-2); }
.timeline .tl-media video, .timeline .tl-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .timeline li { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.pillar video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.9), transparent 60%); }
.pillar__t { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.pillar__t b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; margin-bottom: 10px; }
.pillar__t span { font-size: 14px; color: var(--stone-dim); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { aspect-ratio: 4 / 5; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); padding-top: calc(var(--header-h) + clamp(50px, 8vw, 120px)); padding-bottom: clamp(80px, 10vw, 140px); }
.contact-grid .label { margin-bottom: 20px; }
.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.contact-cards > div { background: var(--onyx); padding: 22px; display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.contact-cards b { font-weight: 400; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-cards > div { grid-template-columns: 1fr; gap: 6px; } }
