/* ================================
   CASTELL HOUSE — CLEAN STYLESHEET
   ================================ */

@font-face{
  font-family:PPFragmentGlare;
  src:url('./fonts/PPFragment-GlareRegular.otf') format('opentype');
  font-weight:400;
  font-style:normal;
  font-display:swap
}

 :root{
  --cream:#f3efe2;
  --cream2:#fffaf0;
  --olive:#857f3c;
  --brown:#3f2c28;
  --wine:#781d1d;
  --charcoal:#171512;
  --ink:#2c211e;
  --white:#fffaf0;
  --serif:PPFragmentGlare, Didot, "Times New Roman", serif;
  --sans:Inter, Avenir, Helvetica, Arial, sans-serif;
  --ease:cubic-bezier(.22, .61, .36, 1)
}

 *{
  box-sizing:border-box
}

html{
  scroll-behavior:auto;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  overflow-x:hidden
}

img{
  display:block;
  max-width:100%
}

a{
  color:inherit
}

.grain{
  position:fixed;
  inset:0;
  z-index:80;
  pointer-events:none;
  opacity:.04;
  background-image:radial-gradient(#000 1px, transparent 1px);
  background-size:5px 5px;
  mix-blend-mode:multiply
}

 .chapter{
  position:relative;
  min-height:100vh;
  overflow:hidden
}

.header-dark{
  background:var(--charcoal);
  color:var(--white)
}

.header-light{
  background:var(--cream);
  color:var(--ink)
}

.shade{
  position:absolute;
  inset:0;
  background:linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .42));
  z-index:1;
  pointer-events:none
}

.shade-hero{
  background:linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .16) 55%, rgba(0, 0, 0, .46))
}

.chapter-no{
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:12px;
  font-weight:600
}

h1, h2, h3{
  font-family:var(--serif);
  font-weight:400;
  letter-spacing:-.04em
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:15px 22px;
  background:var(--cream2);
  color:var(--ink);
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:12px;
  font-weight:600;
  border:1px solid transparent
}

.hero-image, .chapter-cover>img, .club-hero>img, .club-story>img, .final-cta>img, .club-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}

.hero-sequence{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:17vh 8vw 12vh;
  max-width:960px
}

.hero-kicker{
  margin:0 0 22px;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:12px;
  font-weight:600
}

.hero-title{
  font-size:clamp(62px, 10vw, 150px);
  line-height:.82;
  margin:0 0 28px;
  max-width:8.5ch
}

.hero-line{
  font-family:var(--serif);
  font-size:clamp(22px, 3vw, 38px);
  line-height:1.18;
  max-width:680px;
  margin:0
}

.reveal-seq{
  opacity:0;
  transform:translateY(18px);
  animation:seqIn 1.25s var(--ease) forwards
}

.seq-1{
  animation-delay:.6s
}

.seq-2{
  animation-delay:1.55s
}

.seq-3{
  animation-delay:2.5s
}

@keyframes seqIn{
  to{
  opacity:1;
  transform:translateY(0)
}

}

.scroll-cue{
  position:absolute;
  right:34px;
  bottom:30px;
  z-index:2;
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.2em;
  color:var(--white);
  opacity:.78
}

 .chapter-copy{
  position:relative;
  z-index:2;
  padding:0 8vw 12vh;
  max-width:940px;
  align-self:flex-end
}

.chapter-copy h2{
  font-size:clamp(54px, 8vw, 122px);
  line-height:.86;
  margin:18px 0 24px
}

.chapter-copy p{
  font-family:var(--serif);
  font-size:clamp(22px, 2.5vw, 36px);
  line-height:1.26;
  max-width:620px
}

.chapter-cover{
  display:flex;
  align-items:flex-end
}

 .map-chapter{
  background:var(--olive);
  color:var(--white);
  padding:10vh 6vw 12vh;
  min-height:100vh
}

.map-heading{
  display:grid;
  grid-template-columns:300px 1fr 1.1fr 1.25fr;
  gap:5vw;
  align-items:end;
  margin-bottom:56px
}

.map-heading h2{
  font-size:clamp(54px, 9vw, 138px);
  line-height:.82;
  margin:0
}

.map-heading p{
  font-size:16px;
  line-height:1.65;
  max-width:440px
}

.map-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(300px, .62fr);
  gap:48px;
  align-items:start
}

.map-frame{
  position:relative;
  background:var(--olive);
  overflow:hidden
}

.map-frame img{
  width:100%;
  height:auto
}

.map-pin-layer{
  position:absolute;
  inset:0;
  pointer-events:none
}

.map-pin{
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:20px;
  height:20px;
  border:0;
  border-radius:50%;
  transform:translate(-50%, -50%) scale(.45);
  opacity:0;
  color:#fff;
  font:700 10px/1 var(--sans);
  transition:opacity .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  pointer-events:none;
  display:grid;
  place-items:center
}

.map-pin.is-active{
  opacity:1;
  transform:translate(-50%, -50%) scale(1);
  box-shadow:0 6px 16px rgba(0, 0, 0, .25)
}

.map-pin.hotel, .dot.hotel{
  background:#e5c400
}

.map-pin.museum, .dot.museum{
  background:#e67821
}

.map-pin.embassy, .dot.embassy{
  background:#79acd9
}

.map-pin.commerce, .dot.commerce{
  background:#20ad52
}

.map-pin.place, .dot.place{
  background:#8d1820
}

.map-accordion-item{
  width:100%;
  border:0;
  border-top:1px solid rgba(255, 250, 240, .35);
  background:transparent;
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:23px 0;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:14px;
  cursor:pointer
}

.map-accordion-item span{
  display:flex;
  gap:14px;
  align-items:center
}

.map-accordion-item b{
  font-size:24px;
  font-weight:300;
  transition:transform .2s var(--ease)
}

.map-accordion-item[aria-expanded=true] b{
  transform:rotate(45deg)
}

.dot{
  width:16px;
  height:16px;
  border-radius:50%;
  display:inline-block;
  flex:0 0 16px
}

.map-accordion-panel{
  display:none;
  padding:0 0 22px 32px;
  color:rgba(255, 250, 240, .88)
}

.map-accordion-panel.is-open{
  display:block
}

.map-accordion-panel ol{
  margin:0;
  padding-left:18px;
  font-size:13px;
  line-height:1.55
}

 .building{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:6vw;
  padding:10vh 8vw;
  background:var(--brown);
  color:var(--white);
  overflow:visible
}

.sticky-copy{
  position:sticky;
  top:120px;
  align-self:start;
  height:max-content
}

.sticky-copy h2{
  font-size:clamp(46px, 6.5vw, 108px);
  line-height:.9;
  margin:18px 0
}

.sticky-copy p{
  font-size:17px;
  line-height:1.7
}

.building-scenes{
  display:grid;
  gap:12vh
}

.scene{
  margin:0
}

.scene img{
  height:72vh;
  width:100%;
  object-fit:cover
}

.scene figcaption{
  font-family:var(--serif);
  font-size:clamp(24px, 3vw, 44px);
  margin:20px 0 0
}

 .light-chapter{
  background:var(--cream);
  color:var(--ink);
  padding:12vh 8vw;
  min-height:100vh
}

#residencias{
  padding-bottom:2vh;
}

.residence-heading{
  max-width:980px;
  margin-bottom:56px
}

.residence-heading h2{
  font-size:clamp(50px, 8vw, 120px);
  line-height:.86;
  margin:18px 0 24px
}

.residence-heading p{
  font-size:17px;
  line-height:1.7;
  max-width:650px
}

.residence-ui{
  border-top:1px solid rgba(44, 33, 30, .18)
}

.residence-tabs{
  display:flex;
  gap:0;
  border-bottom:1px solid rgba(44, 33, 30, .18);
  overflow:auto
}

.res-tab{
  background:transparent;
  color:inherit;
  border:0;
  border-right:1px solid rgba(44, 33, 30, .18);
  padding:22px 28px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  cursor:pointer;
  white-space:nowrap
}

.res-tab.is-active{
  background:var(--brown);
  color:var(--white)
}

.residence-display{
  display:grid;
  grid-template-columns:.34fr .66fr;
  gap:5vw;
  align-items:start;
  padding-top:42px;
}

.residence-images{
  display:block;
}

.residence-copy h3{
  font-family:var(--serif);
  font-size:clamp(32px, 4vw, 60px);
  font-weight:400;
  line-height:.95;
  margin:18px 0
}

