/* =========================================================
   CASA HAYAT — Private Family Estate
   ========================================================= */

:root {
  --ink: #16120D;
  --cream: #F6F1E7;
  --sand: #F1EBDD;
  --paper: #FBF8F2;
  --text: #3E382F;
  --dark: #2C2720;
  --body: #4A4339;
  --muted: #6E6557;
  --gold: #D8B98C;
  --gold-hi: #E6CBA2;
  --gold-2: #A87E4F;
  --bronze: #8A6238;
  --light: #F3EDE2;
  --light-2: #F5EFE4;

  --f-display: 'Cormorant Garamond', serif;
  --f-head: Cairo, sans-serif;
  --f-body: Tajawal, sans-serif;

  --gutter: clamp(20px, 6vw, 110px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading, body.is-locked { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--bronze); text-decoration: none; transition: color .3s, background-color .3s, border-color .3s; }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: var(--ink); }
input, textarea, select, button { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Keyframes ---------- */
@keyframes chKen    { from { transform: scale(1.12) } to { transform: scale(1) } }
@keyframes chCue    { 0%,100% { transform: translateY(0); opacity: .4 } 50% { transform: translateY(10px); opacity: 1 } }
@keyframes chAerial { from { transform: scale(1.4) translate(0,-5%) } to { transform: scale(1.08) translate(0,0) } }
@keyframes chOrbit  { from { transform: scale(1.22) translateX(7%) } to { transform: scale(1.22) translateX(-7%) } }
@keyframes chEnter  { from { transform: scale(1.02) } to { transform: scale(1.32) } }
@keyframes chRise   { from { transform: scale(1.25) translateY(6%) } to { transform: scale(1.12) translateY(-4%) } }
@keyframes chBar    { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes chDraw   { to { stroke-dashoffset: 0 } }
@keyframes chLight  { to { opacity: 1 } }
@keyframes chOut    { to { opacity: 0 } }
@keyframes chSwing  { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes chFade   { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

/* ---------- Shared pieces ---------- */
.wrap { max-width: 1320px; margin: 0 auto; }
.pattern {
  background-image:
    repeating-linear-gradient(45deg, rgba(168,126,79,.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(168,126,79,.05) 0 1px, transparent 1px 26px);
}
.frame { position: absolute; inset: clamp(12px,2vw,26px); border: 1px solid rgba(216,185,140,.3); pointer-events: none; }
.frame--hero { border-color: rgba(216,185,140,.35); }

/* Diamond monogram */
.mark {
  position: relative; flex: none;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
}
.mark > span {
  font-family: var(--f-display); font-weight: 600; color: var(--gold);
  transform: rotate(-45deg); line-height: 1;
}
.mark > i { position: absolute; inset: 6px; border: 1px solid rgba(216,185,140,.4); }
.mark--sm  { width: 30px; height: 30px; } .mark--sm > span { font-size: 15px; }
.mark--md  { width: 58px; height: 58px; } .mark--md > span { font-size: 24px; } .mark--md > i { inset: 5px; }
.mark--lg  { width: 70px; height: 70px; } .mark--lg > span { font-size: 30px; }
.mark--foot{ width: 50px; height: 50px; } .mark--foot > span { font-size: 21px; }
.mark--sent{ width: 62px; height: 62px; border-color: var(--gold-2); } .mark--sent > span { font-size: 26px; color: var(--bronze); } .mark--sent > i { inset: 5px; border-color: rgba(168,126,79,.4); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 15px 30px; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
.btn--sm { font-size: 15px; padding: 11px 24px; }
.btn--gold { color: var(--ink); background: var(--gold); }
.btn--gold:hover { background: var(--gold-hi); color: var(--ink); }
.btn--ghost { color: var(--light); border: 1px solid rgba(243,237,226,.55); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.sq-btn {
  width: 52px; height: 52px; flex: none;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.sq-btn--dark { border: 1px solid rgba(216,185,140,.6); background: rgba(22,18,13,.35); color: var(--gold); }
.sq-btn--dark:hover { background: var(--gold); color: var(--ink); }
.sq-btn--light { width: 50px; height: 50px; border: 1px solid rgba(168,126,79,.6); background: transparent; color: var(--bronze); }
.sq-btn--light:hover { background: var(--dark); color: var(--gold); border-color: var(--dark); }

.icon-btn {
  width: 44px; height: 44px; flex: none; cursor: pointer;
  font-family: var(--f-display); font-size: 26px; line-height: 1;
  transition: background-color .3s, color .3s;
}
.icon-btn--gold  { width: 48px; background: none; border: 1px solid rgba(216,185,140,.5); color: var(--gold); }
.icon-btn--gold:hover { background: var(--gold); color: var(--ink); }
.icon-btn--media { position: absolute; top: 16px; left: 16px; z-index: 2; border: 1px solid rgba(216,185,140,.7); background: rgba(22,18,13,.6); color: var(--gold); }
.icon-btn--media:hover { background: var(--gold); color: var(--ink); }
.icon-btn--light { border: 1px solid rgba(168,126,79,.6); background: transparent; color: var(--bronze); }
.icon-btn--light:hover { background: var(--dark); color: var(--gold); }

/* Typography helpers */
.kicker { font-family: var(--f-display); font-size: 14px; color: var(--gold-2); margin-bottom: 16px; }
.kicker--gold { color: var(--gold); margin-bottom: 18px; }
.h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(34px,4.2vw,62px); line-height: 1.25; margin: 0; color: var(--light-2); }
.h2--dark { color: var(--dark); line-height: 1.3; text-wrap: balance; }
.h2--band { font-size: clamp(34px,4.6vw,66px); }
.body { font-size: clamp(17px,1.35vw,21px); line-height: 2; margin: 0 0 18px; text-wrap: pretty; }
.body--last { margin-bottom: 0; }
.rule { width: 64px; height: 1px; background: var(--gold); margin: 26px 0; }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.eyebrow__dia { width: 7px; height: 7px; border: 1px solid var(--gold-2); transform: rotate(45deg); }
.eyebrow__ar { font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--gold-2); }
.eyebrow__en { font-family: var(--f-display); font-size: 13px; color: var(--gold-2); }

.divider { display: flex; align-items: center; gap: 12px; margin: 30px 0; }
.divider__line { width: 64px; height: 1px; background: linear-gradient(270deg, #C9A165, var(--bronze)); }
.divider__dia { width: 8px; height: 8px; background: var(--gold-2); transform: rotate(45deg); }
.divider--lg { margin: 34px 0; }
.divider--sm { margin: 22px 0; }
.divider--sm .divider__line { width: 56px; }
.divider--sm .divider__dia { width: 7px; height: 7px; }

.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(44px,6vw,80px);
}
.sec-head__note { font-family: var(--f-head); font-weight: 600; font-size: clamp(16px,1.4vw,21px); color: var(--gold); margin: 0; max-width: 520px; }

/* Scroll reveal (initial state applied by JS only to below-the-fold elements) */
.rv-hide { opacity: 0; transform: translateY(36px); }
.rv-anim.rv-anim { transition: opacity 1s ease, transform 1.1s var(--ease-out); }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--light);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 24px;
  background-image: linear-gradient(rgba(216,185,140,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(216,185,140,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transition: transform 1.2s cubic-bezier(.76,0,.24,1);
}
.loader.is-exit { transform: translateY(-100%); }
.loader__tag { position: absolute; top: clamp(30px,4vw,54px); right: clamp(30px,4vw,60px); font-family: var(--f-display); font-size: 13px; color: rgba(216,185,140,.75); }
.loader__svg { width: min(640px,88vw); height: auto; overflow: visible; }
.loader__svg .dr {
  fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: chDraw var(--t, .7s) cubic-bezier(.6,.1,.3,1) var(--d, 0s) forwards;
}
.loader__svg .gl { fill: rgba(216,185,140,.32); opacity: 0; animation: chLight .8s ease var(--d) forwards; }
.loader__crane { animation: chOut .6s ease 3.3s forwards; }
.loader__hook { transform-origin: 500px 48px; transform-box: view-box; animation: chSwing 2.4s ease-in-out infinite; }
.loader__meta { width: min(640px,88vw); display: flex; flex-direction: column; gap: 14px; }
.loader__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.loader__stage { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: rgba(243,237,226,.85); }
.loader__pct { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 34px; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; background: rgba(216,185,140,.2); position: relative; }
.loader__fill { position: absolute; top: 0; right: 0; height: 1px; width: 0; background: var(--gold); }
.loader__dot { position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.loader__logo { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.loader__word { font-family: var(--f-display); font-size: 22px; color: var(--gold); font-weight: 600; line-height: 1; }

/* =========================================================
   PROGRESS + HEADER + MENU
   ========================================================= */
.progress { position: fixed; top: 0; right: 0; left: 0; height: 2px; z-index: 60; background: rgba(216,185,140,.15); }
.progress__bar { height: 100%; width: 0; background: linear-gradient(270deg, var(--gold), var(--gold-2)); }

.header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px clamp(20px,5vw,72px);
  background: rgba(22,18,13,0);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,185,140,0);
  transition: all .45s ease;
}
.header.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(22,18,13,.88); border-bottom-color: rgba(216,185,140,.22); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.brand:hover { color: var(--gold); }
.brand__word { font-family: var(--f-display); font-size: clamp(16px,3.6vw,22px); color: var(--gold); font-weight: 600; line-height: 1; white-space: nowrap; }
.brand .mark { transition: transform .6s var(--ease-out); }
.brand:hover .mark { transform: rotate(225deg); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.burger {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end; justify-content: center;
  width: 48px; height: 44px; padding: 0 12px; cursor: pointer;
  background: none; border: 1px solid rgba(216,185,140,.5);
  transition: border-color .3s, background-color .3s;
}
.burger span { display: block; width: 22px; height: 1px; background: var(--gold); transition: width .35s ease; }
.burger span:nth-child(2) { width: 14px; }
.burger:hover { border-color: var(--gold); background: rgba(216,185,140,.08); }
.burger:hover span:nth-child(2) { width: 22px; }

.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink); color: var(--light);
  display: flex; flex-direction: column; overflow-y: auto;
  animation: chFade .4s ease both;
}
.menu__top { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px,5vw,72px); }
.menu__word { font-family: var(--f-display); font-size: 22px; color: var(--gold); font-weight: 600; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px clamp(20px,8vw,140px) 60px; }
.menu__link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  padding: 14px 0; border-bottom: 1px solid rgba(216,185,140,.18); color: var(--light);
  transition: color .3s, padding .4s var(--ease-out);
}
.menu__link:hover { color: var(--gold); padding-right: 10px; }
.menu__link--last { border-bottom: none; color: var(--gold); }
.menu__num { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--gold-2); min-width: 44px; }
.menu__ar { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px,3.4vw,40px); }
.menu__en { margin-inline-start: auto; font-family: var(--f-display); font-size: 14px; color: rgba(216,185,140,.7); }
.menu.is-open .menu__link { animation: chFade .6s var(--ease-out) both; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: var(--ink); color: var(--light);
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  padding: clamp(110px,16vh,160px) clamp(24px,6vw,110px) clamp(70px,11vh,120px);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.is-ready .hero__img { animation: chKen 14s ease-out both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,18,13,.55) 0%, rgba(22,18,13,.05) 35%, rgba(22,18,13,.35) 60%, rgba(22,18,13,.92) 100%); }
.hero__brand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__word { font-family: var(--f-display); font-size: clamp(34px,5vw,64px); color: var(--gold); font-weight: 600; line-height: 1; }
.hero__tagline { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.hero__tagline span { font-family: var(--f-display); font-size: clamp(12px,1.3vw,18px); color: rgba(243,237,226,.85); line-height: 1; white-space: nowrap; }
.line { flex: none; display: block; width: clamp(20px,6vw,60px); height: 1px; }
.line--r { background: linear-gradient(90deg, transparent, var(--gold)); }
.line--l { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero__bottom { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; }
.hero__copy { max-width: 820px; }
.hero h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(44px,7vw,104px); line-height: 1.15; margin: 0; color: var(--light-2); }
.hero__sub { font-family: var(--f-head); font-weight: 600; font-size: clamp(19px,2vw,28px); color: var(--gold); margin: 12px 0 0; }
.hero__lead { font-size: clamp(16px,1.35vw,20px); line-height: 1.9; max-width: 640px; margin: 18px 0 0; color: rgba(245,239,228,.9); text-wrap: pretty; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
body.is-ready .hero__brand  { animation: chFade 1.2s .2s ease both; }
body.is-ready .hero__bottom { animation: chFade 1.2s .6s ease both; }
body.is-loading .hero__brand, body.is-loading .hero__bottom { opacity: 0; }
.hero__cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.hero__cue span { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--gold)); animation: chCue 2.4s ease-in-out infinite; }

/* =========================================================
   INTRO
   ========================================================= */
.intro { position: relative; padding: clamp(80px,12vw,170px) var(--gutter); background-color: var(--cream); }
.intro__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px,7vw,110px); }
.intro__text { flex: 1 1 420px; min-width: 0; }
.intro__quote { font-family: var(--f-head); font-weight: 700; font-size: clamp(20px,1.9vw,28px); color: var(--bronze); margin: 36px 0 0; padding-top: 26px; border-top: 1px solid rgba(168,126,79,.4); }
.intro__media { flex: 1 1 380px; min-width: 0; max-width: 560px; margin: 0 auto; position: relative; }
.intro__arch-line { position: absolute; inset: -16px; border: 1px solid rgba(168,126,79,.55); border-radius: 999px 999px 0 0; pointer-events: none; transition: inset .8s var(--ease-out); }
.intro__arch {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  aspect-ratio: 4/5; border-radius: 999px 999px 0 0; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 40px 80px -40px rgba(44,39,32,.5);
}
.intro__arch img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s ease; }
.intro__media:hover .intro__arch img { transform: scale(1.05); }
.intro__media:hover .intro__arch-line { inset: -22px; }

