/* Only the opt-in exploration experience uses these rules. */
.experience-enhanced { --explore-gap: clamp(24px, 4vw, 56px); }
.experience-enhanced section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.experience-enhanced .section-header { margin-bottom: 28px; }
.experience-enhanced .section-header p { color: var(--ink-600); max-width: 52ch; margin: 12px auto 0; line-height: 1.8; }
/* Panoramic artwork uses generated surroundings, with the existing source
   image composited over the buildings. Text and buttons occupy clear areas. */
.experience-enhanced #hero { background: #dce3eb; }
.experience-enhanced #hero .hero-stage {
    --hero-unit: 1vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    position: relative;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px 0;
    min-height: clamp(480px, 42vw, 760px);
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    text-align: right;
}
.experience-enhanced #hero .hero-stage::after { display: none; }
.explore-hero-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.explore-hero-canvas { position: absolute; left: 0; top: 50%; width: var(--hero-art-width, 100%); transform: translateY(-50%); }
.experience-enhanced #hero .hero-picture { display: block; grid-area: auto; position: static; width: 100%; margin: 0; max-width: none; border-radius: 0; }
.experience-enhanced #hero .hero-image { display: block; position: static; top: auto; width: 100%; height: auto; transform: none; object-fit: contain; }
.explore-hero-facade { position: absolute; top: 0; left: 0; width: 62.73%; display: block; mask-image: linear-gradient(to right, #000 0%, #000 97%, transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 0%, #000 97%, transparent 100%); }
.explore-hero-facade img { display: block; width: 100%; height: auto; }
.explore-hero-copy { grid-area: 1 / 1; position: relative; z-index: 1; justify-self: start; width: min(34%, 540px); margin-inline-start: clamp(24px, 3vw, 72px); min-width: 0; }
.explore-hero-copy::before { content: ''; position: absolute; inset: -100px -100px -100px -40px; z-index: -1; background: radial-gradient(ellipse, rgba(244,241,235,.92) 0%, rgba(244,241,235,.76) 42%, rgba(244,241,235,0) 72%); pointer-events: none; }
.explore-hero-location { display: flex; align-items: center; gap: 8px; color: var(--ink-700); font-size: .875rem; font-weight: 600; margin-bottom: 12px; }
.explore-hero-location .icon { font-size: 1rem; }
.experience-enhanced #hero .hero-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; color: var(--ink-900); text-align: right; }
.experience-enhanced #hero .hero-title { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.experience-enhanced #hero .hero-subtitle { font-size: clamp(1.125rem, 1.7vw, 1.55rem); line-height: 1.6; font-weight: 600; max-width: none; }
.explore-hero-description { max-width: 38ch; margin-top: 14px; color: var(--ink-700); font-size: 1rem; line-height: 1.8; }
.experience-enhanced #hero .hero-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 440px; padding: 0; margin-top: 22px; }
.experience-enhanced #hero .hero-ctas .btn { min-height: 52px; padding: 12px; border-radius: 10px; box-shadow: none; font-size: 1rem; white-space: normal; line-height: 1.6; }
.experience-enhanced #hero .hero-explore { background: var(--ink-900); color: white; border: 1px solid var(--ink-900); text-decoration: none; }
.experience-enhanced #hero #whatsapp-hero-btn { background: rgba(255,255,255,.95); color: var(--ink-900); border: 1px solid var(--beige-dark); }
.explore-hero-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--ink-900); font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; }
.explore-hero-phone .icon { width: 14px; height: 14px; }
/* Portrait/tablet tracks are tied to the actual roof and ground coordinates.
   Spare sky/road may be cropped; neither facade is cropped or covered. */