.residence-copy p{
  line-height:1.7
}

.residence-plan{
  width:100%;
  height:auto;
  margin-top:0;
  object-fit:contain;
  background:transparent;
  transition:opacity .18s var(--ease);
}

.residence-plan.is-changing{
  opacity:.25;
}

.residence-horizontal-gallery{
  background:var(--cream);
  padding:4vh 0 14vh;
  overflow:hidden;
}

.residence-horizontal-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 8vw;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.residence-horizontal-track::-webkit-scrollbar{
  display:none;
}

.residence-horizontal-track img,
.residence-horizontal-track video{
  flex:0 0 clamp(220px,24vw,380px);
  height:52vh;
  object-fit:cover;
  scroll-snap-align:start;
}

 .penthouse-scroll{
  position:relative;
  background:var(--charcoal);
  color:var(--white);
  overflow:visible
}

.horizontal-sticky{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden
}

.horizontal-intro{
  padding:0 8vw 36px;
  max-width:760px
}

.horizontal-intro h2{
  font-size:clamp(42px, 6vw, 92px);
  line-height:.88;
  margin:14px 0
}

.horizontal-track{
  display:flex;
  gap:26px;
  padding:0 8vw;
  will-change:transform;
  transition:transform 1s cubic-bezier(.22,.61,.36,1);
}

.horizontal-track figure{
  flex:0 0 clamp(760px, 78vw, 1320px);
}

.horizontal-track img{
  width:100%;
  aspect-ratio:16 / 9;
  height:auto;
  object-fit:cover;
}

.horizontal-track figcaption{
  margin-top:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px
}

.horizontal-progress{
  position:absolute;
  left:8vw;
  right:8vw;
  bottom:34px;
  height:1px;
  background:rgba(255, 255, 255, .22)
}

.horizontal-progress span{
  display:block;
  height:100%;
  width:0;
  background:var(--white)
}

 .club{
  background:var(--charcoal);
  color:var(--white);
  padding-top:14vh
}
.club-video-reveal{
  min-height:120vh;
  height:120vh;
  background:transparent;
  overflow:hidden;
  pointer-events:none;
}

.final-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--charcoal);
  color:var(--white)
}

.final-copy{
  position:relative;
  z-index:2;
  padding:12vh 8vw
}

.final-copy h2{
  font-size:clamp(54px, 8vw, 132px);
  line-height:.85;
  margin:0 0 22px
}

.final-copy p{
  font-family:var(--serif);
  font-size:30px;
  max-width:780px
}

.final-copy .button{
  margin-top:24px
}

.parallax-text{
  will-change:transform
}

 /* Letter chapter */
 .letter-chapter{
   display:flex;
   align-items:center;
   justify-content:center;
   background:var(--cream);
   color:var(--wine);
   padding:12vh 8vw;
}

 .letter-copy{
   max-width:980px;
   text-align:center;
   margin:0 auto; 
}

 .letter-copy h2{
   font-family:var(--serif);
   font-size:clamp(52px, 8vw, 126px);
   line-height:.86;
   font-weight:400;
   letter-spacing:-.04em;
   margin:18px 0 28px;
}

 .letter-copy p{
   font-family:var(--serif);
   font-size:clamp(24px, 3vw, 42px);
   line-height:1.22;
   max-width:860px;
   margin:32px auto 0;
}

/* Narrative spacing refinements */
 .hero-sequence{
   justify-content:flex-end;
   padding-bottom:14vh;
   max-width:760px;
}

 .hero-title{
   font-size:clamp(48px, 7vw, 104px);
   max-width:10ch;
}

 .hero-line{
   font-size:clamp(18px, 2vw, 30px);
   opacity:.88;
}

 .hero-kicker{
   opacity:.82;
}

 .letter-chapter{
   min-height:auto;
   padding:0 8vw 8vh;
   align-items:flex-start;
}

 .letter-copy{
   padding-top:0;
}

 .letter-copy .chapter-no{
   display:block;
   margin-bottom:34px;
}

 .letter-copy h2{
   margin-bottom:46px;
}

 .letter-copy p{
   max-width:920px;
}

 .pause-chapter{
   display:flex;
   align-items:center;
   min-height:115vh;
   padding:12vh 8vw;
}

 .pause-olive{
  background:var(--olive);
  color:var(--white)
}

 .pause-cream{
  background:var(--cream2);
  color:var(--ink)
}

 .pause-dark{
  background:var(--charcoal);
  color:var(--white)
}

 .pause-copy{
   max-width:980px;
}

 .pause-copy h2{
   font-family:var(--serif);
   font-size:clamp(54px, 9vw, 138px);
   line-height:.82;
   font-weight:400;
   letter-spacing:-.045em;
   margin:24px 0 34px;
   max-width:9.5ch;
}

 .pause-copy p{
   font-family:var(--serif);
   font-size:clamp(22px, 2.7vw, 40px);
   line-height:1.2;
   max-width:760px;
   margin:0;
   opacity:.86;
}

 .chapter-cover .chapter-copy{
   padding-bottom:16vh;
   max-width:860px;
}

 .chapter-copy h2{
   max-width:9.2ch;
}

 .chapter-copy p{
   opacity:.88;
}

 .map-chapter{
   padding-top:16vh;
   padding-bottom:16vh;
}

 .map-heading{
   margin-bottom:9vh;
}

 .map-heading h2{
   max-width:8.8ch;
}

 .map-layout{
   gap:7vw;
}

 .building{
   padding-top:16vh;
   padding-bottom:16vh;
}

 .building-scenes{
   gap:18vh;
}

 .scene img{
   height:78vh;
}

 .light-chapter{
   padding-top:16vh;
   padding-bottom:16vh;
}

 .residence-heading{
   margin-bottom:10vh;
}

 .residence-heading h2{
   max-width:8.5ch;
}

 .penthouse-scroll{
   margin-top:0;
}

 .horizontal-intro{
   padding-bottom:8vh;
}

 .horizontal-intro h2{
   max-width:8.5ch;
}

 .horizontal-track img{
   height:72vh;
}

 .club{
   padding-top:0;
}

 .club .chapter-copy{
   padding-bottom:16vh;
}

 .final-copy h2{
   margin-bottom:38px;
}

 .final-copy p{
   max-width:860px;
   margin-left:auto;
   margin-right:auto;
   opacity:.92;
}

 @media(max-width:980px){
   .pause-chapter{
  min-height:90vh;
  padding-left:24px;
  padding-right:24px
}

 .pause-copy h2{
  font-size:clamp(52px, 15vw, 92px)
}

 .letter-chapter{
  min-height:100vh
}

}


/* ================================
   CINEMATIC OPENING
   ================================ */