/* =========================================================
   AT A GLANCE
   ========================================================= */
.glance { position: relative; padding: clamp(80px,10vw,140px) var(--gutter); background: var(--ink); color: var(--light); }
.stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,150px), 1fr)); gap: 0;
  border-top: 1px solid rgba(216,185,140,.22); border-right: 1px solid rgba(216,185,140,.22);
}
.stat {
  padding: clamp(18px,2.4vw,30px) clamp(14px,2.2vw,28px);
  border-left: 1px solid rgba(216,185,140,.22); border-bottom: 1px solid rgba(216,185,140,.22);
  display: flex; flex-direction: column; gap: clamp(10px,1.4vw,18px); min-width: 0;
  transition: background-color .4s ease;
}
.stat:hover { background: rgba(216,185,140,.06); }
.stat svg {
  width: clamp(34px,4vw,46px); height: clamp(34px,4vw,46px);
  fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.stat:hover svg { transform: translateY(-3px); }
.stat__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px,5vw,56px); color: var(--gold); line-height: 1; white-space: nowrap; }
.stat__label { font-size: clamp(14px,1.3vw,18px); color: rgba(243,237,226,.82); line-height: 1.6; }

/* =========================================================
   VIRTUAL TOUR
   ========================================================= */
.tour { position: relative; background: var(--ink); color: var(--light-2); padding: clamp(70px,8vw,120px) 0 0; }
.tour__head { margin-bottom: clamp(30px,4vw,50px); padding: 0 var(--gutter); }
.tour__stage { position: relative; height: min(86vh, 900px); overflow: hidden; }
.tour__scenes { position: absolute; inset: 0; }
.tour__scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; overflow: hidden; }
.tour__scene.is-on { opacity: 1; }
.tour__scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,18,13,.9) 0%, rgba(22,18,13,.1) 45%, rgba(22,18,13,.35) 100%); pointer-events: none; }
.tour__mode {
  position: absolute; top: clamp(28px,4vw,52px); right: clamp(28px,4vw,60px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: clamp(11px,1.2vw,14px); color: var(--gold);
}
.tour__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216,185,140,.25); }
.tour__count { position: absolute; top: clamp(28px,4vw,52px); left: clamp(28px,4vw,60px); font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--gold); }
.tour__bottom {
  position: absolute; right: clamp(28px,5vw,80px); left: clamp(28px,5vw,80px); bottom: clamp(30px,5vw,60px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.tour__caption { max-width: 640px; min-width: 0; flex: 1 1 280px; }
.tour__caption.is-swap > * { animation: chFade .9s var(--ease-out) both; }
.tour__caption.is-swap > :nth-child(2) { animation-delay: .08s; }
.tour__caption.is-swap > :nth-child(3) { animation-delay: .16s; }
.tour__en { font-family: var(--f-display); font-size: 13px; color: var(--gold); margin-bottom: 10px; }
.tour__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(28px,3.4vw,50px); line-height: 1.25; margin: 0; }
.tour__sub { font-family: var(--f-head); font-weight: 600; font-size: clamp(15px,1.3vw,19px); color: rgba(245,239,228,.88); margin: 8px 0 0; }
.tour__sub:empty { display: none; }
.tour__ctrls { display: flex; gap: 10px; }
.tour__play {
  height: 52px; padding: 0 clamp(16px,2vw,24px); white-space: nowrap; cursor: pointer;
  border: 1px solid var(--gold); background: var(--gold); color: var(--ink);
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  transition: background-color .3s, border-color .3s;
}
.tour__play:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.tour__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 14px var(--gutter) clamp(40px,5vw,70px); scrollbar-width: none; }
.tour__thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: none; width: clamp(96px,11vw,118px); padding: 0; border: none; background: none; cursor: pointer;
  text-align: right; opacity: .45; transition: opacity .3s;
}
.thumb:hover, .thumb.is-on { opacity: 1; }
.thumb__bar { height: 2px; background: rgba(216,185,140,.25); margin-bottom: 10px; overflow: hidden; }
.thumb__fill { height: 100%; background: var(--gold); transform-origin: right; transform: scaleX(0); }
.thumb.is-past .thumb__fill { transform: scaleX(1); }
.thumb__img { aspect-ratio: 16/10; overflow: hidden; }
.thumb__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.thumb:hover .thumb__img img { transform: scale(1.08); }
.thumb__title { font-family: var(--f-head); font-size: 12px; color: var(--light); margin-top: 8px; line-height: 1.4; }

