/* ==========================================================================
   Pine Tree Hotel · Kanchipuram
   Grown out of the Perinba Vilas build, re-keyed to this property:
   - ground is the blue-hour navy of the hero sky (#153257, darkened)
   - accent is zari gold, the thread in a Kanchipuram silk border
   - room photos are bright (white walls, gold curtains), so the room and
     interior sections sit on ivory instead of fighting a dark page
   - the register is quiet and formal: tracked capitals, an italic second line in
     each heading, metallic gold on the few things that matter, hairline gold
     frames inset on the main photographs, and a PT monogram seal
   ========================================================================== */

:root{
  --night:      #0A101A;
  --night-2:    #0F1726;
  --night-3:    #16213A;
  --dusk:       rgba(21,50,87,.62);   /* sampled from the hero sky */

  --ivory:      #F5EFE3;
  --ivory-2:    #ECE3D2;
  --paper:      #FBF8F2;

  --zari:       #C9A458;
  --zari-soft:  #E2C88E;
  --zari-deep:  #9E7C35;
  --silk:       #86222F;              /* Kanchi maroon, used on light grounds */
  --gold-grad:  linear-gradient(135deg, #ECD69C 0%, #C9A458 46%, #9E7C35 100%);
  --frame:      rgba(236,218,170,.55);  /* hairline frame inset on photographs */

  /* tone tokens — dark by default, flipped by .tone-light */
  --bg:       var(--night);
  --fg:       #F3EDE2;
  --fg-dim:   #ABA597;
  --fg-mute:  #8F8B7D;              /* lightest that keeps 4.5:1 on all three navies */
  --accent:   var(--zari);
  --accent-em:var(--zari-soft);       /* the italic line in each heading */
  --gold-line:rgba(201,164,88,.3);
  --line:     rgba(243,237,226,.14);
  --line-soft:rgba(243,237,226,.07);
  --panel:    var(--night-2);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gut:  clamp(1.25rem, 4vw, 3.5rem);
  --max:  1320px;
  --sec:  clamp(5.5rem, 12vw, 11rem);

  --ease: cubic-bezier(.22,.61,.36,1);

}

.tone-light{
  --bg:       var(--ivory);
  --fg:       #1F1C18;
  --fg-dim:   #5B544A;
  --fg-mute:  #6B6357;              /* 4.5:1 even on --ivory-2 */
  --accent:   var(--silk);
  --accent-em:var(--silk);
  --gold-line:rgba(158,124,53,.34);
  --line:     rgba(31,28,24,.16);
  --line-soft:rgba(31,28,24,.08);
  --panel:    var(--paper);
  background:var(--bg); color:var(--fg);
}
.tone-light--alt{ --bg:var(--ivory-2); }
.tone-deep{ background:var(--night-2); --panel:var(--night-3); }

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

/* ---------- page scrollbar: slim, themed, visible only while scrolling ----------
   Idle, the thumb is the same navy as the track so it disappears; main.js adds
   .is-scrolling to <html> while the page moves and the gold thumb fades in. */
html{
  scrollbar-width:thin;
  scrollbar-color:var(--night) var(--night);
  transition:scrollbar-color .6s var(--ease);
}
html.is-scrolling{ scrollbar-color:rgba(201,164,88,.7) var(--night); }
@supports not (scrollbar-color:auto){
  html::-webkit-scrollbar{ width:9px; background:var(--night); }
  html::-webkit-scrollbar-thumb{ background:var(--night); border-radius:9px; }
  html.is-scrolling::-webkit-scrollbar-thumb{ background:rgba(201,164,88,.7); }
}

body{
  margin:0;
  background:var(--night);
  color:var(--fg);
  font-family:var(--sans);
  font-weight:300;
  font-size:clamp(.95rem,.9rem + .25vw,1.0625rem);
  line-height:1.72;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* author display rules below would otherwise beat the UA [hidden] rule and leave
   .lb / .drawer covering the page at opacity 0, intercepting every click */
[hidden]{ display:none !important; }
/* height:auto neutralises the width/height HTML attributes as presentational hints —
   without it a definite attribute height overrides any CSS aspect-ratio. Rules that set
   a real height out-specify this and still win. */
img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:400; }
p{ margin:0 0 1.15em; }
ul{ margin:0; padding:0; list-style:none; }
figure{ margin:0; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
::selection{ background:var(--zari); color:var(--night); }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--zari); color:var(--night); padding:.75rem 1.25rem;
}
.skip:focus{ left:0; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* ---------- layout ---------- */
.wrap{ width:100%; max-width:var(--max); margin-inline:auto; padding-inline:var(--gut); }
.section{ padding-block:var(--sec); }

/* ---------- type ---------- */
.display{
  font-family:var(--serif); font-weight:300;
  font-size:clamp(2rem,1.35rem + 3.1vw,4.25rem);
  line-height:1.06; letter-spacing:-.015em;
}
.display em, .hero__title em{ font-style:italic; color:var(--accent-em); }
.display--sm{ font-size:clamp(1.6rem,1.2rem + 1.7vw,2.6rem); }

.eyebrow{
  font-size:.6875rem; font-weight:500;
  letter-spacing:.3em; text-transform:uppercase;
  color:var(--accent);
  margin:0 0 1.5rem;
}

.section p{ color:var(--fg-dim); max-width:56ch; }

/* ---------- PT monogram seal ---------- */
.seal{ display:block; width:100%; height:auto; overflow:visible; }

/* ---------- hairline gold frame inset on a photograph ---------- */
:root{ --frame-inset:clamp(8px,1vw,14px); }
.framed{ position:relative; }
.framed::after{
  content:""; position:absolute; inset:var(--frame-inset);
  border:1px solid var(--frame); pointer-events:none;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  padding:1.05rem 2.2rem;
  font-size:.6875rem; font-weight:500;
  letter-spacing:.24em; text-transform:uppercase;
  border:1px solid transparent;
  transition:background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), filter .5s var(--ease);
}
/* metallic gold with a fine light edge, like gilt on a frame */
.btn--solid{ background:var(--gold-grad); color:#1A1408; box-shadow:inset 0 0 0 1px rgba(255,241,205,.38); }
.btn--solid:hover{ filter:brightness(1.07) saturate(1.05); }
.btn--ghost{ border-color:var(--gold-line); color:var(--fg); }
.btn--ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn--full{ width:100%; }

.linkish{
  padding:0; font-size:inherit; color:var(--fg-dim);
  text-decoration:underline; text-underline-offset:3px;
  transition:color .35s var(--ease);
}
.linkish:hover{ color:var(--accent); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .55s var(--ease), backdrop-filter .55s var(--ease), border-color .55s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.is-stuck{
  background:rgba(10,16,26,.86);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom-color:rgba(201,164,88,.18);
}
.nav__inner{
  max-width:var(--max); margin-inline:auto;
  padding:1.4rem var(--gut);
  display:flex; align-items:center; gap:2rem;
  transition:padding .55s var(--ease);
}
.nav.is-stuck .nav__inner{ padding-block:1rem; }

/* wordmark: tracked serif capitals over a smaller tracked line, centred on each other */
.nav__mark{ display:flex; flex-direction:column; align-items:center; line-height:1.1; margin-right:auto; }
.nav__mark-name{
  font-family:var(--serif); font-weight:500; font-size:1.2rem;
  letter-spacing:.34em; margin-right:-.34em; text-transform:uppercase; color:#F3EDE2;
}
.nav__mark-place{
  font-size:.5625rem; letter-spacing:.4em; margin-right:-.4em; text-transform:uppercase;
  color:var(--zari); margin-top:.4rem;
}

.nav__links{ display:flex; gap:2.25rem; }
.nav__links a{
  font-size:.6875rem; letter-spacing:.2em; text-transform:uppercase;
  color:#F3EDE2; position:relative; padding-block:.25rem;
  transition:color .4s var(--ease);
}
.nav__links a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1px;
  background:var(--zari); transform:scaleX(0); transform-origin:right;
  transition:transform .5s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after{ transform:scaleX(1); transform-origin:left; }

.nav__cta{ padding:.75rem 1.5rem; color:#F3EDE2; border-color:rgba(201,164,88,.45); }
.nav__cta:hover{ color:var(--zari); border-color:var(--zari); }

.nav__burger{ display:none; width:30px; height:22px; position:relative; }
.nav__burger span{
  position:absolute; left:0; width:100%; height:1px; background:#F3EDE2;
  transition:transform .45s var(--ease), opacity .3s;
}
.nav__burger span:nth-child(1){ top:6px; }
.nav__burger span:nth-child(2){ top:14px; }
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ transform:translateY(-4px) rotate(-45deg); }

.drawer{
  position:fixed; inset:0; z-index:99;
  background:rgba(10,16,26,.97);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  display:grid; place-items:center;
  opacity:0; transition:opacity .45s var(--ease);
}
.drawer.is-open{ opacity:1; }
.drawer__links{ display:flex; flex-direction:column; gap:1.5rem; text-align:center; }
.drawer__links a{
  font-family:var(--serif); font-size:2rem; color:#F3EDE2;
  position:relative; display:inline-block;
}
.drawer__links a:hover{ color:var(--zari); }
.drawer__links a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-.15rem;
  height:1px; background:var(--zari);
}

/* ==========================================================================
   HERO
   Desktop: the real photo fills the right half (capped by height, so a very wide
   screen doesn't crop it to a letterbox) and the text sits on a navy panel beside
   it. The two are blended, not extended: the photo's left edge (sky and trees; the
   building starts a third of the way in) fades out over a blurred copy of itself,
   and a blurred mirror of that edge carries its colours a little way into the
   panel before it falls away to navy. Under 900px the photo goes full-bleed.
   ========================================================================== */
.hero{
  --hero-photo:min(46%, 72svh);     /* ~0.7 aspect: roof to canopy with little cropped */
  position:relative; min-height:100svh;
  display:flex; flex-direction:column; justify-content:flex-end;
  /* top padding clears the fixed nav, so on a short window the seal can't slide up under the wordmark */
  padding:6.5rem 0 clamp(4.5rem,9vw,8rem);
  overflow:hidden;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(21,50,87,.38), transparent 72%),
    var(--night);
}
.hero__media{
  position:absolute; top:0; right:0; bottom:0; width:var(--hero-photo);
  overflow:hidden;
  /* eased (smoothstep) rather than linear, so there's no visible band where it ends */
  --fade:linear-gradient(to right, transparent 0%, rgba(0,0,0,.04) 6%, rgba(0,0,0,.16) 12%,
    rgba(0,0,0,.32) 17%, rgba(0,0,0,.5) 23%, rgba(0,0,0,.68) 29%, rgba(0,0,0,.84) 34%,
    rgba(0,0,0,.96) 40%, #000 46%);
  -webkit-mask-image:var(--fade);
          mask-image:var(--fade);
}

/* Two photo-wide boxes side by side, mirror on the left, blurred as one layer so the
   seam between them can't show. Taller than the hero so the blur has no dark rim at
   top and bottom. Filter runs before mask, so the fade itself stays smooth. */
.hero__ambient{
  position:absolute; top:-12%; bottom:-12%; right:0; width:calc(var(--hero-photo) * 2);
  display:flex;
  filter:blur(64px) brightness(.78);
  --fade:linear-gradient(to right, transparent 8%, rgba(0,0,0,.04) 13%, rgba(0,0,0,.16) 18%,
    rgba(0,0,0,.32) 24%, rgba(0,0,0,.5) 29%, rgba(0,0,0,.68) 34%, rgba(0,0,0,.84) 40%,
    rgba(0,0,0,.96) 45%, #000 50%);
  -webkit-mask-image:var(--fade);
          mask-image:var(--fade);
}
.hero__ambient img{
  flex:1 1 0; min-width:0; height:100%; object-fit:cover; object-position:50% 62%;
}
.hero__ambient img:first-child{ transform:scaleX(-1); }
.hero__media img{
  width:100%; height:100%; object-fit:cover;
  object-position:50% 62%;           /* roofline and lit canopy both in frame */
  animation:kb 26s var(--ease) forwards;
}
@keyframes kb{ from{ transform:scale(1.04); } to{ transform:scale(1); } }

.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(to bottom, rgba(10,16,26,.55) 0%, rgba(10,16,26,0) 16%),
    linear-gradient(to top, rgba(10,16,26,.7) 0%, rgba(10,16,26,0) 14%);
}

.hero__body{
  position:relative;
  width:100%; max-width:var(--max); margin-inline:auto;
  padding-inline:var(--gut);
}
.hero__seal{ width:58px; color:var(--zari); margin-bottom:1.75rem; }
@media (min-width:901px) and (max-height:820px){ .hero{ padding-top:5.75rem; } .hero__seal{ width:44px; margin-bottom:1.1rem; } }
.hero__title{
  font-family:var(--serif); font-weight:300;
  font-size:clamp(3rem,1.4rem + 6.2vw,7.5rem);
  line-height:.92; letter-spacing:-.026em;
  margin:0 0 1.75rem;
}
.hero__sub{
  max-width:40ch;
  font-size:clamp(1rem,.95rem + .4vw,1.2rem);
  line-height:1.62; color:rgba(243,237,226,.84);
  margin-bottom:2.5rem;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:.9rem; }

.hero__cue{
  position:absolute; right:calc(var(--hero-photo) + var(--gut)); bottom:clamp(4.5rem,9vw,8rem);
  display:flex; flex-direction:column; align-items:center; gap:.9rem;
}
.hero__cue-line{ width:1px; height:64px; background:linear-gradient(var(--zari),transparent); }
.hero__cue-text{
  font-size:.5625rem; letter-spacing:.3em; text-transform:uppercase;
  color:var(--fg-dim); writing-mode:vertical-rl;
}

/* ==========================================================================
   FACTS — the four things a pilgrim family asks first
   ========================================================================== */
.facts{
  background:var(--night-2); padding-block:clamp(2.75rem,5.5vw,4.25rem);
  border-bottom:1px solid rgba(201,164,88,.16);
}
.facts__grid{ display:grid; grid-template-columns:repeat(4,1fr); }
.fact{ text-align:center; padding:.25rem clamp(1rem,2.5vw,2.25rem); border-left:1px solid var(--gold-line); }
.fact:first-child{ border-left:0; }
.fact__num{
  display:block; font-family:var(--serif); font-weight:300; font-style:italic;
  font-size:clamp(2.1rem,1.5rem + 2vw,3.4rem); line-height:1.05;
  background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.fact__label{
  display:block; max-width:24ch; margin:.9rem auto 0;
  font-size:.625rem; letter-spacing:.2em; text-transform:uppercase; line-height:1.7; color:var(--fg-dim);
}

/* ==========================================================================
   SPLIT
   ========================================================================== */
.split__grid{
  display:grid; grid-template-columns:1.15fr 1fr;
  gap:clamp(2rem,6vw,5.5rem); align-items:center;
}
.split__grid--rev{ grid-template-columns:1fr 1.15fr; }   /* the photo keeps the wider column */
.split__grid--rev .split__media{ order:2; }
.split__grid--rev .split__text{ order:1; }

.split__media{ overflow:hidden; }
.split__media img{
  width:100%; height:clamp(300px,52vw,640px); object-fit:cover;
  transition:transform 1.4s var(--ease);
}
.split__media--pair{ display:grid; grid-template-columns:1fr 1fr; gap:.75rem; overflow:visible; }
.split__media--pair img{ height:clamp(260px,40vw,560px); }
/* stagger the pair so it reads as two prints, not one image cut in half */
.split__media--pair img:nth-child(2){ margin-top:clamp(2rem,6vw,5rem); }

/* two landscape night shots: a large print with a smaller one laid over its corner,
   so neither gets cropped into a sliver */
.split__media--overlap{ position:relative; overflow:visible; padding-bottom:clamp(3rem,8vw,6rem); }
.split__media--overlap figure:first-child img{ height:auto; aspect-ratio:3/2; }
.split__media--overlap figure:last-child{
  position:absolute; right:clamp(-1rem,-2vw,0rem); bottom:0; width:48%;
  outline:clamp(6px,.8vw,10px) solid var(--bg);
}
.split__media--overlap figure:last-child img{ height:auto; aspect-ratio:3/2; }

.split__text .display{ margin-bottom:1.75rem; }

.ticks{ margin-top:2rem; display:grid; gap:.85rem; }
.ticks li{
  position:relative; padding-left:1.6rem;
  font-size:.9375rem; color:var(--fg-dim);
}
.ticks li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:8px; height:1px; background:var(--accent);
}

/* ==========================================================================
   SECTION HEADS
   ========================================================================== */
.sec-head{ margin-bottom:clamp(3rem,6vw,5rem); max-width:70ch; }
.sec-head__note{ margin-top:1.75rem; max-width:52ch; }
.sec-head--row{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:2rem; max-width:none;
}

/* ==========================================================================
   ROOMS (light)
   ========================================================================== */
.rooms__lead{ overflow:hidden; margin-bottom:clamp(2.5rem,5vw,4rem); }
.rooms__lead img{
  width:100%; height:clamp(320px,50vw,680px); object-fit:cover; object-position:center 55%;
}

.rooms__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,3.5vw,2.75rem); }
.room{
  display:flex; flex-direction:column;
  background:var(--panel); border:1px solid var(--gold-line);
}
.room__main{ position:relative; aspect-ratio:3/2; overflow:hidden; background:var(--ivory-2); }
.room__main img{
  width:100%; height:100%; object-fit:cover;
  transition:opacity .45s var(--ease), transform 1.3s var(--ease);
}
.room__main img.is-swapping{ opacity:0; }
.room:hover .room__main img{ transform:scale(1.03); }