body:not(.intro-complete){
   overflow:hidden;
}

 .opening-veil{
   position:absolute;
   inset:0;
   z-index:110;
   overflow:hidden;
   display:block;
   background:#3e2c28;
   color:var(--white);
   animation:none;
   pointer-events:none;
}

 .opening-veil::before{
   content:"";
   position:absolute;
   inset:0;
   z-index:1;
   background-image:url("assets/img/trama-castell.svg");
   background-repeat:repeat;
   background-size:120px 120px;
   opacity:.18;
   pointer-events:none;
}

 .opening-logo-stack{
   position:absolute;
   left:50%;
   top:50%;
   z-index:2;
   transform:translate(-50%, -50%);
   display:flex;
   flex-direction:column;
   align-items:center;
   gap:clamp(26px, 4vh, 48px);
   opacity:1;
}

 .opening-logo-stack .opening-wordmark{
   width:clamp(300px, 38vw, 700px);
   height:auto;
   display:block;
}

 .opening-logo-stack .opening-symbol{
   width:clamp(74px, 8vw, 132px);
   height:auto;
   display:block;
   filter:drop-shadow(0 0 18px rgba(0, 0, 0, .3));
   position:relative;
   top:70px;
}

 .opening-media{
   position:absolute;
   inset:0;
   z-index:4;
   transform:translate3d(0, 105%, 0);
   animation:openingMediaRise 2.18s cubic-bezier(.77, 0, .18, 1) 1.05s forwards;
   overflow:hidden;
   background:#3e2c28;
   will-change:transform;
}

 .opening-video-loop{
   position:absolute;
   inset:0;
}

 .opening-video-loop video{
   position:absolute;
   inset:0;
   width:100%;
   height:100%;
   object-fit:cover;
}

 .opening-media-shade{
   position:absolute;
   inset:0;
   background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05) 48%, rgba(0, 0, 0, .18)), linear-gradient(0deg, rgba(0, 0, 0, .18), transparent 48%, rgba(0, 0, 0, .10));
}

 .opening-words{
   position:absolute;
   inset:0;
   z-index:5;
   pointer-events:none;
   font-family:var(--serif);
   text-transform:uppercase;
   letter-spacing:0;
   line-height:.82;
}

 .opening-word{
   position:absolute;
   display:block;
   width:fit-content;
   height:fit-content;
   overflow:hidden;
   opacity:1;
   transform:none;
   animation:none;
   text-shadow:0 18px 42px rgba(0, 0, 0, .32);
   font-size:clamp(42px, 6.2vw, 108px);
   line-height:.82;
}

 .opening-word > span{
   display:block;
   opacity:1;
   transform:translate3d(0, 200%, 0);
   animation:openingWordReveal .98s var(--ease) both;
}

 .opening-word-1{
   left:clamp(24px, 15vw, 260px);
   top:30vh;
}

 .opening-word-2{
   left:clamp(360px, 55vw, 950px);
   top:43vh;
}

 .opening-word-3{
   left:clamp(180px, 30vw, 520px);
   top:56vh;
   right:auto;
   bottom:auto;
}

 .opening-word-1 > span{
  animation-delay:2s
}

 .opening-word-2 > span{
  animation-delay:2.5s
}

 .opening-word-3 > span{
  animation-delay:3.0s
}

 .opening-note{
   position:absolute;
   z-index:6;
   top:auto;
   bottom:30px;
   max-width:360px;
   margin:0;
   color:rgba(255, 250, 240, .78);
   font-family:var(--serif);
   font-size:clamp(11px, .78vw, 14px);
   line-height:1.35;
   letter-spacing:0;
   opacity:0;
   transform:translateY(10px);
   animation:openingNoteIn .9s var(--ease) 5s forwards;
   text-shadow:0 8px 24px rgba(0, 0, 0, .35);
}

 .opening-note-left{
   left:34px;
   right:auto;
   max-width:230px;
}

 .opening-note-right{
   right:34px;
   left:auto;
   max-width:360px;
}

 @keyframes openingMediaRise{
   to{
  transform:translate3d(0, 0, 0)
}

}

 @keyframes openingWordReveal{
   from{
  transform:translate3d(0, 200%, 0)
}

 to{
  transform:translate3d(0, 0, 0)
}

}

 @keyframes openingNoteIn{
   to{
  opacity:1;
  transform:translateY(0)
}

}

/* The intro becomes the fixed hero background after the first sequence. */
 body.intro-complete .opening-veil{
   visibility:visible;
   opacity:1;
}

 .hero-sequence-hidden{
   display:none;
}

 .hero{
   background:#3e2c28;
   position:sticky;
   top:0;
   min-height:100vh;
   height:100vh;
   z-index:1;
}

 main > section:not(.hero){
   position:relative;
   z-index:2;
}

 .hero > .hero-image, .hero > .shade, .hero .scroll-cue{
   display:none;
}


/* ================================
   HEADER / NAVIGATION
   ================================ */

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:200;
  opacity:0;
  pointer-events:none;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  padding:26px 34px;
  color:var(--white);
  transition:opacity .75s var(--ease), color .45s var(--ease), background .45s var(--ease), padding .45s var(--ease);
}

body.intro-complete .site-header{
  opacity:1;
  pointer-events:auto;
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:0;
  background:linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.06) 72%, transparent);
  transition:opacity .45s var(--ease);
}

.site-header.header-on-light{
  color:var(--brown);
}

.site-header.header-on-light::before{
  opacity:0;
}

.site-nav{
  grid-column:2;
  justify-self:center;
  order:0;
  display:flex;
  align-items:center;
  gap:0;
  line-height:1;
  padding-top:2px;
  transform:translateY(10px);
}

.site-nav a{
  display:inline-flex;
  align-items:center;
  color:inherit;
  text-decoration:none;
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.15em;
  font-weight:600;
  text-shadow:0 0 16px rgba(0,0,0,.38), 0 1px 2px rgba(0,0,0,.3);
}

.site-header.header-on-light .site-nav a{
  color:var(--brown);
  text-shadow:none;
}

.site-header.header-on-light .site-nav a + a::before{
  color:var(--brown);
}

.site-nav a + a::before{
  content:"·";
  margin:0 13px;
  opacity:.62;
}

.brand{
  grid-column:1;
  justify-self:start;
  align-self:start;
  position:relative;
  left:auto;
  top:auto;
  transform:none;
  order:0;
  text-decoration:none;
  opacity:1;
  pointer-events:auto;
  width:34px;
}

.brand-stack{
  display:block;
  width:34px;
}

.brand img{
  width:auto;
  display:block;
  object-fit:contain;
  transition:opacity .55s var(--ease), max-height .55s var(--ease), transform .55s var(--ease), width .55s var(--ease), filter .45s var(--ease);
  filter:drop-shadow(0 0 12px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

.site-header .brand-wordmark{
  display:none;
}

.site-header .brand-symbol{
  display:block;
  opacity:1;
  width:34px;
  height:auto;
  max-height:none;
  transform:translateY(-10px);
  filter:drop-shadow(0 0 12px rgba(0,0,0,.35));
}

.site-header.header-on-light .brand-symbol{
  filter:brightness(0) saturate(100%) invert(13%) sepia(19%) saturate(644%) hue-rotate(328deg) brightness(90%) contrast(86%);
}

.enquire{
  grid-column:3;
  justify-self:end;
  order:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#111;
  border:none;
  border-radius:0;
  padding:9px 14px;
  margin-top:0;
  transform:translateY(-10px);
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  text-shadow:none;
  transition:background .25s var(--ease), color .25s var(--ease);
}

.enquire:hover{
  background:#f4efe8;
}

.site-header.header-on-light .enquire{
  background:#111;
  color:#fff;
}

.site-header.header-on-light .enquire:hover{
  background:#3f2c28;
}


.mobile-menu-toggle{
  display:none;
}


/* ================================
   RESPONSIVE
   ================================ */

@media(max-width:980px){
  /* Header móvil */
  .site-header{
    display:grid;
    grid-template-columns:auto 1fr;
    row-gap:0;
    padding:20px;
    align-items:start;
    background:transparent;
  }

  .brand{
    position:fixed;
    left:20px;
    top:20px;
    grid-column:1;
    justify-self:start;
    width:30px;
    z-index:260;
  }

  .brand-stack{
    width:30px;
  }

  .site-header .brand-symbol{
    width:30px;
    max-height:38px;
    transform:none;
  }

  .mobile-menu-toggle{
    display:inline-flex;
    position:fixed;
    right:20px;
    top:20px;
    z-index:260;

    align-items:center;
    justify-content:center;
    background:#fff;
    color:#111;
    border:0;
    border-radius:0;
    padding:8px 10px;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:9px;
    font-weight:600;
    line-height:1;
    text-shadow:none;
    cursor:pointer;
  }

  .site-header.header-on-light .mobile-menu-toggle{
    background:#111;
    color:#fff;
  }

  .site-header .site-nav,
  .site-header .enquire{
    display:none;
  }

  .site-header.is-menu-open::before{
    opacity:0;
  }

  .site-header.is-menu-open .site-nav{
    position:fixed;
    top:62px;
    right:20px;
    z-index:250;

    display:flex;
    width:auto;
    max-width:none;
    overflow:visible;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;

    padding:0;
    transform:none;
  }

  .site-header.is-menu-open .site-nav a,
  .site-header.is-menu-open .enquire{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    background:#fff;
    color:#111;
    border:0;
    border-radius:0;
    padding:8px 10px;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:9px;
    font-weight:600;
    line-height:1;
    text-decoration:none;
    text-shadow:none;
    white-space:nowrap;
    box-shadow:none;
  }

  .site-header.header-on-light.is-menu-open .site-nav a,
  .site-header.header-on-light.is-menu-open .enquire{
    background:#111;
    color:#fff;
  }

  .site-header.is-menu-open .site-nav a + a::before{
    display:none;
  }

  .site-header.is-menu-open .enquire{
    position:fixed;
    top:230px;
    right:20px;
    z-index:250;

    margin:0;
    transform:none;
  }

  .hero-sequence{
    padding:18vh 24px 10vh;
  }

  .hero-title{
    font-size:clamp(56px,17vw,86px);
  }

  .map-heading,
  .map-layout,
  .building,
  .residence-display,
  .ritual-heading{
    grid-template-columns:1fr;
  }

  .map-chapter,
  .building,
  .light-chapter{
    padding-left:24px;
    padding-right:24px;
  }

  .scene img,
  .residence-images img{
    height:auto;
    min-height:260px;
  }

  .residence-images{
    grid-template-columns:1fr;
  }

  .sticky-copy{
    position:relative;
    top:auto;
  }

  .building-scenes{
    gap:56px;
  }

  .ritual-grid{
    grid-template-columns:1fr;
  }

  .horizontal-sticky{
    position:relative;
    height:auto;
    padding:82px 0 104px;
  }

  .penthouse-scroll{
    height:auto!important;
  }

  .horizontal-track{
    overflow-x:auto;
    overflow-y:hidden;
    transform:none!important;
    scroll-snap-type:x mandatory;
    padding:0;
    gap:0;
    scrollbar-width:none;
  }

  .horizontal-track::-webkit-scrollbar{
    display:none;
  }

  .horizontal-track figure{
    flex:0 0 100vw;
    scroll-snap-align:center;
    margin:0;
  }

  .horizontal-track figure.is-portrait{
    flex-basis:74vw;
    padding:0 8px;
  }

  .horizontal-track img{
    width:100%;
    height:min(62vw, 64vh);
    object-fit:cover;
  }

  .horizontal-track figure.is-portrait img{
    height:66vh;
  }

  .horizontal-track figcaption{
    padding:12px 24px 0;
  }

  .horizontal-progress{
    display:block;
    left:24px;
    right:24px;
    bottom:42px;
  }

  .chapter-copy{
    padding-left:24px;
    padding-right:24px;
  }

  .chapter-copy h2{
    font-size:clamp(56px,15vw,94px);
  }

  .pause-chapter{
    min-height:90vh;
    padding-left:24px;
    padding-right:24px;
  }

  .pause-copy h2{
    font-size:clamp(52px,15vw,92px);
  }

  .letter-chapter{
    min-height:100vh;
  }

  .opening-logo-stack .opening-wordmark{
    width:clamp(260px,82vw,500px);
  }

  .opening-logo-stack .opening-symbol{
    width:clamp(56px,15vw,88px);
  }

  .opening-word{
    font-size:clamp(35px,9vw,72px);
  }

  .opening-word-1{
    left:22px;
    top:35vh;
  }

  .opening-word-2{
    left:100px;
    top:43vh;
  }

  .opening-word-3{
    left:10vw;
    top:51vh;
    right:auto;
    bottom:auto;
  }

  .opening-note{
    bottom:22px;
    font-size:12px;
  }

  .opening-note-left{
    left:22px;
    max-width:150px;
  }

  .opening-note-right{
    right:22px;
    max-width:190px;
  }
}

@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    transition-duration:.001ms!important;
    animation-duration:.001ms!important;
  }

  .parallax-text,
  .horizontal-track{
    transform:none!important;
  }
}