/* =========================================================
   FULL-BLEED BANDS (arrival + chapter bands)
   ========================================================= */
.band { position: relative; height: 88vh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--light-2); }
.band--arrival { height: 92vh; min-height: 560px; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,18,13,.9) 0%, rgba(22,18,13,.2) 55%, rgba(22,18,13,.1) 100%); }
.band__shade--side { background: linear-gradient(270deg, rgba(22,18,13,.88) 0%, rgba(22,18,13,.45) 45%, rgba(22,18,13,0) 75%); }
.band__copy { position: absolute; right: clamp(24px,6vw,110px); left: clamp(24px,6vw,110px); bottom: clamp(50px,9vh,100px); max-width: 860px; }
.band__copy--arrival { left: auto; bottom: clamp(50px,9vh,110px); max-width: 620px; padding-left: 20px; }
.band__text { font-size: clamp(17px,1.4vw,21px); line-height: 2; margin: 0; color: rgba(245,239,228,.92); text-wrap: pretty; }
.band .rule { margin: 24px 0; }
.band--arrival .rule { margin: 26px 0; }

/* =========================================================
   CHAPTERS
   ========================================================= */
.chapter-head { position: relative; padding: clamp(70px,8vw,120px) var(--gutter) clamp(24px,3vw,40px); }
.chapter-head__inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px,4vw,64px);
  padding-bottom: clamp(36px,4vw,56px); border-bottom: 1px solid rgba(168,126,79,.4);
}
.chapter-head__num { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(90px,11vw,170px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold-2); transition: color .6s ease; }
.chapter-head__inner:hover .chapter-head__num { color: rgba(168,126,79,.12); }
.chapter-head__titles { flex: 1 1 360px; }
.chapter-head__en { font-family: var(--f-display); font-size: 14px; color: var(--gold-2); margin-bottom: 14px; }
.chapter-head__ar { font-family: var(--f-head); font-weight: 800; font-size: clamp(38px,5vw,76px); line-height: 1.15; margin: 0; color: var(--dark); }
.chapter-head__rooms { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 440px; }
.chapter-head__rooms a { font-size: 15px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; padding: 6px 0; }
.chapter-head__rooms a:hover { color: var(--bronze); }
.chapter-head__rooms a span { font-family: var(--f-display); font-style: italic; color: var(--gold-2); }