.room__thumbs{ display:flex; gap:.5rem; padding:.75rem .75rem 0; }
.room__thumb{
  width:68px; aspect-ratio:3/2; padding:0; overflow:hidden;
  border:1px solid transparent; opacity:.6;
  transition:opacity .35s var(--ease), border-color .35s var(--ease);
}
.room__thumb img{ width:100%; height:100%; object-fit:cover; }
.room__thumb:hover{ opacity:.9; }
.room__thumb[aria-pressed="true"]{ opacity:1; border-color:var(--accent); }

.room__body{ padding:clamp(1.5rem,3vw,2.25rem); display:flex; flex-direction:column; flex:1; }
.room__body h3{
  font-family:var(--serif); font-size:clamp(1.6rem,1.25rem + 1vw,2.2rem); margin-bottom:.75rem;
}
.room__body p{ font-size:.9375rem; }
.meta{ display:flex; flex-wrap:wrap; gap:.5rem; margin:.25rem 0 1.5rem; }
.meta li{
  font-size:.625rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--fg-dim); border:1px solid var(--gold-line);
  padding:.45rem .85rem;
}
.room__cta{
  margin-top:auto; align-self:flex-start;
  font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; font-weight:500;
  color:var(--accent); display:inline-flex; align-items:center; gap:.6rem;
  padding-block:.35rem; border-bottom:1px solid currentColor;
}
.room__cta:hover{ gap:.9rem; }