/* ================================
   INQUIRY / RESERVATION FLOW
   ================================ */

.inquiry-page{background:#3e2c28;color:var(--white);min-height:100vh}
.inquiry-page .site-header{opacity:1;pointer-events:auto;color:var(--white)}
.inquiry-page .site-header::before{opacity:0}
.inquiry-page .enquire{background:#fff;color:#111}
.inquiry-shell{min-height:100vh;background:#3e2c28;color:var(--white);display:flex;align-items:center;justify-content:center;padding:16vh 8vw 10vh}
.inquiry-form{width:min(760px,100%)}
.inquiry-step{display:none;min-height:58vh;align-items:center;justify-content:center}
.inquiry-step.is-active{display:flex}
.inquiry-card{width:100%;text-align:center}
.inquiry-card h1{font-family:var(--serif);font-size:clamp(34px,4.2vw,64px);line-height:.9;letter-spacing:-.035em;font-weight:400;margin:18px auto 28px;max-width:760px}
.inquiry-card p{font-size:16px;line-height:1.55;max-width:520px;margin:0 auto 34px}
.inquiry-options{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:34px}
.inquiry-options button,.inquiry-button{appearance:none;border:1px solid rgba(255,250,240,.82);background:transparent;color:var(--white);min-width:210px;padding:20px 28px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease)}
.inquiry-options button:hover,.inquiry-button:hover,.inquiry-options button.is-selected{background:var(--white);color:#2c211e}
.inquiry-options-budget button{min-width:185px}
.inquiry-bedrooms{display:none}
.inquiry-bedrooms.is-active{display:flex}
.inquiry-card-form{text-align:left;max-width:720px;margin:0 auto}
.inquiry-card-form h1,.inquiry-card-form .chapter-no{text-align:center;display:block}
.inquiry-card-form label{display:block;margin:0 0 24px}
.inquiry-card-form label span{display:block;text-align:center;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:600;margin-bottom:10px}
.inquiry-card-form input,.inquiry-card-form select{width:100%;background:transparent;border:0;border-bottom:1px solid rgba(255,250,240,.78);color:var(--white);padding:12px 4px;font:inherit;text-align:center;outline:none}
.inquiry-card-form select option{color:#2c211e}
.inquiry-row{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px}
.inquiry-check{display:flex!important;gap:12px;align-items:center;justify-content:center;margin:30px 0!important}
.inquiry-check input{width:auto}
.inquiry-check span{margin:0!important;text-align:left!important;text-transform:none!important;letter-spacing:0!important;font-size:14px!important}
.inquiry-card-form .inquiry-button{display:flex;justify-content:center;width:min(360px,100%);margin:32px auto 0}
.inquiry-footer{position:fixed;left:8vw;right:8vw;bottom:28px;display:flex;justify-content:center;gap:18vw;align-items:center;color:var(--white);font-size:13px;font-weight:600;z-index:210}
.inquiry-footer button{appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.inquiry-footer button[disabled]{opacity:.28;cursor:default}

@media(max-width:980px){
  .inquiry-shell{padding:18vh 24px 12vh}
  .inquiry-options{flex-direction:column}
  .inquiry-options button,.inquiry-button{width:100%}
  .inquiry-row{grid-template-columns:1fr;gap:0}
  .inquiry-footer{left:24px;right:24px;justify-content:space-between;gap:0}
}

/* ================================
   SUBPAGES / PAGE STRUCTURE
   ================================ */


.subpage-intro-copy{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--cream);
  color:var(--ink);
  padding:7vh 8vw 8vh;
}

.subpage-intro-copy .letter-copy{
  max-width:980px;
  padding-top:0;
}



.subpage-hero{
  background:#3e2c28;
  color:var(--white);
}

.subpage-hero-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#3e2c28;
}

.subpage-hero-bg .opening-logo-stack{
  z-index:2;
}

.subpage-logo-text{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  transform:translate(-50%, -50%);
  font-family:var(--serif);
  font-size:clamp(42px, 8vw, 130px);
  line-height:.86;
  letter-spacing:-.045em;
  color:var(--white);
  text-align:center;
}

.subpage-hero-media{
  position:absolute;
  inset:0;
  z-index:4;
  transform:translate3d(0, 105%, 0);
  animation:openingMediaRise 2.18s cubic-bezier(.77, 0, .18, 1) .75s forwards;
  overflow:hidden;
  background:#3e2c28;
}

.subpage-hero-media video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.subpage-hero-title{
  position:relative;
  z-index:6;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:0 8vw 14vh;
  max-width:960px;
}

.subpage-hero-title h1{
  font-size:clamp(62px, 10vw, 150px);
  line-height:.82;
  margin:18px 0 0;
}

.building-plan-placeholder,
.club-plan-placeholder{
  display:grid;
  grid-template-columns:minmax(360px,.62fr) minmax(680px,1fr);
  gap:6vw;
  align-items:center;
  padding:14vh 8vw;
  background:var(--cream);
  color:var(--wine);
}

.club-plan-placeholder{
  color:var(--wine);
}

.building-plan-copy h2{
  font-size:clamp(48px, 7vw, 110px);
  line-height:.88;
  margin:18px 0 24px;
}

.building-plan-copy p{
  font-size:17px;
  line-height:1.7;
  max-width:520px;
}

.building-plan-frame{
  min-height:62vh;
  border:1px solid rgba(44,33,30,.22);
  display:grid;
  place-items:center;
  background:rgba(255,250,240,.55);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:12px;
  font-weight:600;
  color:rgba(44,33,30,.62);
}

.header-light.penthouse-scroll{
  background:var(--cream);
  color:var(--ink);
}

.header-light .horizontal-progress{
  background:rgba(44,33,30,.22);
}

.header-light .horizontal-progress span{
  background:var(--ink);
}

.site-footer{
  position:relative;
  z-index:2;
  padding:12vh 8vw 8vh;
  background:var(--charcoal);
  color:var(--white);
}

.site-footer-main{
  display:grid;
  grid-template-columns:1.2fr .55fr .45fr;
  gap:6vw;
  align-items:start;
}

.site-footer h2{
  font-size:clamp(42px, 6vw, 94px);
  line-height:.88;
  max-width:720px;
  margin:18px 0 0;
}

.site-footer p{
  margin:0 0 10px;
  line-height:1.55;
}

.site-footer-links{
  display:grid;
  gap:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  font-weight:600;
}

.site-footer a{
  text-decoration:none;
}

.site-footer-button{
  margin-top:8vh;
  border-radius:0;
  background:var(--white);
  color:var(--ink);
}

@media(max-width:980px){
  .building-plan-placeholder,
  .club-plan-placeholder,
  .site-footer-main{
    grid-template-columns:1fr;
  }

  .building-plan-placeholder,
  .club-plan-placeholder{
    padding-left:24px;
    padding-right:24px;
  }

  .subpage-hero-title{
    padding-left:24px;
    padding-right:24px;
  }

  .subpage-hero-title h1{
    font-size:clamp(56px, 17vw, 94px);
  }
}

/* ================================
   INTERACTIVE BUILDING MAP
   ================================ */

.building-interactive{
  min-height:100vh;
  background:#3e2c28;
  color:var(--white);
  padding:11vh 8vw 0;
}

.building-interactive-copy{
  max-width:760px;
  margin:0 auto 54px;
  text-align:center;
}

.building-interactive-copy h2{
  font-size:clamp(48px, 7vw, 112px);
  line-height:.88;
  margin:18px auto 18px;
  max-width:9ch;
}

.building-interactive-copy p{
  font-family:var(--serif);
  font-size:clamp(19px, 2vw, 30px);
  line-height:1.22;
  max-width:520px;
  margin:0 auto;
  opacity:.82;
}

.building-interactive-layout{
  position:relative;
  width:min(1120px,100%);
  margin:0 auto;
  display:block;
  --building-info-y:50%;
}

.building-elevation-wrap{
  position:relative;
  width:min(620px, 100%);
  margin:0 auto;
}

.building-elevation{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:auto;
  opacity:.88;
  filter:drop-shadow(0 22px 55px rgba(0,0,0,.24));
}

.building-window-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  opacity:0;
  clip-path:inset(0 0 0 0);
  transition:opacity .24s var(--ease), clip-path .28s var(--ease);
}

.building-window-overlay.is-active{
  opacity:1;
}

.building-hotspots{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:3;
}

.building-zone{
  cursor:pointer;
  outline:none;
}

.building-zone .hit{
  fill:transparent;
}

.building-zone .mark{
  display:none;
}

.building-info-card{
  position:absolute;
  left:calc(50% + 300px);
  top:var(--building-info-y);
  transform:translateY(-50%);
  width:min(360px, calc(50vw - 110px));
  border-top:0;
  border-bottom:0;
  padding:18px 0 20px;
  transition:top .28s var(--ease);
}

.building-info-card .chapter-no,
.building-info-card p{
  display:none;
}

.building-info-card h3{
  display:block;
  margin:0;
  padding-right:118px;
  font-family:var(--serif);
  font-size:16px;
  line-height:1;
  font-weight:400;
  letter-spacing:0;
  color:var(--white);
}

.building-info-stats{
  display:grid;
  grid-template-columns:repeat(4,max-content);
  column-gap:42px;
  row-gap:18px;
  margin:18px 0 0;
  padding-top:16px;
  border-top:1px solid rgba(255,250,240,.25);
}

.building-info-stats span{
  display:block;
  margin-bottom:5px;
  white-space:nowrap;
  font-family:var(--serif);
  font-size:14px;
  line-height:1.1;
  color:rgba(255,250,240,.68);
}

.building-info-stats strong,
.building-info-stats .is-wide span{
  display:block;
  font-family:var(--serif);
  font-size:clamp(20px,1.5vw,28px);
  line-height:1.05;
  font-weight:400;
  color:var(--white);
}

.building-info-stats .is-wide{
  grid-column:2 / -1;
  align-self:end;
}

.building-info-stats .is-wide span{
  margin-bottom:0;
}

.building-info-button{
  position:absolute;
  top:18px;
  right:0;
  margin:0;
  appearance:none;
  border:0;
  background:transparent;
  color:var(--white);
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--serif);
  font-size:16px;
  line-height:1;
  cursor:pointer;
  opacity:.92;
  transition:opacity .24s var(--ease);
}

.building-info-button:disabled{
  opacity:.35;
  cursor:default;
}

.building-info-button:not(:disabled):hover{
  opacity:1;
}

.building-mobile-list{
  display:none;
}

.building-plan-modal{
  position:fixed;
  inset:0;
  z-index:500;
  display:none;
}

.building-plan-modal.is-open{
  display:block;
}

.building-plan-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(243,239,226,.92);
  backdrop-filter:blur(8px);
}