@media (max-width: 759px), (max-width: 1100px) and (min-height: 501px) {
    .experience-enhanced #hero .hero-stage { grid-template-rows: auto calc(var(--hero-unit) * 34) auto; min-height: 0; padding: 0; text-align: center; }
    .explore-hero-copy { display: contents; }
    .explore-hero-copy::before { display: none; }
    .explore-hero-intro { grid-area: 1 / 1; z-index: 1; padding: 24px 16px 18px; background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent); }
    .explore-hero-scene { grid-area: 2 / 1; position: relative; inset: auto; overflow: visible; align-self: stretch; }
    .explore-hero-canvas { top: calc(var(--hero-unit) * -69.43); transform: none; }
    .explore-hero-facade { top: calc(var(--hero-unit) * 36.42); width: 100%; mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 72%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 72%, transparent 100%); }
    .explore-hero-location { justify-content: center; margin-bottom: 8px; }
    .experience-enhanced #hero .hero-heading { align-items: center; text-align: center; gap: 4px; }
    .experience-enhanced #hero .hero-title { font-size: clamp(1.75rem, 7vw, 2.75rem); }
    .experience-enhanced #hero .hero-subtitle { font-size: clamp(1.05rem, 4vw, 1.35rem); }
    .explore-hero-description { margin: 10px auto 0; font-size: .95rem; max-width: 38ch; }
    .explore-hero-actions { grid-area: 3 / 1; position: relative; z-index: 1; padding: 16px 16px 24px; background: linear-gradient(to bottom, transparent, rgba(16,10,6,.32)); }
    .experience-enhanced #hero .hero-ctas { margin: 0 auto; gap: 10px; }
    .experience-enhanced #hero .hero-ctas .btn { font-size: .95rem; padding: 12px 10px; }
    .experience-enhanced #hero .hero-explore { color: var(--ink-900); background: var(--cream); border-color: var(--cream); }
    .explore-hero-phone { color: white; margin-top: 6px; }
}
@media (min-width: 760px) and (max-height: 500px) {
    .experience-enhanced #hero .hero-stage { min-height: 360px; padding: 24px 0; }
    .experience-enhanced #hero .hero-title { font-size: 1.8rem; }
    .experience-enhanced #hero .hero-subtitle { font-size: 1rem; }
    .explore-hero-description { font-size: .9rem; }
    .experience-enhanced #hero .hero-ctas .btn { font-size: .875rem; padding-inline: 8px; }
}
@media (hover: hover) and (pointer: fine) {
    .experience-enhanced #hero .hero-explore:hover { background: var(--ink-700); color: white; border-color: var(--ink-700); }
    .experience-enhanced #hero #whatsapp-hero-btn:hover { background: white; border-color: var(--accent-deep); }
}
.experience-enhanced .projects { padding-block: var(--explore-gap); background: var(--beige-light); }
.experience-enhanced .projects-grid { gap: 28px; align-items: start; }
.experience-enhanced .project-card { border: 1px solid var(--beige-dark); border-radius: 16px; box-shadow: none; overflow: hidden; }
.explore-project-heading { order: 1; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0; }
.experience-enhanced .project-content { order: 2; padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); text-align: right; }
.explore-project-jumps { display: none; }
.experience-enhanced .project-card[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.experience-enhanced .project-title { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.6; }
.experience-enhanced .project-description { margin: 8px 0 0; }
.experience-enhanced .project-actions { margin-top: 20px; }
.experience-enhanced .project-actions .btn { min-height: 48px; font-size: 1rem; padding: 10px 12px; white-space: normal; line-height: 1.6; }
.experience-enhanced .project-units { justify-content: flex-start; margin-top: 20px; gap: 8px; }
.experience-enhanced .unit-stat-available { font-weight: 700; border: 1px solid var(--status-available, #1c4420); }
.explore-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 20px; margin-top: 16px; border-block: 1px solid var(--beige-dark); }
.explore-facts dt { color: var(--ink-600); font-size: .875rem; margin-bottom: 5px; }
.explore-facts dd { color: var(--ink-900); font-size: 1rem; font-weight: 700; margin: 0; }
.explore-details { margin-top: 20px; border-block: 1px solid var(--beige-dark); }
.explore-details summary, .explore-question summary { cursor: pointer; padding: 16px 4px; min-height: 48px; font-weight: 700; color: var(--ink-900); line-height: 1.8; }
.explore-details-body { padding: 0 4px 20px; font-size: 1rem; line-height: 1.9; }
.explore-details-body ul { padding-inline-start: 24px; margin-block: 12px; }
.explore-source-note { color: var(--ink-600); font-size: .875rem; }
.explore-gallery { min-width: 0; background: white; }
.explore-gallery-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--beige-dark) transparent; }
.explore-slide { flex: 0 0 100%; min-width: 0; display: block; scroll-snap-align: center; border: 0; background: var(--beige-light); color: var(--ink-700); cursor: zoom-in; font: inherit; text-align: right; }
.explore-slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.explore-image-caption { display: block; padding: 10px 16px; min-height: 48px; background: white; font-size: .875rem; }
.explore-slide:focus-visible { outline-offset: -4px; }
.explore-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 16px; }
.explore-control { touch-action: manipulation; min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--beige-dark); border-radius: 8px; background: white; color: var(--ink-900); font: inherit; font-size: .875rem; cursor: pointer; }
.explore-control:disabled { opacity: .45; cursor: default; }
.explore-counter { direction: ltr; font-variant-numeric: tabular-nums; font-size: .875rem; color: var(--ink-600); }
.explore-gallery-hint { padding: 0 16px 16px; font-size: .875rem; color: var(--ink-600); }
.explore-dialog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; border: 1px solid var(--beige-dark); border-radius: 16px; padding: 20px; background: var(--beige-light); color: var(--ink-900); overflow-y: auto; }
.explore-dialog::backdrop { background: rgba(16, 10, 6, .8); }
.explore-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.explore-dialog-header h2 { font-size: 1.25rem; }
.explore-dialog-image { touch-action: pan-y pinch-zoom; display: block; width: 100%; height: min(60dvh, 650px); object-fit: contain; }
.explore-dialog-caption { margin-top: 16px; font-size: 1rem; }
.explore-image-error { padding: 16px; color: var(--ink-700); }
body.explore-modal-open { overflow: hidden; }
.explore-modal-open .whatsapp-fab { visibility: hidden; }
.experience-enhanced .about { padding-block: var(--explore-gap); }
.experience-enhanced .about-content { max-width: 760px; margin-inline: auto; }
.experience-enhanced .offerings-section, .experience-enhanced .features-section { margin-top: 32px; }
.experience-enhanced .offerings-list { gap: 24px; }
.experience-enhanced .offerings-item { background: transparent; border: 0; border-radius: 0; padding: 16px 0; box-shadow: none; align-items: flex-start; }
.experience-enhanced .offerings-item .item-icon { background: var(--beige-light); border: 0; }
.experience-enhanced .features-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.experience-enhanced .features-item { flex-direction: column; text-align: center; background: transparent; border: 0; border-radius: 0; padding: 16px 8px; gap: 12px; box-shadow: none; }
.experience-enhanced .features-item .item-icon { border: 0; background: var(--beige-light); }
:root[data-experience="enhanced"] .features-item .offerings-item-title { font-size: 1rem; }
.explore-faq { background: var(--beige-light); padding-block: var(--explore-gap); }
.explore-faq .container { max-width: 900px; }
.explore-question { border-bottom: 1px solid var(--beige-dark); }
.explore-answer { padding: 0 4px 20px; font-size: 1rem; line-height: 1.9; color: var(--ink-700); }
.experience-enhanced .contact { padding-block: var(--explore-gap); }
.explore-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.experience-enhanced .contact-content { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.experience-enhanced .contact-item { display: flex; flex-direction: row; align-items: center; text-align: right; gap: 20px; padding: 16px 4px; min-height: 80px; border: 0; border-bottom: 1px solid var(--beige-dark); border-radius: 0; background: white; box-shadow: none; }
.experience-enhanced .contact-icon { margin: 0; flex: 0 0 32px; }
.explore-contact-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.explore-contact-copy strong { font-size: 1rem; font-weight: 600; }
.explore-contact-copy span { font-size: .95rem; color: var(--ink-600); overflow-wrap: anywhere; }
.explore-hours { margin-top: 20px; padding: 20px; border-radius: 12px; background: var(--beige-light); }
.explore-hours h3 { font-size: 1rem; margin-bottom: 8px; }
.explore-hours p { line-height: 1.9; font-size: 1rem; }
.experience-enhanced .contact-map { margin: 0; height: 380px; }
@media (max-width: 1100px) {
    .experience-enhanced .projects-grid { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
    .explore-contact-layout { grid-template-columns: 1fr; }
    .experience-enhanced .features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
    .explore-project-heading { order: -1; padding: 20px 20px 16px; }
    .explore-project-heading .project-description { display: none; }
    .experience-enhanced .project-content { padding: 0 20px 20px; }
    .experience-enhanced .project-title { font-size: 1.125rem; margin: 0; }
    .explore-facts { padding-block: 14px; margin-top: 8px; }
    .experience-enhanced .project-units { margin-top: 14px; margin-bottom: 4px; }
    .explore-details { margin-top: 14px; }
    .explore-gallery-hint { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .explore-project-jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
    .explore-project-jumps a { min-height: 48px; padding: 10px 16px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--beige-dark); border-radius: 10px; text-decoration: none; color: var(--ink-900); background: white; font-size: 1rem; font-weight: 600; }
    .experience-enhanced .project-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .experience-enhanced .project-actions .btn:last-child { grid-column: 1 / -1; }
    .experience-enhanced .offerings-list { grid-template-columns: 1fr; gap: 0; }
    .experience-enhanced .offerings-item + .offerings-item { border-top: 1px solid var(--beige-dark); }
    .experience-enhanced .features-item { padding-inline: 0; }

}
@media (hover: hover) and (pointer: fine) {
    .explore-control:not(:disabled):hover { background: var(--cream); border-color: var(--accent-deep); }
    .experience-enhanced .features-item:hover, .experience-enhanced .offerings-item:hover, .experience-enhanced .project-card:hover { transform: none; box-shadow: none; }
    .experience-enhanced .contact-item:hover { background: var(--beige-light); }
}
@media (prefers-reduced-motion: reduce) { .explore-gallery-track { scroll-behavior: auto; } }

/* A touch viewer keeps its close/navigation controls visible even in
   landscape. Safe-area padding protects controls beside the notch. */
@media (max-width: 600px), (pointer: coarse) and (max-height: 500px) {
    .explore-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
    .explore-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; overflow: hidden; }
    .explore-dialog-header { margin: 0; }
    .explore-dialog-image { height: 100%; min-height: 0; }
    .explore-dialog-caption { margin: 0; font-size: .875rem; line-height: 1.7; }
    .explore-dialog .explore-gallery-controls { padding: 0; }
    .explore-dialog .explore-image-error:not([hidden]) { position: absolute; inset: 40% 16px auto; background: var(--beige-light); }
    .experience-enhanced .mobile-menu-toggle { min-width: 48px; min-height: 48px; }
}
.experience-enhanced .explore-map-link { display: flex; width: 100%; min-height: 48px; margin-top: 16px; padding: 12px 16px; white-space: normal; text-align: center; line-height: 1.6; }