/* Carousel */
.car { padding: clamp(30px,3vw,48px) 0 clamp(80px,9vw,130px); }
.car__bar { max-width: 1320px; margin: 0 auto 26px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.car__count { font-family: var(--f-display); font-size: 13px; color: var(--gold-2); }
.car__btns { display: flex; gap: 10px; }
.car__track {
  display: flex; gap: clamp(16px,2vw,28px); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px var(--gutter) 24px; scrollbar-width: none;
  cursor: grab;
}
.car__track::-webkit-scrollbar { display: none; }
.car__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.car__track.is-drag > * { pointer-events: none; }

.card {
  flex: none; width: clamp(250px,28vw,400px); max-width: 78vw; aspect-ratio: 3/4.2;
  position: relative; overflow: hidden; scroll-snap-align: start; cursor: pointer;
  background: var(--ink); box-shadow: 0 30px 60px -36px rgba(44,39,32,.6); scroll-margin-top: 90px;
  transition: box-shadow .6s ease;
}
.card.is-arch, .card.is-arch .card__frame { border-radius: 999px 999px 0 0; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.card:hover img { transform: scale(1.07); }
.card:hover { box-shadow: 0 40px 70px -34px rgba(44,39,32,.75); }
.card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,18,13,.92) 0%, rgba(22,18,13,.35) 45%, rgba(22,18,13,0) 70%); pointer-events: none; }
.card__frame { position: absolute; inset: 12px; border: 1px solid rgba(216,185,140,.35); pointer-events: none; transition: border-color .6s ease, inset .6s var(--ease-out); }
.card:hover .card__frame { border-color: rgba(216,185,140,.7); inset: 16px; }
.card__body { position: absolute; right: clamp(22px,2.4vw,30px); left: clamp(22px,2.4vw,30px); bottom: clamp(22px,2.4vw,30px); color: var(--light-2); pointer-events: none; }
.card__no { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 30px; color: var(--gold); line-height: 1; }
.card__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(21px,1.8vw,27px); line-height: 1.35; margin: 10px 0 0; }
.card__sub { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--gold); margin: 6px 0 0; line-height: 1.6; }
.card__more { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: rgba(245,239,228,.85); }
.card__more span { width: 26px; height: 1px; background: var(--gold); transition: width .5s var(--ease-out); }
.card:hover .card__more span { width: 46px; }