.amen{
  display:grid; grid-template-columns:1fr 2fr; gap:clamp(2rem,5vw,4.5rem);
  margin-top:clamp(4rem,8vw,6.5rem); padding-top:clamp(3rem,6vw,4.5rem);
  border-top:1px solid var(--line);
}
.amen__list{ display:grid; grid-template-columns:repeat(4,1fr); gap:2rem 1.5rem; }
.amen__list li{ display:flex; flex-direction:column; gap:.85rem; font-size:.9375rem; line-height:1.4; color:var(--fg); }
.amen__ico{ width:34px; height:34px; color:var(--accent); }

/* ==========================================================================
   FULL-BLEED
   ========================================================================== */
.bleed{
  position:relative; min-height:88svh;
  display:grid; align-items:center;
  padding-block:clamp(5rem,10vw,9rem);
  overflow:hidden;
}
.bleed__media{ position:absolute; inset:0; }
.bleed__media img{ width:100%; height:100%; object-fit:cover; }
/* slow push-in as the section crosses the screen, where scroll timelines exist */
@supports (animation-timeline:view()){
  .bleed__media img{
    animation:push linear both; animation-timeline:view(); animation-range:entry 0% exit 100%;
  }
  @keyframes push{ from{ transform:scale(1.14); } to{ transform:scale(1); } }
}
.bleed__scrim{
  position:absolute; inset:0;
  background:linear-gradient(105deg, rgba(10,16,26,.92) 0%, rgba(10,16,26,.66) 42%, rgba(10,16,26,.1) 100%);
}
.bleed__body{
  position:relative;
  width:100%; max-width:var(--max); margin-inline:auto;
  padding-inline:var(--gut);
}
.bleed__body .display{ margin-bottom:1.75rem; }
.bleed__body p{ max-width:46ch; color:rgba(243,237,226,.8); }

