/* =====================================================================
   HERO 1: full-bleed slider — brand plate, sunset, Grand Salon
   ===================================================================== */
body.p6 .p6-hero1 { height: calc(100svh - var(--hdr)); }
body.p6 .p6-hero1__slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s ease; }
body.p6 .p6-hero1__slide.is-active, body:not(.p6-js) .p6-hero1__slide:first-child { opacity: 1; visibility: visible; z-index: 1; }
body.p6 .p6-hero1__img { transform: scale(1.04); transition: transform 7s ease-out; }
body.p6 .p6-hero1__img--top { object-position: center 30%; }
body.p6 .p6-hero1__slide.is-active .p6-hero1__img { transform: none; }
body.p6 .p6-hero1__scrim { background: linear-gradient(180deg, rgba(14, 51, 43, .45) 0%, rgba(14, 51, 43, .1) 36%, rgba(14, 51, 43, .86) 100%); }
body.p6 .p6-hero1__caption { transform: translateY(22px); opacity: 0; transition: transform .8s ease .15s, opacity .8s ease .15s; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
body.p6 .p6-hero1__slide.is-active .p6-hero1__caption { transform: none; opacity: 1; }
body.p6 .p6-hero1__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
body.p6 .p6-hero1__slide--brand { background: radial-gradient(80% 70% at 50% 38%, rgba(198, 138, 46, .16), transparent 68%), linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%); }
body.p6 .p6-hero1__slide--brand::before { content: ""; position: absolute; inset: 0; background-image: var(--dots-green); background-size: 34px 34px; }
body.p6 .p6-brandplate__logo { transform: translateY(22px) scale(.97); opacity: 0; transition: transform 1.15s var(--ease) .1s, opacity 1.1s ease .1s; }
body.p6 .p6-hero1__slide--brand.is-active .p6-brandplate__logo, body:not(.p6-js) .p6-brandplate__logo { transform: none; opacity: 1; }
body.p6 .p6-brandplate .p6-notice { margin-top: 2px; }