/* Engineering grid */
/* Engineering slider: bigger tiles, ~4.5 per view on desktop */
.car--tiles .car__track { --per: 4.4; --gap: clamp(14px,1.6vw,22px); gap: var(--gap); }
.car--tiles .tile {
  flex: none; scroll-snap-align: start; scroll-margin-top: 90px;
  width: calc((100vw - 2 * var(--gutter) - (var(--per) - 1) * var(--gap)) / var(--per));
  max-width: 420px;
}
.car--tiles .tile__img { aspect-ratio: 4/3; }
@media (max-width: 1199px) { .car--tiles .car__track { --per: 3.4; } }
@media (max-width: 899px)  { .car--tiles .car__track { --per: 2.3; } }
@media (max-width: 559px)  { .car--tiles .car__track { --per: 1.25; } }
.tile {
  background: var(--paper); border: 1px solid rgba(168,126,79,.3); cursor: pointer;
  display: flex; flex-direction: column; scroll-margin-top: 90px; text-align: right; padding: 0;
  font: inherit; color: inherit;
  transition: border-color .35s, box-shadow .35s, transform .35s, opacity 1s ease;
}
.tile:hover { border-color: rgba(168,126,79,.8); box-shadow: 0 26px 50px -30px rgba(44,39,32,.45); transform: translateY(-4px); }
.tile__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s ease; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__no { position: absolute; top: 14px; right: 14px; font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 24px; color: var(--light-2); background: rgba(22,18,13,.6); padding: 2px 12px; line-height: 1.3; }
.tile__body { padding: clamp(12px,1.6vw,18px) clamp(12px,1.6vw,20px) clamp(14px,1.6vw,20px); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(17px,1.5vw,21px); line-height: 1.45; margin: 0; color: var(--dark); }
.tile__sub { font-family: var(--f-head); font-weight: 600; font-size: clamp(13px,1.1vw,15px); color: var(--bronze); margin: 0; line-height: 1.6; }
.tile__more { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 13px; color: var(--muted); }
.tile__more span { width: 18px; height: 1px; background: var(--gold-2); transition: width .4s var(--ease-out); }
.tile:hover .tile__more span { width: 32px; }