/* ==========================================================================
   INSIDE — mosaic (light)
   ========================================================================== */
.mosaic{
  display:grid; grid-template-columns:1.45fr 1fr; grid-template-rows:1fr 1fr;
  gap:.75rem; height:clamp(420px,52vw,720px);
}
.mosaic__item{ position:relative; overflow:hidden; }
.mosaic__item--big{ grid-row:span 2; }
.mosaic__item img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.3s var(--ease);
}
.mosaic__item:hover img{ transform:scale(1.04); }
.mosaic__item--big img{ object-position:center 82%; }   /* the desk, not the wall above it */
.mosaic__item figcaption{
  position:absolute; left:calc(var(--frame-inset) + .75rem); bottom:calc(var(--frame-inset) + .75rem); z-index:1;
  background:rgba(10,16,26,.78); color:#F3EDE2;
  padding:.4rem .75rem; font-size:.625rem; letter-spacing:.2em; text-transform:uppercase;
}

/* ==========================================================================
   GUEST QUOTE (light)
   ========================================================================== */
.quote{ text-align:center; }
.quote__mark{
  display:block; height:.42em; margin-bottom:1.25rem;
  font-family:var(--serif); font-size:clamp(5rem,4rem + 4vw,8rem); line-height:1;
  color:var(--zari-deep);
}
.quote__text{
  font-family:var(--serif); font-style:italic; font-weight:300;
  font-size:clamp(1.5rem,1.1rem + 1.7vw,2.5rem); line-height:1.32;
  max-width:32ch; margin:0 auto 1.75rem; color:var(--fg);
}
.section .quote__text{ max-width:32ch; color:var(--fg); }
.quote__by{
  margin:0; font-size:.6875rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--fg-dim);
}
.quote__rating{
  display:inline-flex; align-items:center; gap:.6rem;
  margin-top:clamp(2.25rem,4vw,3rem); padding:.65rem 1.15rem;
  border:1px solid var(--line);
  font-size:.8125rem; color:var(--fg-dim);
  transition:border-color .4s var(--ease);
}
.quote__rating:hover{ border-color:var(--accent); }
.quote__rating strong{ font-weight:500; color:var(--fg); }
.quote__star{ width:14px; height:14px; color:var(--zari-deep); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gal__tabs{ display:flex; flex-wrap:wrap; gap:.5rem; flex-shrink:0; }
.gal__tab{
  padding:.6rem 1.15rem; border:1px solid var(--line);
  font-size:.6875rem; letter-spacing:.16em; text-transform:uppercase; color:var(--fg-dim);
  transition:border-color .35s var(--ease), color .35s var(--ease);
}
.gal__tab:hover{ color:var(--fg); }
.gal__tab[aria-pressed="true"]{ border-color:var(--accent); color:var(--accent); }

.gal__hold{ position:relative; }
.gal__hold:not(.is-open) .gal__item--more{ display:none; }
.gal__hold:not(.is-open)::after{          /* soft edge so the cut reads as "more below" */
  content:""; position:absolute; left:0; right:0; bottom:0; height:clamp(90px,14vw,190px);
  background:linear-gradient(to bottom, rgba(10,16,26,0), var(--night));
  pointer-events:none;
}
.gal__more{
  display:flex; justify-content:center;
  margin-top:clamp(2rem,4vw,3rem);
  padding-inline:var(--gut);
}
.gal__grid{
  display:grid; grid-template-columns:repeat(4,1fr); grid-auto-flow:dense;
  gap:.75rem;
  padding-inline:var(--gut);
  max-width:1600px; margin-inline:auto;
}
.gal__item{
  overflow:hidden; cursor:zoom-in; position:relative;
  aspect-ratio:4/3;              /* reserves height before the image loads */
  background:var(--night-3);
}
.gal__item--wide{ grid-column:span 2; aspect-ratio:8/3; }
.gal__item img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.2s var(--ease), opacity .5s;
  opacity:.9;
}
.gal__item:hover img{ transform:scale(1.05); opacity:1; }

