/* Review edition: readable panels and native document scrolling. */
:root { --header-height:calc(88px + env(safe-area-inset-top)); --reading-size:1rem; }
html { height:auto; overflow-x:clip; overflow-y:auto; scroll-snap-type:none; scroll-behavior:auto; }
body { height:auto; overflow:visible; }
body.dialog-open { overflow:hidden; }
html:has(dialog[open]) { overflow-y:hidden; }
main { height:auto; max-height:none; overflow:visible; scroll-snap-type:none; }
main > [data-scroll-stop] { box-sizing:border-box; height:auto; min-height:100svh; max-height:none; overflow:visible; scroll-snap-align:none; scroll-snap-stop:normal; }
main > [data-scroll-stop].panel-long { scroll-snap-align:none; }
[hidden] { display:none !important; }
*,*::before,*::after { box-sizing:border-box; }
h1,h2,h3 { text-wrap:balance; }
.section-heading h2,.hero h1,.experience-copy h3,.map-sidebar h3,.contact-copy h2 { font-weight:400;letter-spacing:-.025em; }
p { text-wrap:pretty; }
button,input,select,textarea { font:inherit; }
button,a,summary { touch-action:manipulation; }
button,input,select,textarea,summary { scroll-margin-block:calc(var(--header-height) + 16px) 24px; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #b85f3e; outline-offset:4px; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.button, .text-control, summary { min-height:44px; font-size:.875rem; }
.button { line-height:1.25; font-weight:700; letter-spacing:.02em; padding:12px 16px; }
.hero-actions .hero-portfolio { background:#f6f1e8;color:#173b34;border-color:#f6f1e8; }
.aitana-page .button:not(.button--ghost):not(.button--dark) { background:#9f4c31; border-color:#9f4c31; color:var(--ivory); }
.aitana-page .button:not(.button--ghost):not(.button--dark):hover { background:#873d28; border-color:#873d28; }
.map-sidebar .button,.selection-actions .button,.contact-form .button { min-height:44px;font-size:.875rem;padding:12px 16px; }
.text-control { display:inline-flex; align-items:center; gap:8px; border:0; padding:8px 0; background:none; color:inherit; text-decoration:underline; text-underline-offset:5px; cursor:pointer; }
.nav-links a[aria-current="location"] { text-decoration:underline; text-underline-offset:7px; }
.site-header { height:var(--header-height); }
.section { padding:calc(var(--header-height) + 28px) 0 32px; }
.section-shell { width:min(1180px,calc(100% - 48px)); }
.section-heading h2 { font-size:clamp(2.5rem,4.4vw,4rem); line-height:1.05; }
.section-heading p,.hero-lead { font-size:1rem; line-height:1.5; }
.section-heading { margin-bottom:20px; }
.hero { display:grid; align-items:center; }
.hero-content { padding-top:calc(var(--header-height) + 32px); padding-bottom:32px; }
.hero-fact span { font-size:.875rem; line-height:1.4; }
.experience-viewer { height:auto; min-height:420px; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); }
.experience-media { min-height:320px; aspect-ratio:1.45; touch-action:pan-y pinch-zoom; }
.experience-media img { object-fit:cover; }
.experience-media span { font-size:.875rem; }
.experience-copy { padding:24px; gap:10px; }
.experience-copy h3 { font-size:2.3rem; line-height:1.05; margin:0; }
.experience-category { font-size:.8rem; color:#66ccc3; }
.experience-copy > p:not(.experience-category) { font-size:.95rem; line-height:1.5; margin:0; color:#e0e6df; }
.experience-controls { margin-top:4px; }
.experience-controls button { min-height:44px; font-size:.875rem; padding:8px 14px; }
.gallery-index summary { cursor:pointer; display:flex; align-items:center; text-decoration:underline; text-underline-offset:5px; }
.gallery-index summary::after { content:' +'; margin-left:8px; }
.gallery-index[open] summary::after { content:' −'; }
.experience-thumbs { margin-top:6px; grid-template-columns:repeat(4,1fr); }
.experience-thumb { height:54px; }
.experience-copy .experience-support { margin-top:auto; font-size:.875rem; color:#e0e6df; }
.experience-copy .render-note { font-size:.75rem; }
.experience-tabs button,.residence-type-tabs button { min-height:44px; font-size:.875rem; color:#e0e6df; }
.experience-tabs button[aria-pressed="true"],.residence-type-tabs button[aria-pressed="true"] { background:var(--ivory); color:var(--forest-deep); }
.residence-explorer { height:auto; max-height:none; overflow:visible; display:grid; grid-template-columns:1.2fr 1fr; }
.explorer-map,.explorer-panel { min-width:0; overflow:visible; }
.explorer-panel { padding:28px; }
.explorer-panel h2 { font-size:clamp(2.3rem,3.5vw,3.5rem); line-height:1.05; font-weight:400; }
.explorer-panel > p { display:block; font-size:1rem; line-height:1.5; margin-top:12px; }
.explorer-media-stage { position:relative; height:320px; max-height:none; }
.explorer-media-stage > img { width:100%; height:100%; object-fit:contain; padding:42px 16px 10px; }
.explorer-media-stage.is-photo > img { object-fit:cover; padding:0; }
.masterplan-label { font-size:.8rem; max-width:70%; background:var(--ivory); color:var(--forest-deep); }
.image-expand { position:absolute; right:10px; bottom:10px; z-index:2; min-height:44px; padding:8px 12px; border:1px solid var(--forest); background:var(--ivory); color:var(--forest); cursor:pointer; font-size:.875rem; }
.media-selector { overflow-x:auto; }
.media-selector button { min-height:48px; }
.media-selector span { font-size:.875rem; }
.media-selector button[aria-pressed="true"] { background:var(--forest); color:var(--ivory); }
.map-note { display:block; padding:14px 16px; margin:0; min-height:80px; font-size:.875rem; line-height:1.5; }
.map-note strong,.map-note span { display:block; }
.selection-title strong { font-size:2rem; }
.selection-summary { margin-top:16px; padding-top:12px; }
.selection-summary #explorer-description,.residence-features li,.selection-facts dt,.selection-facts dd { font-size:.875rem; line-height:1.45; }
.selection-facts { margin:12px 0; }
.residence-features { grid-template-columns:1fr; }
.residence-description summary { cursor:pointer; font-size:.875rem; padding:10px 0; }
.explorer-section > .section-shell > .residence-type-tabs { max-width:640px;margin:0 0 16px;grid-template-columns:repeat(4,1fr); }
.contact-extra { background:var(--forest);color:var(--ivory);padding:16px 20px; }
.contact-extra > summary { cursor:pointer; font-size:1rem;display:flex;align-items:center;justify-content:space-between; }
.contact-extra > summary::after { content:' +'; }
.contact-extra[open] > summary::after { content:' −'; }
.contact-extra .contact-form { padding:18px 0 0; }
.selection-actions { display:block; }
.inventory { padding-top:calc(var(--header-height) + 26px); align-content:center; }
.inventory-toolbar { display:grid; grid-template-columns:220px 1fr; gap:28px; padding:12px 0; }
.field label { display:block; font-size:.875rem; font-weight:650; margin-bottom:7px; letter-spacing:0; }
.field select,.field input[type="number"] { width:100%;min-height:46px; padding:10px 12px; font-size:1rem; }
.budget-control { display:grid; grid-template-columns:1fr auto; gap:8px 20px; align-items:center; }
.budget-control label { grid-column:1/-1; }
.budget-control output { font-size:1rem; font-variant-numeric:tabular-nums; }
.budget-control input { width:100%;height:28px;accent-color:var(--aitana); }
.inventory-meta { display:flex; align-items:center; justify-content:space-between;gap:12px; margin:6px 0; }
.inventory-meta p { font-size:.875rem; }
.table-wrap { overflow-x:auto; }
.unit-table { width:100%;border-collapse:collapse;table-layout:auto; }
.unit-table th,.unit-table td { width:auto!important; padding:10px 12px; font-size:1rem; overflow:visible; text-align:left; vertical-align:middle; }
.unit-table thead th { font-size:.8rem; font-weight:650; letter-spacing:.04em; }
.unit-table th:nth-child(2),.unit-table td:nth-child(2) { display:table-cell; }
.unit-table td:last-child,.unit-table th:last-child { text-align:center; }
.unit-table tbody tr { cursor:default; }
.unit-table tbody th button { color:inherit; background:none; border:0; min-height:44px; padding:0; text-align:left; font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:4px; }
.unit-table small { display:block;font-size:.8rem;font-weight:400;margin-top:4px;opacity:.9; }
.unit-table tr.is-selected { box-shadow:inset 3px 0 var(--aitana);background:rgba(58,174,165,.14); }
.compare-choice { min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer; }
.compare-choice input { width:20px;height:20px;accent-color:var(--aitana); }
.inventory-pagination { margin:10px 0; }
.inventory-pagination button { min-height:44px;font-size:.875rem; }
.inventory-pagination span { font-size:.875rem; }
.selection-bar { display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--white-line);padding-top:14px; }
.selection-bar p { font-size:.95rem; }
.selection-bar > div { display:flex; gap:10px; }
.selection-bar .button:disabled { opacity:.45;cursor:default; }
.data-note { display:block!important;font-size:.8rem;line-height:1.5;margin-top:14px; }
.empty-state:not([hidden]) { display:block;padding:24px 0;font-size:1rem; }
.detail-dialog { border:0;width:min(650px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;margin:auto;overflow:auto;background:var(--ivory);color:var(--ink);overscroll-behavior:contain; }
.detail-dialog::backdrop,.lightbox::backdrop { background:rgba(5,22,18,.82); }
.dialog-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px; }
.detail-dialog .dialog-heading { position:sticky;top:-28px;z-index:5;background:var(--ivory);padding:12px 0;border-bottom:1px solid #c4c9c0; }
.dialog-heading p { font-size:.875rem; }
.dialog-heading button { background:none;color:inherit;border:1px solid #819088;min-height:44px;padding:8px 14px;cursor:pointer; }
.detail-dialog h2 { font:400 2.6rem/1.1 var(--display);margin:0 0 8px; }
.dialog-price { font-size:1.6rem;font-weight:700;margin:8px 0; }
.payment-steps { list-style:none;padding:0;margin:24px 0; }
.payment-steps li { display:grid;grid-template-columns:1fr auto;gap:5px 16px;border-top:1px solid #c4c9c0;padding:14px 0; }
.payment-steps li small { grid-column:1/-1;font-size:.875rem; }
.payment-explanation,#finance-note { font-size:.875rem;line-height:1.6;margin:12px 0; }
.finance-disclosure { border-block:1px solid #bac5bb;margin:22px 0; }
.finance-disclosure summary { cursor:pointer;padding:12px 0;font-weight:700; }
.finance-fields { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0; }
.finance-fields input,.finance-fields select { color:var(--ink);background:var(--paper);border:1px solid #819088; }
.finance-fields .field label { color:var(--ink); }
.field-error { color:#953b25; font-size:.875rem; }
.finance-result { font-size:1.5rem;font-weight:700;margin:12px 0; }
.comparison-dialog { width:min(950px,calc(100% - 32px)); }
.comparison-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px;margin:24px 0; }
.comparison-grid article { min-width:0; }
.comparison-grid h3 { font:400 2rem var(--display); }
.comparison-grid dl > div { border-top:1px solid #c4c9c0;padding:12px 0; }
.comparison-grid dt { font-size:.875rem; }
.comparison-grid dd { font-weight:700;margin:5px 0 0;font-variant-numeric:tabular-nums; }
.comparison-actions { display:flex;gap:12px;flex-wrap:wrap; }
.map-composition { height:auto;min-height:420px;grid-template-columns:1.2fr 1fr; }
#location-map { height:360px;min-height:0; }
.map-caption { display:block!important;padding:12px;font-size:.8rem;line-height:1.5; }
.map-caption { position:static;max-width:none;margin:0; }
.map-sidebar { padding:24px;overflow:visible; }
.map-sidebar h3 { font-size:2.3rem;white-space:normal; }
.map-sidebar address { font-size:1rem;line-height:1.5; }
.map-group summary { cursor:pointer;padding:10px 0; }
.map-group-title { display:none; }
.map-point { min-height:44px; }
.map-point span,.map-point strong { font-size:.875rem; }
.map-disclaimer { font-size:.8rem;line-height:1.5; }
.contact-grid { gap:32px; }
.contact-copy h2 { font-size:clamp(2.5rem,4.5vw,4rem);line-height:1.05; }
.contact-copy p { font-size:1rem;line-height:1.5; }
.contact-copy .advisor-name { font-size:1rem;font-weight:700; }
.advisor-name span { font-size:.875rem;font-weight:400; }
.contact-copy .text-control { display:flex; }
.contact-fields { gap:14px; }
.contact-field label { font-size:.875rem; }
.contact-field input,.contact-field select,.contact-field textarea { min-height:46px;font-size:1rem;padding:10px; }
.contact-field textarea { min-height:72px; }
.contact-form { padding:24px; }
.form-status,.privacy-note { font-size:.8rem;line-height:1.5;margin:12px 0; }
.contact .footer-bottom { font-size:.8rem;line-height:1.5; }
.contact .footer-lockup { width:190px; }
.contact .developer-logo { width:140px; }
.portfolio-intro h1 { max-width:950px; }
.portfolio-intro .intro-copy { padding-top:32px; }
.project-copy .project-note { font-size:.875rem; }
.project-copy .project-facts { margin-block:16px; }
.portfolio-close { min-height:0;padding:32px 24px;background:var(--forest);color:var(--ivory); }
.portfolio-close .close-inner { display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1180px;margin:auto; }
.portfolio-close h2 { font:400 1.8rem var(--display); }
.portfolio-close p { font-size:1rem; }
.portfolio-close .site-footer { position:static;margin:28px auto 0;max-width:1180px; }
@media(max-width:900px){
  :root { --header-height:calc(80px + env(safe-area-inset-top)); }
  .experience-viewer,.residence-explorer,.map-composition { grid-template-columns:1fr; }
  .experience-media { min-height:0;aspect-ratio:1.7;height:auto; }
  .experience-viewer { min-height:0; }
  .experience-copy { padding:18px;gap:8px; }
  .experience-copy h3 { font-size:1.9rem; }
  .experience-copy .experience-support { margin-top:8px; }
  .residence-explorer { background:var(--forest-deep); }
  .explorer-panel { padding:18px; }
  .explorer-media-stage { height:245px; }
  .residence-type-tabs { grid-template-columns:repeat(4,1fr); }
  .residence-features { grid-template-columns:repeat(3,1fr);gap:10px; }
  .map-composition { min-height:0; }
  #location-map { height:260px; }
  .map-sidebar { padding:18px; }
  .contact-grid { grid-template-columns:1fr; }
}
@media(max-width:680px){
  :root { --header-height:calc(76px + env(safe-area-inset-top)); }
  .section-shell { width:calc(100% - 32px); }
  .section { padding:calc(var(--header-height) + 18px) 0 22px; }
  .section-heading { gap:8px;margin-bottom:14px; }
  .section-heading h2 { font-size:2.2rem; }
  .section-heading p { font-size:.95rem; }
  .hero-content { padding-top:calc(var(--header-height) + 24px); }
  .hero h1 { font-size:clamp(3rem,13vw,4rem); }
  .hero-lead { font-size:1rem; }
  .hero-facts { grid-template-columns:1fr 1fr; }
  .hero-fact:last-child { grid-column:1/-1; }
  .hero-fact span { font-size:.8rem; }
  .experience-tabs { display:grid;grid-template-columns:1fr 1fr; }
  .experience-tabs button { min-height:44px;font-size:.875rem; }
  .experience-media { height:auto;aspect-ratio:1.6; }
  .experience-copy { padding:16px; }
  .experience-controls { margin:0; }
  .experience-copy .experience-support { font-size:.875rem; }
  .experience-copy > p:not(.experience-category) { font-size:.875rem; }
  .gallery-index { border-top:1px solid var(--white-line); }
  .explorer-media-stage { height:205px; }
  .explorer-panel h2 { font-size:2.15rem; }
  .explorer-panel > p { font-size:.9rem; }
  .map-note { min-height:0;padding:10px 14px;font-size:.8rem; }
  .residence-type-tabs { grid-template-columns:1fr 1fr; }
  .explorer-section > .section-shell > .residence-type-tabs { grid-template-columns:1fr 1fr;margin-bottom:10px; }
  .explorer-panel { padding:12px 16px; }
  .explorer-panel .selection-summary { margin:0;padding:0;border:0; }
  .explorer-panel .selection-facts { margin:4px 0 10px; }
  .explorer-panel .selection-summary #explorer-description { margin-top:0; }
  .explorer-media-stage { height:180px; }
  .map-note strong { display:none; }
  .residence-features { grid-template-columns:1fr 1fr; }
  .selection-title { display:none; }
  .selection-summary { margin-top:10px; }
  .inventory-toolbar { grid-template-columns:1fr;gap:12px; }
  .inventory-toolbar > :nth-child(n) { order:initial;grid-column:auto; }
  .inventory .section-heading p { display:block; }
  .inventory-meta { margin:0; }
  .inventory-meta p,.inventory-meta button { font-size:.8rem; }
  .unit-table th,.unit-table td { padding:6px 5px;font-size:.875rem; }
  .unit-table thead th { font-size:.75rem;letter-spacing:0; }
  .unit-table small { font-size:.75rem; }
  .unit-table td:last-child { width:44px!important; }
  .selection-bar { display:block;padding-top:10px; }
  .selection-bar p { font-size:.875rem;margin-bottom:10px; }
  .selection-bar > div { display:grid;grid-template-columns:1fr 1fr; }
  .selection-bar .button { font-size:.8rem;padding:10px 8px; }
  .data-note { font-size:.75rem; }
  .detail-dialog { padding:20px;width:calc(100% - 20px);max-height:calc(100dvh - 20px); }
  .detail-dialog h2 { font-size:2.1rem; }
  .detail-dialog .dialog-heading { top:-20px; }
  .comparison-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
  .comparison-grid article:nth-child(3) { grid-column:1/-1; }
  .comparison-grid dt { font-size:.8rem; }
  .comparison-grid dd { font-size:.9rem; }
  .map-sidebar address { font-size:.95rem; }
  #location-map { height:220px; }
  .map-caption { font-size:.75rem; }
  .contact-copy h2 { font-size:2.25rem; }
  .contact-copy p { font-size:.95rem; }
  .contact-grid { gap:22px; }
  .contact-form { padding:18px; }
  .contact-fields { grid-template-columns:1fr; }
  .contact-fields .contact-field--full { grid-column:auto; }
  .contact-field label { font-size:.875rem; }
  .contact-field input,.contact-field select,.contact-field textarea { font-size:1rem; }
  .contact .footer-bottom { flex-direction:column;font-size:.75rem; }
  .portfolio-close .close-inner { display:block; }
  .portfolio-close .close-actions { margin-top:18px; }
  .project-feature { grid-template-rows:auto 1fr; }
  .project-image { height:28svh;min-height:180px; }
  .project-copy { padding:22px 16px; }
  .project-heading h2 { font-size:2.65rem; }
}
@media(max-height:620px){
  html { scroll-snap-type:none; }
  main > [data-scroll-stop] { height:auto;min-height:100svh;max-height:none;overflow:visible; }
}
@media(min-width:681px) and (max-width:900px){
  .experience-viewer { grid-template-columns:1fr 1fr; }
  .experience-media { aspect-ratio:auto;min-height:350px; }
  .residence-explorer { grid-template-columns:1.1fr 1fr; }
  .residence-features { grid-template-columns:1fr; }
  .explorer-media-stage { height:270px; }
}
@media(prefers-reduced-motion:reduce){
  html { scroll-behavior:auto; scroll-snap-type:none; }
  *,*::before,*::after { animation:none!important;transition:none!important; }
}