/* =========================================================
   CLOSING
   ========================================================= */
.closing { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--ink); color: var(--light-2); display: flex; align-items: flex-end; }
.closing__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,18,13,.94) 0%, rgba(22,18,13,.45) 55%, rgba(22,18,13,.2) 100%); }
.closing__copy { position: relative; padding: 0 clamp(24px,6vw,110px) clamp(70px,11vh,130px); max-width: 960px; }
.closing__brand { display: flex; align-items: center; gap: 22px; margin-bottom: 40px; }
.closing__brand > div:last-child { min-width: 0; }
.closing__word { font-family: var(--f-display); font-size: clamp(24px,3vw,40px); color: var(--gold); font-weight: 600; line-height: 1; }
.closing__tag { font-family: var(--f-display); font-size: clamp(11px,1.2vw,14px); color: rgba(243,237,226,.8); line-height: 1; margin-top: 10px; }
.closing__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(38px,5.6vw,84px); line-height: 1.2; margin: 0; }
.closing__text { font-size: clamp(17px,1.45vw,22px); line-height: 2; margin: 26px 0 0; color: rgba(245,239,228,.92); text-wrap: pretty; }
.closing__text--2 { margin-top: 10px; }
.closing__cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  font-size: clamp(15px,1.3vw,17px); line-height: 1.6; max-width: 100%; white-space: normal; padding: 16px 32px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; padding: clamp(90px,11vw,160px) var(--gutter); background-color: var(--cream); }
.contact__inner { display: flex; flex-wrap: wrap; gap: clamp(48px,7vw,110px); }
.contact__intro { flex: 1 1 360px; min-width: 0; }
.contact__title { font-weight: 800; font-size: clamp(36px,4.6vw,68px); line-height: 1.2; }
.contact__sub { font-family: var(--f-head); font-weight: 600; font-size: clamp(17px,1.5vw,22px); color: var(--bronze); margin: 16px 0 0; }
.contact__img { position: relative; aspect-ratio: 4/3; overflow: hidden; max-width: 520px; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s ease; }
.contact__img:hover img { transform: scale(1.05); }
.contact__card { flex: 1 1 440px; min-width: 0; background: var(--paper); border: 1px solid rgba(168,126,79,.4); padding: clamp(28px,4vw,56px); position: relative; }
.contact__corner { position: absolute; width: 11px; height: 11px; background: var(--gold-2); transform: rotate(45deg); }
.contact__corner--tr { top: -6px; right: -6px; }
.contact__corner--bl { bottom: -6px; left: -6px; }