/* ==========================================================================
   NEARBY — horizontal rail
   ========================================================================== */
.near__nav{ display:flex; gap:.5rem; flex-shrink:0; }
.near__btn{
  width:46px; height:46px; display:grid; place-items:center;
  border:1px solid var(--line); color:var(--fg-dim);
  transition:border-color .4s var(--ease), color .4s var(--ease), opacity .3s;
}
.near__btn:hover:not(:disabled){ border-color:var(--accent); color:var(--accent); }
.near__btn:disabled{ opacity:.28; cursor:default; }

.near__rail{
  display:flex; gap:clamp(1rem,2vw,1.5rem);
  overflow-x:auto; overscroll-behavior-x:contain;
  /* no snap and no scroll-behavior: the rail drifts continuously via rAF in main.js,
     and mandatory snap would yank it back on every frame. Reduced-motion users get
     snap restored below, since for them the rail is manual-only. */
  padding-inline:max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  padding-bottom:.5rem;
  scrollbar-width:none;
}
.near__rail::-webkit-scrollbar{ display:none; }
.near__rail:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
@media (prefers-reduced-motion:reduce){
  .near__rail{ scroll-snap-type:x mandatory; }
  .near__card{ scroll-snap-align:start; }
}
.near__card{ flex:0 0 clamp(240px,26vw,320px); }
.near__media{
  margin:0 0 1.25rem; position:relative; overflow:hidden;
  aspect-ratio:3/2; background:var(--night-3);
  border:1px solid var(--line-soft);
}
.near__media img{
  width:100%; height:100%; object-fit:cover;
  /* the sourced landmark photos run brighter and more saturated than the property
     photography — settle them toward the page palette, full colour on hover */
  opacity:.9; filter:saturate(.85) brightness(.92);
  transition:transform 1.3s var(--ease), opacity .5s var(--ease), filter .5s var(--ease);
}
.near__card:hover .near__media img{ transform:scale(1.05); opacity:1; filter:none; }
.near__dist{
  margin:0 0 .5rem; font-size:.625rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--accent);
}
.near__name{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(1.15rem,1.05rem + .4vw,1.4rem);
  line-height:1.2; margin:0 0 .6rem;
}
.near__desc{ margin:0; font-size:.875rem; line-height:1.62; color:var(--fg-dim); }