/* controls are built by p6.js */
.p6-hero1__arrow {
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid rgba(244, 237, 223, .4); border-radius: 50%; background: rgba(14, 51, 43, .35); color: #F4EDDF;
  transition: background-color .25s, border-color .25s, color .25s;
}
.p6-hero1__arrow svg, .p6-ui svg { width: 18px; height: 18px; display: block; }
.p6-ui svg path, .p6-hero1__arrow svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p6-hero1__arrow:hover { background: #C68A2E; border-color: #E7BC63; color: #0E332B; }
.p6-hero1__arrow--prev { left: clamp(12px, 2.5vw, 32px); }
.p6-hero1__arrow--next { right: clamp(12px, 2.5vw, 32px); }
.p6-hero1[data-light] .p6-hero1__arrow { background: transparent; border-color: rgba(21, 69, 59, .3); color: #15453B; }
.p6-hero1[data-light] .p6-hero1__arrow:hover { background: #15453B; color: #F4EDDF; }
.p6-hero1__nav { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 40px); display: flex; align-items: center; gap: 22px; }
.p6-hero1__count { flex: none; min-width: 72px; font: 500 17px/1 var(--display); letter-spacing: .12em; color: rgba(244, 237, 223, .85); }
.p6-hero1__count b { font-weight: 600; color: #E7BC63; }
.p6-hero1__rail { position: relative; flex: 1; height: 26px; display: flex; align-items: center; }
.p6-hero1__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 237, 223, .4) 12%, rgba(244, 237, 223, .4) 88%, transparent); }
.p6-hero1__dots { position: relative; display: flex; justify-content: space-between; width: 100%; }
.p6-hero1__dot { padding: 10px 4px; border: 0; background: none; cursor: pointer; }
.p6-hero1__dot:hover, .p6-hero1__dot:focus { background: none; }
.p6-hero1__dot svg { display: block; width: 30px; height: 15px; }
.p6-hero1__dot path { fill: none; stroke: rgba(244, 237, 223, .55); stroke-width: 3; stroke-linecap: round; transition: stroke .3s; }
.p6-hero1__dot[aria-current="true"] path { stroke: #C68A2E; }
.p6-hero1__diamond { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; background: #C68A2E; transform: translate(-50%, -50%) rotate(45deg); transition: left .7s cubic-bezier(.16, .8, .3, 1); }
.p6-hero1[data-light] .p6-hero1__count { color: #5B5147; }
.p6-hero1[data-light] .p6-hero1__count b { color: #A2472A; }
.p6-hero1[data-light] .p6-hero1__rail::before { background: linear-gradient(90deg, transparent, rgba(36, 31, 26, .14) 12%, rgba(36, 31, 26, .14) 88%, transparent); }
.p6-hero1[data-light] .p6-hero1__dot path { stroke: rgba(21, 69, 59, .3); }
.p6-hero1[data-light] .p6-hero1__dot[aria-current="true"] path { stroke: #C68A2E; }
@media (max-width: 720px) {
  body.p6 .p6-hero1 { height: calc(100svh - var(--hdr) - 68px); }
  .p6-hero1__arrow { display: none; }
  body.p6 .p6-hero1__slide--brand { padding-bottom: 96px; }
  body.p6 .p6-brandplate { gap: 14px; }
  body.p6 .p6-brandplate__eyebrow { font-size: 11px; letter-spacing: .2em; }
}

/* =====================================================================
   AT A GLANCE
   ===================================================================== */
body.p6 .p6-glance__item:first-child { border-left: 0; }
body.p6 .p6-glance__num { font-variant-numeric: lining-nums; }
@media (max-width: 600px) {
  body.p6 .p6-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.p6 .p6-glance__item:nth-child(3) { border-left: 0; }
  body.p6 .p6-glance__item:nth-child(n+3) { border-top: 1px solid var(--gold-line); }
}

/* =====================================================================
   HERO 2: headline + facts + arched window slider
   ===================================================================== */
body.p6 .p6-hero2 { background-image: var(--dots-green); background-size: 30px 30px; }
body.p6 .p6-hero2__fact::before { content: ""; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%; background: var(--gold); flex: none; }
body.p6 .p6-window__frame { border-radius: var(--arch); }
body.p6 .p6-window__slide { opacity: 0; transition: opacity 1.1s ease; }
body.p6 .p6-window__slide.is-active, body:not(.p6-js) .p6-window__slide:first-child { opacity: 1; }
body.p6 .p6-window__img { transform: scale(1.06); transition: transform 8s ease-out; }
body.p6 .p6-window__slide.is-active .p6-window__img { transform: scale(1); }
body.p6 .p6-window__t, body.p6 .p6-window__d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p6-window__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.p6-window__caption { flex: 1; min-width: 0; margin: 0; font-size: 14px; color: #5B5147; }
.p6-window__caption b { display: block; font: 500 22px/1.2 var(--display); color: #0E332B; }
.p6-window__caption span { display: block; }
.p6-suns { display: flex; gap: 2px; }
.p6-sun-dot { width: 40px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: rgba(21, 69, 59, .3); }
.p6-sun-dot:hover, .p6-sun-dot:focus { background: none; color: rgba(21, 69, 59, .5); }
.p6-sun-dot svg { width: 26px; height: 13px; }
.p6-sun-dot path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.p6-sun-dot[aria-current="true"], .p6-sun-dot[aria-current="true"]:hover { color: #C68A2E; }
@media (max-width: 860px) {
  body.p6 .p6-hero2__grid { grid-template-columns: 1fr; }
  body.p6 .p6-window__frame { aspect-ratio: 5 / 5.4; }
}
@media (max-width: 600px) { .p6-window__caption { flex-basis: 100%; } .p6-suns { margin-right: auto; } }

/* =====================================================================
   DOOR 1: the street door opens as you scroll
   ===================================================================== */
body.p6 .p6-door1__leaves { display: none; }
body.p6 .p6-door1__caption { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
html.p6-door1-anim body.p6 .p6-door1 { height: 240svh; }
html.p6-door1-anim body.p6 .p6-door1__stage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); min-height: 0; perspective: 140vw; }
html.p6-door1-anim body.p6 .p6-door1__view { transform: scale(calc(1.12 - .12 * var(--p, 0))); }
html.p6-door1-anim body.p6 .p6-door1__leaves { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; transform-style: preserve-3d; padding: 0; }
html.p6-door1-anim body.p6 .p6-door1__leaves .p6-leaf--l { transform: rotateY(calc(var(--p, 0) * 92deg)); }
html.p6-door1-anim body.p6 .p6-door1__leaves .p6-leaf--r { transform: rotateY(calc(var(--p, 0) * -92deg)); }
html.p6-door1-anim body.p6 .p6-door1__caption { opacity: clamp(0, calc((var(--p, 0) - .55) * 3), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - .55) * 3), 1)) * 2rem)); }
body.p6 .p6-door1__plaque { top: 7%; opacity: calc(1 - var(--p, 0) * 4); }
body.p6 .p6-door1__hint { translate: -50% 0; opacity: calc(1 - var(--p, 0) * 4); --icon: var(--i-down); }
body.p6 .p6-door1__hint::after { width: 20px; height: 20px; animation: p6-nudge 1.8s ease-in-out infinite; }
@keyframes p6-nudge { 50% { transform: translateY(5px); } }
@media (max-width: 640px) { body.p6 .p6-door1__plaque { font-size: 10px; } }

/* =====================================================================
   THE HOUSE: split + collage, horizon mark
   ===================================================================== */
body.p6 .p6-collage__a { grid-row: span 2; }
body.p6 .p6-collage__a .p6-collage__img { height: 100%; min-height: 460px; border-radius: var(--arch-soft); }
body.p6 :is(.p6-collage__b, .p6-collage__c) .p6-collage__img { height: clamp(170px, 16vw, 220px); }
body.p6 .p6-house__text .p6-muted { max-width: 34em; }
body.p6 .p6-horizon__line { background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent); }
@media (max-width: 860px) { body.p6 .p6-house__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  body.p6 .p6-collage { grid-template-columns: 1fr 1fr; }
  body.p6 .p6-collage__a { grid-column: 1 / -1; grid-row: auto; }
  body.p6 .p6-collage__a .p6-collage__img { min-height: 0; height: 300px; }
  body.p6 :is(.p6-collage__b, .p6-collage__c) .p6-collage__img { height: 170px; }
}

/* =====================================================================
   ROOMS (index): plaque list + arched view
   ===================================================================== */
body.p6 .p6-room-row:hover { background: rgba(250, 246, 238, .6); }
body.p6 .p6-room-row .p6-badge { grid-row: 1 / span 2; background: var(--paper); color: var(--green); outline-color: var(--green); transition: background-color .3s, color .3s, outline-color .3s; }
body.p6 .p6-room-row.is-on .p6-badge { background: var(--green); color: var(--gold-l); outline-color: var(--gold-l); }
body.p6 .p6-room-row__name span { margin-left: 8px; font-family: var(--arabic); font-size: 15px; color: var(--gold); }
body.p6 .p6-room-row.is-on .p6-room-row__name { color: var(--green); }
body.p6 .p6-rooms__view { border-radius: var(--arch); }
body.p6 .p6-rooms__view::after { display: none; }
body.p6 .p6-rooms__img { border-radius: var(--arch); opacity: 0; transition: opacity .7s ease; }
body.p6 .p6-rooms__img.is-on, body:not(.p6-js) .p6-rooms__img:first-child { opacity: 1; }
@media (max-width: 860px) {
  body.p6 .p6-rooms__grid { grid-template-columns: 1fr; }
  body.p6 .p6-rooms__figure { order: -1; }
  body.p6 .p6-rooms__view { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 600px) { body.p6 .p6-room-row__name { font-size: 22px; } body.p6 .p6-room-row__name span { display: inline-block; } }

/* shared by the two room carousels */
body.p6 .p6-scroll-track { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
body.p6 .p6-scroll-track > * { scroll-snap-align: start; min-width: 0; }

/* =====================================================================
   ROOMS · CARDS: five arched cards + feature strip
   ===================================================================== */
body.p6 .p6-rcards::before, body.p6 .p6-rcards::after { content: ""; position: absolute; z-index: -1; pointer-events: none; background: no-repeat center / contain; }
body.p6 .p6-rcards::before { left: -40px; bottom: -70px; width: clamp(180px, 20vw, 280px); aspect-ratio: 320 / 420; opacity: .28; }
body.p6 .p6-rcards::after { right: -36px; bottom: -24px; width: clamp(200px, 22vw, 320px); aspect-ratio: 320 / 360; opacity: .5; }
body.p6 .p6-rcards__track { --gap: clamp(14px, 1.6vw, 22px); gap: var(--gap); grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); scrollbar-width: none; }
body.p6 .p6-rcards__track::-webkit-scrollbar { display: none; }
body.p6 .p6-rcard2:hover { transform: translateY(-4px); box-shadow: 0 22px 34px -22px rgba(36, 31, 26, .5); }
body.p6 .p6-rcard2__photo { border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
body.p6 .p6-rcard2__no { font-variant-numeric: lining-nums; }
body.p6 .p6-rcard2__body::after { grid-column: 2; grid-row: 2; width: 18px; height: 18px; color: var(--green); }
body.p6 .p6-rcard2:hover .p6-rcard2__body::after { transform: translateX(3px); }
body.p6 .p6-rcard2__name a { color: inherit; }
body.p6 .p6-rcard2__name a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
body.p6 .p6-rfeat + .p6-rfeat::before { content: ""; position: absolute; top: 18px; left: calc(clamp(48px, 6vw, 96px) / -2 - 4px); width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
@media (max-width: 1100px) { body.p6 .p6-rcards__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 760px) {
  body.p6 .p6-rcards__track { grid-auto-columns: 72%; }
  body.p6 .p6-rcards__ctrl .p6-icon-btn { display: none; }
  body.p6 .p6-rcards__ctrl .p6-textlink { margin-right: 0; }
  body.p6 .p6-rcards__features { grid-template-columns: 1fr; }
  body.p6 .p6-rfeat + .p6-rfeat::before { top: -22px; left: 18px; }
  body.p6 .p6-rcards::before { opacity: .18; }
  body.p6 .p6-rcards::after { width: 170px; opacity: .35; }
}