.form { display: flex; flex-direction: column; gap: 26px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); gap: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; position: relative; }
.field__label { font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--muted); transition: color .3s; }
.field:focus-within .field__label { color: var(--bronze); }
.field__input {
  background: transparent; border: none; border-radius: 0; border-bottom: 1px solid rgba(168,126,79,.55);
  padding: 10px 0; font-size: 17px; color: var(--dark); outline: none; width: 100%;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field__input:focus { border-bottom-color: var(--bronze); }
.field__input--ltr { text-align: right; }
.field__textarea { resize: vertical; min-height: 84px; }
input[type="date"].field__input { min-height: 46px; }
.field__err { display: none; font-size: 13px; color: #A3452F; margin-top: -4px; }
.field.is-invalid .field__input { border-bottom-color: #A3452F; }
.field.is-invalid .field__err { display: block; }
.hp { position: absolute !important; top: 0; right: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 15px; padding: 10px 20px;
  border: 1px solid rgba(168,126,79,.5); background: transparent; color: var(--muted);
  transition: all .25s;
}
.chip:hover { border-color: var(--dark); color: var(--dark); }
.chip.is-on { background: var(--dark); color: var(--light-2); border-color: var(--dark); }

.form__error { margin: 0; font-size: 15px; color: #A3452F; line-height: 1.7; }
.submit {
  align-self: flex-start; cursor: pointer; border: none;
  font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--light-2);
  background: var(--dark); padding: 17px 40px;
  display: flex; align-items: center; gap: 14px;
  transition: background-color .3s;
}
.submit:hover { background: var(--bronze); }
.submit__dia { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); transition: transform .5s var(--ease-out); }
.submit:hover .submit__dia { transform: rotate(225deg); }
.submit:disabled { cursor: progress; opacity: .8; }
.submit.is-busy .submit__dia { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(405deg); } }

.sent { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; animation: chFade .6s ease both; }
.sent__title { font-family: var(--f-head); font-weight: 700; font-size: 30px; margin: 12px 0 0; color: var(--dark); }
.sent__text { font-size: 18px; line-height: 1.9; margin: 0; color: var(--muted); max-width: 380px; }
.sent__again { background: none; border: none; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--bronze); }
.sent__again:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(243,237,226,.7); padding: clamp(56px,7vw,90px) var(--gutter) 34px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.footer__word { font-family: var(--f-display); font-size: clamp(22px,3vw,28px); color: var(--gold); font-weight: 600; line-height: 1; }
.footer__tag { font-family: var(--f-head); font-size: 16px; color: rgba(243,237,226,.8); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 10px; }
.footer__nav a { font-size: 15px; color: rgba(243,237,226,.75); }
.footer__nav a:hover { color: var(--gold); }
.footer__rule { width: 100%; height: 1px; background: rgba(216,185,140,.2); margin-top: 20px; }
.footer__copy { font-family: var(--f-display); font-size: 13px; color: rgba(216,185,140,.7); }