/* CC licences require the credit to be reachable from the page; folded away so it
   doesn't compete with the cards */
.near__credits{ margin-top:clamp(1.75rem,3vw,2.5rem); font-size:.75rem; color:var(--fg-mute); }
.near__credits summary{
  cursor:pointer; width:max-content; letter-spacing:.16em; text-transform:uppercase; font-size:.625rem;
}
.near__credits summary:hover{ color:var(--accent); }
.near__credits p{ margin:1rem 0 0; max-width:none; color:var(--fg-mute); line-height:1.7; }
.near__credits a{ color:var(--fg-dim); text-decoration:underline; text-decoration-color:var(--line); }
.near__credits a:hover{ color:var(--accent); }

/* ==========================================================================
   FINDING US
   ========================================================================== */
.find__grid{
  display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(2rem,5vw,4.5rem); align-items:stretch;
}
.find__address{
  display:inline-block; margin-top:1.25rem;
  color:var(--fg-dim); font-size:.9375rem; text-decoration:underline;
  text-decoration-color:var(--line); text-underline-offset:.25em;
}
.find__address:hover{ color:var(--accent); text-decoration-color:var(--accent); }

.reach{ margin-top:2.25rem; border-top:1px solid var(--line-soft); }
.reach li{
  display:grid; grid-template-columns:28px 1fr auto; gap:1rem; align-items:start;
  padding:1.1rem 0; border-bottom:1px solid var(--line-soft);
}
.reach__ico{ width:22px; height:22px; color:var(--accent); margin-top:.15rem; }
.reach strong{ display:block; font-weight:400; color:var(--fg); font-size:.9375rem; }
.reach span{ display:block; font-size:.8125rem; color:var(--fg-dim); line-height:1.5; }
.reach em{
  font-style:normal; font-family:var(--serif); font-size:1.35rem; line-height:1.1;
  color:var(--zari); white-space:nowrap;
}

.map-thumb{
  position:relative; display:block; overflow:hidden; min-height:420px;
  border:1px solid var(--line-soft);
}
.map-thumb iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0; pointer-events:none;
  filter:invert(100%) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.35);
}
.map-thumb__pin{
  position:absolute; left:1rem; bottom:1rem;
  background:rgba(10,16,26,.85); color:#F3EDE2;
  padding:.5rem .85rem; font-size:.6875rem; letter-spacing:.16em; text-transform:uppercase;
}

/* ==========================================================================
   ENQUIRE (light)
   ========================================================================== */
.enq__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2.5rem,7vw,6rem); }
.enq__intro .display{ margin-bottom:1.75rem; }

.contact{ margin-top:2.5rem; border-top:1px solid var(--line); }
.contact li{
  display:flex; justify-content:space-between; gap:1.5rem;
  padding:.95rem 0; border-bottom:1px solid var(--line);
}
.contact span{
  font-size:.625rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--fg-mute); padding-top:.28em;
}
.contact a,.contact em{ font-style:normal; color:var(--fg); font-size:.9375rem; }
.contact a:hover{ color:var(--accent); }
.contact__multi{ display:flex; flex-direction:column; align-items:flex-end; gap:.35rem; }