.building-plan-modal-panel{
  position:absolute;
  inset:5vh 5vw;
  background:var(--cream2);
  color:var(--ink);
  box-shadow:0 28px 90px rgba(0,0,0,.18);
  overflow:hidden;
}

.building-plan-modal-content{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.62fr);
  gap:5vw;
  align-items:center;
  padding:4vh 5vw;
}

.building-plan-image-shell{
  min-width:0;
  min-height:0;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  overflow:hidden;
}

#building-modal-image{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:calc(90vh - 8vh);
  object-fit:contain;
  object-position:left center;
  background:transparent;
  padding:0;
}

.building-plan-close{
  position:absolute;
  left:22px;
  bottom:22px;
  z-index:4;
  width:42px;
  height:42px;
  border:1px solid rgba(44,33,30,.55);
  border-radius:50%;
  background:transparent;
  color:var(--ink);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.building-plan-modal-info{
  border-top:1px solid rgba(44,33,30,.16);
  padding-top:34px;
  align-self:center;
}

.building-plan-modal-info .chapter-no{
  display:block;
  margin-bottom:14px;
  color:rgba(44,33,30,.72);
}

.building-plan-modal-info h3{
  font-family:var(--serif);
  font-size:clamp(46px,5vw,82px);
  line-height:.92;
  margin:0 0 24px;
}

.building-plan-modal-info p{
  max-width:520px;
  margin:0 0 34px;
  font-size:15px;
  line-height:1.65;
  color:rgba(44,33,30,.78);
}

.building-plan-modal-info dl{
  display:grid;
  gap:0;
  margin:0;
  border-top:1px solid rgba(44,33,30,.16);
}

.building-plan-modal-info dl div{
  display:flex;
  justify-content:space-between;
  gap:28px;
  padding:15px 0;
  border-bottom:1px solid rgba(44,33,30,.16);
}

.building-plan-modal-info dt,
.building-plan-modal-info dd{
  margin:0;
  font-size:13px;
  line-height:1.35;
}

.building-plan-modal-info dt{
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(44,33,30,.55);
}

.building-plan-modal-info dd{
  text-align:right;
  color:var(--ink);
  font-weight:600;
}

.building-plan-options{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.building-plan-options:empty{
  display:none;
}

.building-plan-options button{
  appearance:none;
  border:1px solid rgba(44,33,30,.28);
  background:transparent;
  color:var(--ink);
  padding:11px 13px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:10px;
  font-weight:600;
  cursor:pointer;
}

.building-plan-options button.is-active,
.building-plan-options button:hover{
  background:var(--ink);
  color:var(--white);
}

body.has-building-modal{
  overflow:hidden;
}

@media(max-width:980px){
  .building-interactive{
    padding:96px 24px 0;
  }

  .building-interactive-copy{
    margin-bottom:34px;
  }

  .building-interactive-layout{
    width:100%;
  }

  .building-elevation-wrap{
    width:100%;
  }

  .building-hotspots,
  .building-info-card{
    display:none;
  }

  .building-mobile-list{
    display:block;
    width:100%;
    margin-top:0;
    border-bottom:1px solid rgba(255,250,240,.42);
  }

  .building-mobile-row{
    appearance:none;
    width:100%;
    border:0;
    border-top:1px solid rgba(255,250,240,.42);
    background:transparent;
    color:var(--white);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    padding:17px 0;
    text-align:left;
    cursor:pointer;
  }

  .building-mobile-row span{
    display:grid;
    gap:4px;
  }

  .building-mobile-row strong{
    font-family:var(--serif);
    font-size:clamp(28px,8vw,38px);
    line-height:1;
    font-weight:400;
    letter-spacing:-.035em;
  }

  .building-mobile-row em{
    font-style:normal;
    text-transform:uppercase;
    letter-spacing:.16em;
    font-size:10px;
    font-weight:600;
    opacity:.72;
  }

  .building-mobile-row i{
    position:relative;
    flex:0 0 46px;
    width:46px;
    height:46px;
    border:1px solid rgba(255,250,240,.82);
    border-radius:50%;
    display:block;
    font-style:normal;
  }

  .building-mobile-row i::before,
  .building-mobile-row i::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:18px;
    height:1px;
    background:currentColor;
    transform:translate(-50%, -50%);
  }

  .building-mobile-row i::after{
    transform:translate(-50%, -50%) rotate(90deg);
  }

  .building-plan-modal-panel{
    inset:18px;
    overflow:auto;
  }

  .building-plan-modal-content{
    min-height:100%;
    height:auto;
    grid-template-columns:1fr;
    gap:28px;
    padding:56px 20px 92px;
  }

  .building-plan-image-shell{
    height:auto;
    justify-content:center;
  }

  #building-modal-image{
    max-height:52vh;
    object-position:center;
  }

  .building-plan-modal-info{
    padding-top:26px;
  }

  .building-plan-close{
    left:18px;
    bottom:18px;
  }
}