/* =========================================================
   ROOM DETAIL MODAL
   ========================================================= */
.detail {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(22,18,13,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0px,3vw,48px);
  animation: chFade .35s ease both;
}
.detail__backdrop { position: absolute; inset: 0; cursor: pointer; }
.detail__panel {
  position: relative; width: 100%; max-width: 1240px; max-height: 100%;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--cream); display: flex; flex-wrap: wrap;
}
.detail__media { flex: 1 1 440px; min-height: clamp(260px,45vw,340px); position: relative; background: var(--ink); overflow: hidden; }
.detail__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.detail__img2 { position: absolute; bottom: 20px; left: 20px; width: 38%; aspect-ratio: 1/1; object-fit: cover; border: 6px solid var(--cream); cursor: zoom-in; transition: transform .5s var(--ease-out); }
.detail__img2:hover { transform: scale(1.04); }
.detail__no { position: absolute; top: 20px; right: 20px; font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 30px; color: var(--light-2); background: rgba(22,18,13,.55); padding: 4px 16px; line-height: 1.2; }
.detail__body { flex: 1 1 440px; min-width: 0; padding: clamp(28px,4vw,60px); display: flex; flex-direction: column; }
.detail__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.detail__chapter { font-family: var(--f-display); font-size: 12px; color: var(--gold-2); white-space: pre-wrap; }
.detail__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(28px,2.8vw,42px); line-height: 1.3; margin: 0; color: var(--dark); }
.detail__sub { font-family: var(--f-head); font-weight: 600; font-size: clamp(16px,1.4vw,20px); color: var(--bronze); margin: 8px 0 0; }
.detail__sub:empty { display: none; }
.detail__para { font-size: clamp(15px,1.15vw,18px); line-height: 1.95; margin: 0 0 14px; color: var(--body); text-wrap: pretty; }
.detail__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.detail__chips span { font-size: 13px; color: var(--muted); border: 1px solid rgba(168,126,79,.45); padding: 5px 14px; border-radius: 40px; line-height: 1.3; }
.detail__quote { font-family: var(--f-head); font-weight: 700; font-size: clamp(17px,1.5vw,22px); color: var(--bronze); margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(168,126,79,.4); }
.detail__quote:empty { display: none; }
.detail__nav { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.detail__step { background: none; border: none; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 4px 0; transition: color .3s; }
.detail__step:hover { color: var(--bronze); }
.detail.is-swap .detail__body > *, .detail.is-swap .detail__img { animation: chFade .5s var(--ease-out) both; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(22,18,13,.95);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px,4vw,60px); cursor: zoom-out;
  animation: chFade .35s ease both;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox__x { position: absolute; top: 22px; left: 26px; font-family: var(--f-display); font-size: 34px; color: var(--gold); line-height: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 699px) {
  .tour__stage { height: 68vh; height: 68svh; }
  .detail__panel { height: 100%; }
}
@media (max-width: 559px) {
  .header__cta { display: none; }
  .hero__btns { width: 100%; }
  .hero__btns .btn { flex: 1 1 auto; text-align: center; }
  .tour__ctrls { width: 100%; }
  .tour__play { flex: 1; }
  .submit { align-self: stretch; justify-content: center; }
}

/* Hover-only effects shouldn't stick on touch devices */
@media (hover: none) {
  .card:hover img, .tile:hover .tile__img img, .intro__media:hover .intro__arch img, .contact__img:hover img { transform: none; }
  .tile:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv-hide { opacity: 1; transform: none; }
}