.enq__form{
  display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; align-content:start;
  background:var(--panel); border:1px solid var(--line-soft);
  padding:clamp(1.5rem,4vw,2.75rem);
}
.enq__form-title{
  grid-column:1/-1; margin:0 0 .25rem;
  font-family:var(--serif); font-weight:400;
  font-size:clamp(1.5rem,1.25rem + 1vw,2.1rem); line-height:1.1;
}
.field{ grid-column:1/-1; display:flex; flex-direction:column; gap:.5rem; }
.field--half{ grid-column:span 1; }
.field label{
  font-size:.625rem; letter-spacing:.2em; text-transform:uppercase; color:var(--fg-mute);
}
.field input,.field textarea,.field select{
  font:inherit; font-size:.9375rem; color:var(--fg);
  background:transparent; border:0; border-bottom:1px solid var(--line);
  padding:.7rem 0; border-radius:0;
  transition:border-color .4s var(--ease);
}
.field textarea{ resize:vertical; }
.field input:focus,.field textarea:focus{ outline:none; border-bottom-color:var(--accent); }
.field input[type="date"]::-webkit-calendar-picker-indicator{ cursor:pointer; opacity:.6; }
/* iOS Safari: strip native control styling, and use >=16px so focusing a field doesn't zoom the page */
.field input,.field textarea,.field select{ -webkit-appearance:none; appearance:none; width:100%; min-width:0; }
.field input[type="date"]{ min-height:2.75rem; }
@media (pointer:coarse){ .field input,.field textarea,.field select{ font-size:1rem; } }
.enq__form .btn{ grid-column:1/-1; margin-top:.75rem; }
.enq__note{ grid-column:1/-1; margin:0; font-size:.75rem; color:var(--fg-mute); letter-spacing:.02em; }
.enq__alt{ grid-column:1/-1; margin:.35rem 0 0; font-size:.75rem; color:var(--fg-mute); }

.book{
  margin-top:clamp(3rem,6vw,4.5rem);
  padding-top:clamp(2rem,4vw,2.75rem);
  border-top:1px solid var(--line);
}
.book__perks{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem 2.5rem; }
.book__perks li{
  display:flex; align-items:flex-start; justify-content:center; gap:.75rem;
  font-size:.875rem; line-height:1.5; color:var(--fg-dim);
}
.perk__ico{ flex:0 0 auto; width:19px; height:19px; color:var(--accent); margin-top:.05em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot{ background:var(--night); }
.foot__body{ padding-block:clamp(4rem,8vw,6rem) clamp(2rem,3.5vw,2.75rem); }
.foot__inner{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:1.75rem; }
.foot__mark{ display:flex; flex-direction:column; align-items:center; gap:.45rem; line-height:1.15; }
.foot__seal{ width:54px; color:var(--zari); margin-bottom:.9rem; }
.foot__name{
  font-family:var(--serif); font-weight:500; font-size:1.6rem;
  letter-spacing:.34em; margin-right:-.34em; text-transform:uppercase;
}
.foot__place{ font-size:.5625rem; letter-spacing:.42em; margin-right:-.42em; text-transform:uppercase; color:var(--zari); }
.foot__addr{ margin:0; font-size:.8125rem; line-height:1.9; color:var(--fg-dim); }
.foot__addr span{ display:block; }
.foot__addr a:hover{ color:var(--zari); }
.foot__links{
  display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem 1.9rem;
  width:min(100%, 760px); padding-top:1.75rem; border-top:1px solid var(--gold-line);
}
.foot__links a{ font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color:var(--fg-dim); }
.foot__links a:hover{ color:var(--zari); }
.foot__fine{ margin:0; font-size:.6875rem; color:var(--fg-mute); letter-spacing:.05em; }

/* ==========================================================================
   404 — the old WordPress URLs land here
   ========================================================================== */
.lost{
  position:relative; min-height:100svh;
  display:flex; align-items:center;
  padding-block:clamp(4rem,10vw,7rem);
  background:
    radial-gradient(75% 65% at 78% 0%, var(--dusk), transparent 72%),
    var(--night);
}
.lost__body{ width:100%; max-width:var(--max); margin-inline:auto; padding-inline:var(--gut); }
.lost__mark{ display:inline-flex; margin-bottom:clamp(3rem,8vw,5rem); }
.lost .display{ margin-bottom:1.75rem; }
.lost p:not(.eyebrow){ max-width:46ch; color:var(--fg-dim); margin-bottom:2.5rem; }

/* ==========================================================================
   MOBILE CALL BAR — the first thing most guests here do is phone
   ========================================================================== */
.mbar{
  position:fixed; left:0; right:0; bottom:0; z-index:90;
  display:none; grid-template-columns:1fr 1fr; gap:.6rem;
  padding:.65rem var(--gut) calc(.65rem + env(safe-area-inset-bottom));
  background:rgba(10,16,26,.94);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line-soft);
  transform:translateY(110%); transition:transform .5s var(--ease);
}
.mbar.is-on{ transform:none; }
.mbar .btn{ padding:.85rem 1rem; }
.mbar svg{ width:16px; height:16px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb{
  position:fixed; inset:0; z-index:150;
  background:rgba(7,10,16,.96);
  display:grid; place-items:center;
  opacity:0; transition:opacity .35s var(--ease);
}
.lb.is-open{ opacity:1; }
.lb__img{ max-width:min(92vw,1600px); max-height:88svh; object-fit:contain; }
.lb__close{ position:absolute; top:1.25rem; right:1.5rem; font-size:2.25rem; line-height:1; color:var(--fg-dim); }
.lb__close:hover{ color:var(--zari); }
.lb__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  font-size:3rem; line-height:1; color:var(--fg-dim); padding:1rem;
}
.lb__nav:hover{ color:var(--zari); }
.lb__nav--prev{ left:.5rem; }
.lb__nav--next{ right:.5rem; }