/* ================================
   AMBROSE-STYLE FOOTER REVEAL
   ================================ */

body{
  background:#3e2c28;
}

main{
  position:relative;
  z-index:1;
  background:var(--cream);
  margin-bottom:100vh;
}

.footer-ambrose{
  min-height:100vh;
  padding:5vh 1vw 7vh;
  background:#3e2c28;
  color:var(--white);
  overflow:hidden;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:0;
}

.footer-curtain{
  margin-top:0;
}

.footer-brand{
  margin-bottom:10vh;
}

.footer-brand-logo img{
  width:100%;
  max-width:none;
  height:auto;
  display:block;
}

.footer-grid{
  width:100%;
  display:grid;
  grid-template-columns:
    minmax(220px,18vw)
    minmax(180px,1fr)
    minmax(180px,1fr)
    minmax(220px,1.15fr);
  gap:clamp(1.5rem,3.2vw,6rem);
  padding:0 3vw 140px;
  align-items:start;
}

.footer-cta,
.footer-contact,
.footer-links-editorial{
  min-width:0;
}

.footer-cta p,
.footer-contact p,
.footer-links-editorial p{
  overflow-wrap:break-word;
}

@media(max-width:1200px){
  .footer-grid{
    grid-template-columns:260px 1fr 1fr;
  }

  .footer-cta{
    grid-column:2 / 4;
  }
}

.footer-image img{
  width:100%;
  max-width:340px;
  aspect-ratio:3/4;
  height:auto;
  object-fit:cover;
}

.footer-contact,
.footer-links-editorial,
.footer-cta{
  display:grid;
  gap:12px;
  font-size:clamp(18px,1vw,22px);
  font-weight:600;
  line-height:1.5;
  align-content:start;
}

.footer-contact a,
.footer-links-editorial a{
  text-decoration:none;
}

.footer-contact p,
.footer-links-editorial p,
.footer-cta p{
  margin:0 0 12px;
  line-height:1.35;
  max-width:360px;
}

.footer-links-editorial p:not(:first-child){
  margin-top:34px;
}

.footer-cta .site-footer-button{
  width:max-content;
  margin-top:26px;
  border-radius:0;
  background:var(--white);
  color:var(--ink);

  font-size:15px;
  padding:18px 34px;
}

.footer-bottom{
  position:absolute;
  left:3vw;
  right:3vw;
  bottom:36px;

  display:flex;
  justify-content:space-between;
  gap:24px;

  font-size:clamp(16px,0.9vw,20px);
  font-weight:600;
  letter-spacing:.02em;
}

.footer-bottom a{
  text-decoration:none;
}

/* Ocultar header al entrar en el footer */

body.footer-visible .site-header{
  opacity:0;
  pointer-events:none;
  transition:opacity .4s ease;
}

.club-axo-frame{
  border:none;
  background:transparent;
  height:720px;
  min-height:720px;
  max-height:720px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

.club-axo{
  width:115%;
  max-width:none;
  flex:0 0 auto;
  transform:none;
}

.subpage-intro-page:not(.intro-complete){
  overflow:hidden;
}

.subpage-intro-page .subpage-hero{
  position:sticky;
  top:0;
  height:100vh;
  min-height:100vh;
  z-index:1;
}

.subpage-intro-page main > section:not(.subpage-hero){
  position:relative;
  z-index:2;
}

.subpage-intro-page .subpage-hero-title{
  opacity:0;
  transform:translateY(22px);
}

.subpage-intro-page .subpage-hero .opening-note{
  opacity:0;
  transform:translateY(10px);
  animation:none;
}

.subpage-intro-page.subpage-ready .subpage-hero-title{
  animation:seqIn 1.15s var(--ease) 2.25s forwards;
}

.subpage-intro-page.subpage-ready .subpage-hero .opening-note{
  animation:openingNoteIn .9s var(--ease) 4.35s forwards;
}

.subpage-intro-page.subpage-ready .club-hero-intro .subpage-hero-title{
  animation:seqIn 1.15s var(--ease) 4.75s forwards;
}

.subpage-intro-page.subpage-ready .club-hero-intro .opening-note{
  animation:openingNoteIn .9s var(--ease) 5.15s forwards;
}

/* Club mantiene efecto telón */

.subpage-intro-page .subpage-hero-media{
  animation:none;
  transform:translate3d(0,105%,0);
}

.subpage-intro-page.subpage-ready .subpage-hero-media{
  animation:openingMediaRise 2.18s cubic-bezier(.77,0,.18,1) 3s forwards;
}

/* Residencias y Áticos: vídeo visible desde el inicio */

.subpage-static-video .subpage-hero-media{
  transform:none;
  animation:none;
}

.subpage-intro-page .site-header{
  opacity:1;
  pointer-events:auto;
  color:var(--white);
}

/* Club intro custom background */

.club-hero-intro,
.club-hero-intro .subpage-hero-bg,
.club-hero-intro .subpage-hero-media{
  background:#7d2118;
}

.club-hero-intro .subpage-hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background-image:url("assets/img/trama-castell-club.svg");
  background-repeat:repeat;
  background-size:70px 70px;
  opacity:.18;
  pointer-events:none;
}

.club-intro-logo{
  position:absolute;
  left:50%;
  top:56%;
  z-index:2;
  transform:translate(-50%, -50%);
  width:min(730px,75vw);
  height:auto;
}


/* Castell Club · dibujo animado sólo del símbolo del logo */
.club-logo-inline .club-logo-star .st2{
  stroke-dasharray:120;
  stroke-dashoffset:120;
  animation:clubStarDraw 2.65s ease forwards;
}

.club-logo-inline .club-logo-star .st2:nth-child(1),
.club-logo-inline .club-logo-star .st2:nth-child(5){
  animation-delay:0s;
}

.club-logo-inline .club-logo-star .st2:nth-child(2),
.club-logo-inline .club-logo-star .st2:nth-child(6){
  animation-delay:.15s;
}

.club-logo-inline .club-logo-star .st2:nth-child(3),
.club-logo-inline .club-logo-star .st2:nth-child(7){
  animation-delay:.3s;
}

.club-logo-inline .club-logo-star .st2:nth-child(4),
.club-logo-inline .club-logo-star .st2:nth-child(8){
  animation-delay:.45s;
}

@keyframes clubStarDraw{
  to{
    stroke-dashoffset:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .club-logo-inline .club-logo-star .st2{
    animation:none;
    stroke-dashoffset:0;
  }
}

.residence-plan-item{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:24px;
  align-items:start;
  margin:0 0 56px;
}

.plan-label{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
  font-weight:600;
  color:rgba(44,33,30,.62);
  padding-top:18px;
}

.residence-plan-item .residence-plan{
  width:100%;
  height:auto;
}


.plan-meta{
  grid-column:2;
  display:grid;
  grid-template-columns:repeat(4, minmax(120px, auto));
  gap:28px 4vw;
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid rgba(44,33,30,.18);
}

.plan-meta:empty{
  display:none;
}

.plan-meta div{
  min-width:0;
}

.plan-meta span{
  display:block;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:10px;
  font-weight:600;
  color:rgba(44,33,30,.56);
  margin-bottom:7px;
}

.plan-meta strong{
  display:block;
  font-size:14px;
  line-height:1.35;
  font-weight:600;
  color:var(--ink);
}

@media(max-width:980px){
  .residence-plan-item{
    grid-template-columns:1fr;
  }

  .plan-meta{
    grid-column:1;
    grid-template-columns:1fr 1fr;
  }
}

/* Intro compacta Residencias / Áticos */

.intro-compact{
  min-height:45vh;
  padding-top:6vh;
  padding-bottom:6vh;
}

body:not(.subpage-intro-page) main > .letter-chapter{
  color:var(--ink);
  padding:7vh 8vw 8vh;
}

.intro-compact{
  color:var(--ink);
}

.intro-compact .letter-copy{
  padding-top:0;
}

/* =================================
   EL VISO · ARQUITECTURA
================================= */

.viso-gallery{
  width:calc(100vw - 16vw);
  margin:8rem auto 0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  column-gap:2rem;
  row-gap:5rem;
  align-items:start;
}

.viso-gallery img{
  width:100%;
  aspect-ratio:4 / 5;
  height:auto;
  display:block;
  object-fit:cover;
}

/* escalonado superior */
.viso-gallery img:nth-child(1),
.viso-gallery img:nth-child(3){
  transform:translateY(3rem);
}

/* escalonado inferior */
.viso-gallery img:nth-child(6),
.viso-gallery img:nth-child(8){
  transform:translateY(-3rem);
}

@media(max-width:980px){
  .pause-chapter.pause-olive{
    min-height:auto;
    padding:92px 24px 110px;
  }

  .pause-chapter.pause-olive .pause-copy{
    width:100%;
    max-width:none;
  }

  .pause-chapter.pause-olive .pause-copy p{
    font-size:clamp(36px,11vw,54px);
    line-height:.98;
    max-width:10ch;
  }

  .viso-gallery{
    width:100%;
    margin:64px 0 0;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:20px;
  }

  .viso-gallery img{
    aspect-ratio:4 / 5;
    transform:none!important;
  }
}

#direccion .chapter-copy-madrid{
  position:absolute;
  inset:0;
  max-width:none;
  padding:0;
  display:block;
}

#direccion .chapter-copy-madrid .chapter-no{
  position:absolute;
  left:8vw;
  bottom:16vh;
}

#direccion .madrid-title{
  position:absolute;
  left:50%;
  bottom:35vh;
  transform:translateX(-50%);
  width:max-content;
  max-width:none!important;
  margin:0;
  line-height:.92;
}

#direccion .madrid-title span{
  display:block;
  white-space:nowrap;
}

#direccion .madrid-title span:nth-child(1){
  margin-left:500px;
}

#direccion .madrid-title span:nth-child(2){
  margin-left:-100px;
}

#direccion .madrid-title span:nth-child(3){
  margin-left:190px;
}

@media(max-width:900px){
  #direccion .chapter-copy-madrid{
    position:absolute;
    inset:0;
    max-width:none;
    padding:0 24px 14vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
  }

  #direccion .chapter-copy-madrid .chapter-no{
    position:relative;
    left:auto;
    bottom:auto;
    order:0;
    margin:0 0 14px;
  }

  #direccion .madrid-title{
    position:relative;
    left:auto;
    bottom:auto;
    transform:none;
    order:1;
    width:auto;
    max-width:100%!important;
    font-size:clamp(58px,16vw,92px);
  }

  #direccion .madrid-title span{
    margin-left:0!important;
    white-space:normal;
  }
}

/* MAPA — título y texto */

.map-heading{
  display:grid;
  grid-template-columns:max-content 420px 1fr;
  column-gap:60px;
  align-items:center;
}

.map-heading h2{
  white-space:nowrap;
  margin:0;
}

.map-heading p{
  grid-column:3;
  max-width:420px;
  margin:0;
  justify-self:start;
}

@media(max-width:980px){
  .map-chapter{
    padding-left:0;
    padding-right:0;
  }

  .map-heading{
    grid-template-columns:1fr;
    padding:0 24px;
    margin-bottom:48px;
  }

  .map-heading h2,
  .map-heading p{
    grid-column:1;
  }

  .map-heading h2{
    width:100%;
    max-width:100%;
    white-space:normal;
    overflow-wrap:normal;
    font-size:clamp(48px,15vw,76px);
  }

  .map-heading p{
    max-width:100%;
    min-width:0;
    margin-top:24px;
  }

  .map-layout{
    grid-template-columns:1fr;
    gap:42px;
  }

  .map-frame{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }

  .map-panel{
    padding:0 24px;
  }
}
.aticos-gallery{
  background:#f3efe2;
}

/* =================================
   CASTELL CLUB · PLANO INTERACTIVO
================================= */

.club-plan-interactive-section{
  min-height:115vh;
  height:115vh;
  overflow:hidden;
}

.club-plan-info{
  align-self:center;
  height:720px;
  min-height:720px;
  max-height:720px;
  overflow:visible;
}

.club-plan-info h2{
  transition:opacity .24s var(--ease), transform .24s var(--ease);
}

.club-plan-info p{
  transition:opacity .24s var(--ease), transform .24s var(--ease);
  min-height:4.8em;
  overflow:visible;
}

.club-plan-info.is-changing h2,
.club-plan-info.is-changing p{
  opacity:.18;
  transform:translateY(8px);
}

.club-plan-info.is-changing .club-plan-preview{
  opacity:.18;
  transform:none;
}

.club-plan-preview{
  margin:12px 0 0;
  width:min(620px,100%);
  height:390px;
  min-height:390px;
  max-height:390px;

  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

.club-plan-preview img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(13%)
    sepia(73%)
    saturate(2145%)
    hue-rotate(344deg)
    brightness(95%)
    contrast(96%);
}
.club-plan-interactive{
  position:relative;
}

.club-plan-interactive .club-axo{
  position:relative;
  z-index:1;
}

.club-hotspot{
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:var(--w);
  height:var(--h);
  transform:translate(-50%,-50%);
  border:0;
  background:rgba(255,255,255,0.001);
  opacity:1;
  cursor:pointer;
  z-index:3;
  transition:background .25s var(--ease);
}

/* Alfiler Castell Club: blanco limpio */

.club-hotspot::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:50%;

  width:2px;
  height:96px;

  background:#fffaf0;

  transform:translateX(-50%);
  opacity:0;

  box-shadow:none;

  transition:opacity .25s var(--ease);
}

.club-hotspot::after{
  content:"";
  position:absolute;

  left:50%;
  bottom:calc(50% + 96px);

  width:16px;
  height:16px;

  border-radius:50%;
  background:#fffaf0;

  transform:translate(-50%,50%);
  opacity:0;

  box-shadow:none;

  transition:
    opacity .25s var(--ease),
    transform .25s var(--ease);
}
.club-hotspot:hover::before,
.club-hotspot:hover::after,
.club-hotspot:focus::before,
.club-hotspot:focus::after,
.club-hotspot.is-active::before,
.club-hotspot.is-active::after{
  opacity:1;
}

.club-hotspot:hover::after,
.club-hotspot:focus::after,
.club-hotspot.is-active::after{
  transform:translate(-50%,50%) scale(1.12);
  box-shadow:none;
}

.club-hotspot:hover,
.club-hotspot:focus,
.club-hotspot.is-active{
  background:
    radial-gradient(
      circle at center,
      #fffaf0 0 3px,
      transparent 4px
    );

  filter:none;
}