/* ==========================================================================
   REVEAL
   Gated on .js (set inline in the head): if main.js never runs, nothing is left
   hidden at opacity 0.
   ========================================================================== */
.js .reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in{ opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:.11s; }
.reveal[data-delay="2"]{ transition-delay:.22s; }
.reveal[data-delay="3"]{ transition-delay:.33s; }

/* photographs uncover upward instead of fading — reads like a print being pulled */
.js .reveal-img{
  clip-path:inset(100% 0 0 0);
  transition:clip-path 1.1s var(--ease);
}
.js .reveal-img.is-in{ clip-path:inset(0 0 0 0); }

/* The hero is on screen at load, so it rises in on a CSS animation from first paint
   instead of waiting for main.js to add .is-in. Its text is the mobile LCP element. */
@keyframes rise{ from{ opacity:0; transform:translateY(26px); } to{ opacity:1; transform:none; } }
.js .hero .reveal{ opacity:1; transform:none; transition:none; animation:rise .9s var(--ease) both; }
.js .hero .reveal[data-delay="1"]{ animation-delay:.08s; }
.js .hero .reveal[data-delay="2"]{ animation-delay:.16s; }
.js .hero .reveal[data-delay="3"]{ animation-delay:.24s; }
.reveal-img[data-delay="1"]{ transition-delay:.15s; }
.reveal-img[data-delay="2"]{ transition-delay:.3s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px){
  .hero__cue{ display:none; }        /* the text column is too narrow to keep it clear */
  .gal__grid{ grid-template-columns:repeat(3,1fr); }
  .amen__list{ grid-template-columns:repeat(3,1fr); }
}

@media (max-width:900px){
  .nav__links,.nav__cta{ display:none; }
  .nav__burger{ display:block; }

  .hero__ambient{ display:none; }
  .hero__media{ width:100%; -webkit-mask-image:none; mask-image:none; }
  .hero__media img{ object-position:60% 30%; }
  .hero__scrim{
    background:
      linear-gradient(to top, rgba(10,16,26,.96) 0%, rgba(10,16,26,.72) 44%, rgba(10,16,26,.1) 70%, rgba(10,16,26,.5) 100%);
  }
  .hero__cue{ display:none; }
  .hero__seal{ width:46px; margin-bottom:1.25rem; }

  .facts__grid{ grid-template-columns:1fr 1fr; gap:1.75rem 0; }
  .fact:nth-child(3){ border-left:0; }

  .split__grid,
  .split__grid--rev{ grid-template-columns:1fr; }
  .split__grid--rev .split__media,
  .split__grid--rev .split__text{ order:initial; }
  .rooms__grid{ grid-template-columns:1fr; }
  .amen{ grid-template-columns:1fr; }
  .mosaic{ grid-template-columns:1fr 1fr; grid-template-rows:auto auto; height:auto; }
  .mosaic__item--big{ grid-column:1/-1; grid-row:auto; aspect-ratio:3/2; }
  .mosaic__item{ aspect-ratio:1; }
  .find__grid{ grid-template-columns:1fr; }
  .map-thumb{ min-height:320px; }
  .enq__grid{ grid-template-columns:1fr; }
  .book__perks{ grid-template-columns:1fr; }
  .book__perks li{ justify-content:flex-start; }
  .gal__grid{ grid-template-columns:repeat(2,1fr); }
  .sec-head--row{ flex-direction:column; align-items:flex-start; gap:1.5rem; }

  .mbar{ display:grid; }
  .foot{ padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width:700px){
  .near__card{ flex-basis:74vw; }
  .foot__fine{ width:100%; }
}

@media (max-width:560px){
  .hero__actions{ flex-direction:column; align-items:stretch; }
  .hero__actions .btn{ width:100%; }
  .field--half{ grid-column:1/-1; }
  .amen__list{ grid-template-columns:1fr 1fr; }
  .split__media--pair img{ height:300px; }
  .split__media--overlap figure:last-child{ right:0; width:52%; }
  .contact li{ flex-direction:column; gap:.35rem; }
  .contact a,.contact em{ text-align:left; }
  .contact__multi{ align-items:flex-start; }
  .room__thumb{ width:56px; }
}

/* ==========================================================================
   TOUCH — bring small controls up to a usable tap size.
   ========================================================================== */
@media (pointer:coarse){
  .nav__burger::after{ content:""; position:absolute; inset:-11px -8px; }
  .contact a,
  .foot__links a,
  .linkish{ display:inline-block; padding-block:.6rem; }
  .contact__multi{ gap:0; }
  .find__address{ padding-block:.4rem; }
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .js .reveal{ opacity:1; transform:none; }
  .js .reveal-img{ clip-path:none; }
  .hero__media img{ animation:none; }
}