@media(max-width:980px){
  .club-plan-interactive-section{
    min-height:auto;
    height:auto;
    overflow:visible;
    display:grid;
    grid-template-columns:1fr;
    gap:34px;
    padding:86px 20px 72px;
  }

  .club-plan-info{
    height:auto;
    min-height:0;
    max-height:none;
    align-self:start;
  }

  .club-plan-info h2{
    font-size:clamp(44px,14vw,72px);
    max-width:8.5ch;
  }

  .club-plan-info p{
    min-height:0;
  }

  .club-plan-preview{
    width:100%;
    height:260px;
    min-height:260px;
    max-height:260px;
    margin-top:28px;
  }

  .club-axo-frame{
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
    overflow:visible;
    display:block;
  }

  .club-plan-interactive .club-axo{
    width:100%;
    max-width:none;
  }

  .club-hotspot{
    border-radius:14px;
    min-width:32px;
    min-height:32px;
  }

  .club-hotspot::before{
    height:48px;
  }

  .club-hotspot::after{
    bottom:calc(50% + 48px);
    width:12px;
    height:12px;
  }
}

.letter-chapter{
  background:var(--cream);
  isolation:auto;
}

.letter-copy{
  isolation:auto;
}

.club-manifesto-video-wrap{
  position:relative;
  width:100%;
  background:var(--wine);
  mix-blend-mode:multiply;
  isolation:isolate;
  overflow:hidden;
  line-height:0;
}

.club-manifesto-video{
  width:calc(100% + 4px);
  max-width:none;
  height:auto;
  display:block;
  margin-left:-2px;
  object-fit:contain;
  mix-blend-mode:screen;
  filter:grayscale(1) contrast(1.35);
}


/* Oculta los textos propios de la intro cuando el vídeo se vuelve a revelar más abajo */
body.has-scrolled-past-intro .subpage-hero-title,
body.has-scrolled-past-intro .subpage-hero .opening-note{
  opacity:0!important;
  pointer-events:none;
}

.scribble-word::after{
  content:"";
  position:absolute;
  left:-10%;
  top:50%;
  width:120%;
  height:0.85em;

  border:5px solid #8d1820;
  border-radius:60% 45% 55% 50% / 55% 45% 60% 40%;

  transform:translateY(-50%) rotate(-3deg);

  pointer-events:none;
}

.marked-word{
  position:relative;
  display:inline-block;
  z-index:1;
}

.marked-word img{
  position:absolute;
  left:4%;
  top:100%;
  width:125%;
  height:auto;
  transform:translateY(-50%);
  z-index:-1;
  pointer-events:none;

  clip-path:inset(0 100% 0 0);
}

.marked-word.is-visible img{
  animation:drawCircle 2.2s ease 0.4s forwards;
}

@keyframes drawCircle{
  from{
    clip-path:inset(0 100% 0 0);
  }
  to{
    clip-path:inset(0 0 0 0);
  }
}

.marked-word{
  z-index:1;
}

/* ================================
   CASTELL CLUB · DAY TIMELINE
   Barra segmentada + texto central superior
================================= */

.club-day{
  min-height:auto;
  padding:120px 0 0;
  background:transparent;
  color:#fffaf0;
  overflow:hidden;
  margin-top:-230px;
  position:relative;
  z-index:3;
}

.club-day-caption{
  position:absolute;
  left:50%;
  top:auto;
  bottom:170px;
  transform:translateX(-50%);
  width:min(560px,80vw);
  z-index:6;
  text-align:center;
  color:#fffaf0;
  opacity:1;
  transition:
    opacity .38s var(--ease),
    transform .38s var(--ease);
}

.club-day-caption.is-changing{
  opacity:0;
  transform:translateX(-50%) translateY(8px);
}

.club-day-caption strong{
  display:block;

  font-family:var(--serif);
  font-size:clamp(32px,3vw,52px);

  line-height:.95;
  font-weight:400;
  letter-spacing:-.03em;

  text-transform:none;

  margin:0 0 14px;
}

.club-day-caption span{
  display:block;
  font-size:15px;
  line-height:1.55;
}

.club-day-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  width:100%;
  margin:0;
  background:none;
}

.club-day-grid::before,
.club-day-grid article::before,
.club-day-grid article.is-active::before{
  content:none;
  display:none;
}

.club-day-grid article{
  position:relative;
  z-index:1;
  padding:42px 28px 56px;
  background:transparent;
  color:#fffaf0;
  opacity:.45;
  transform:none;
  text-align:center;
  transition:
    opacity .65s var(--ease),
    transform .65s var(--ease);
}

.club-day-grid article.is-active{
  opacity:1;
  transform:translateY(-4px);
  background:transparent;
}

.club-day-grid b{
  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  gap:.22em;
  font-family:var(--serif);
  font-size:clamp(28px,2.4vw,46px);
  line-height:1;
  font-weight:400;
  margin:0 auto;
}

.club-day-time{
  display:inline-flex;
  justify-content:flex-end;
  width:5ch;
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.club-day-hours,
.club-day-minutes{
  display:inline-block;
  width:2ch;
}

.club-day-hours.is-rolling,
.club-day-minutes.is-rolling{
  animation:none;
}

.club-day-separator{
  display:inline-block;
  width:.45ch;
  text-align:center;
  opacity:1;
}

.club-day-time.is-holding .club-day-separator{
  animation:clubClockColonBlink 1s steps(1, end) infinite;
}

.club-day-unit{
  display:inline-block;
  width:1ch;
  flex:0 0 auto;
  text-align:left;
}

@keyframes clubClockColonBlink{
  0%, 49%{
    opacity:1;
  }
  50%, 100%{
    opacity:.18;
  }
}

@media(prefers-reduced-motion:reduce){
  .club-day-separator{
    animation:none;
  }
}

.club-day-grid article > strong,
.club-day-grid article > span{
  display:none;
}

.club-day-progress{
  position:absolute;
  left:calc(100% / 12);
  right:calc(100% / 12);
  bottom:40px;
  height:1px;
  background:rgba(255,250,240,.20);
  z-index:5;
  overflow:hidden;
}

.club-day-progress span{
  display:block;
  width:0%;
  height:100%;
  background:#fffaf0;
  border-radius:999px;
  transition:none;
}

@media(max-width:980px){
  .club-day{
    min-height:100vh;
    padding:0 24px;
    margin-top:-100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:24px;
    background:transparent;
  }

  .club-day-progress{
    display:none;
  }

  .club-day-caption{
    position:relative;
    left:auto;
    bottom:auto;
    order:1;
    width:100%;
    transform:none;
    text-align:center;
  }

  .club-day-caption.is-changing{
    transform:translateY(8px);
  }

  .club-day-caption strong{
    font-size:clamp(34px,12vw,58px);
    margin-bottom:12px;
  }

  .club-day-caption span{
    max-width:300px;
    margin:0 auto;
    font-size:14px;
  }

  .club-day-grid{
    order:2;
    display:block;
    min-height:70px;
  }

  .club-day-grid article{
    display:none;
    padding:0;
    opacity:1;
    transform:none;
  }

  .club-day-grid article.is-active{
    display:block;
    transform:none;
  }

  .club-day-grid b{
    font-size:clamp(54px,18vw,86px);
    color:#fffaf0;
    text-align:center;
  }

  .club-day-time{
    width:5ch;
  }
}


/* ================================
   MOBILE REFINEMENTS — CLUB / FOOTER / INTRO
   ================================ */

@media(max-width:980px){
  .opening-logo-stack{
    gap:clamp(26px,7vw,40px);
  }

  .opening-logo-stack .opening-wordmark{
    width:clamp(220px,72vw,360px);
  }

  .opening-logo-stack .opening-symbol{
    width:clamp(44px,13.5vw,68px);
    top:0;
  }

  main{
    margin-bottom:0;
  }

  .footer-ambrose{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:2;
    min-height:auto;
    padding:64px 20px 28px;
    overflow:hidden;
  }

  .footer-brand{
    margin-bottom:42px;
  }

  .footer-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:34px;
    padding:0;
  }

  .footer-image img{
    width:100%;
    max-width:none;
    aspect-ratio:4 / 3;
  }

  .footer-contact,
  .footer-links-editorial,
  .footer-cta{
    font-size:16px;
    gap:8px;
  }

  .footer-contact p,
  .footer-links-editorial p,
  .footer-cta p{
    max-width:100%;
  }

  .footer-cta .site-footer-button{
    width:100%;
    justify-content:center;
    margin-top:18px;
    padding:16px 18px;
    font-size:12px;
    white-space:normal;
    text-align:center;
  }

  .footer-bottom{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 24px;
    margin-top:54px;
    font-size:14px;
  }
}

@media (max-width:980px){

  .building-window-overlay{
    display:none;
  }

}