/* ==========================================================
   The Muqil Casino Hotel — quiet modern luxury
   ========================================================== */

:root {
  --ink: #0e0e10;
  --ink-deep: #09090b;
  --surface: #1a1a1d;
  --gold: #d4bc8c;
  --gold-bright: #e6d3a8;
  --bronze: #8c7b5a;
  --ivory: #ede6d8;
  --ivory-dim: rgba(237, 230, 216, 0.72);
  --line: rgba(212, 188, 140, 0.32);
  --line-soft: rgba(212, 188, 140, 0.16);

  --serif: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
  --pad: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* subtle film grain for depth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: clamp(96px, 14vw, 168px) 0; position: relative; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--muted { color: var(--bronze); letter-spacing: 0.28em; font-size: 11px; margin-bottom: 8px; }

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.h2 em, .h3 em { font-style: italic; color: var(--gold-bright); }

.h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--gold-bright);
}

.lead { color: var(--ivory-dim); font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; margin: 0 0 48px; }

.rule {
  display: block;
  width: 120px;
  height: 1px;
  margin: 36px 0;
  background: var(--gold);
  transform-origin: left;
}
.rule--center { margin: 36px auto; transform-origin: center; }
.rule--wide { width: 100%; background: var(--line); margin: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.btn:hover { color: var(--ink); letter-spacing: 0.36em; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: scale(0.98); }
.btn--small { padding: 12px 28px; font-size: 11px; background: rgba(9, 9, 11, 0.35); backdrop-filter: blur(6px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
}
.arrow {
  position: relative;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.link:hover .arrow { width: 48px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease), height 0.6s var(--ease);
}
.nav.is-scrolled {
  --nav-h: 68px;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-color: var(--line);
}
.nav__mark {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.5s var(--ease);
}
.nav__mark:hover { transform: rotate(-4deg) scale(1.05); }
.nav__links { display: flex; gap: clamp(28px, 3.6vw, 52px); }
.nav__links a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 0;
  opacity: 0.8;
  transition: opacity 0.4s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.3em;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { opacity: 1; color: var(--gold-bright); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav-open .nav__toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav__toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--pad) 140px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(212, 188, 140, 0.08), transparent 70%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  left: 50%;
  top: 50%;
  margin: -35vmax 0 0 -35vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 188, 140, 0.16), rgba(212, 188, 140, 0.04) 40%, transparent 65%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0% { transform: translate3d(-6%, -4%, 0) scale(1); }
  50% { transform: translate3d(5%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 6%, 0) scale(0.95); }
}
.hero__inner { position: relative; z-index: 1; max-width: 1200px; }

.crest {
  width: clamp(96px, 10vw, 128px);
  height: auto;
  color: var(--gold);
  margin: 0 auto 28px;
  display: block;
  overflow: visible;
}
.crest .draw {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.2s var(--ease) forwards;
}
.crest .draw:nth-child(2) { animation-delay: 0.2s; }
.crest .draw:nth-child(3) { animation-delay: 0.4s; }
.crest__m {
  font-family: var(--serif);
  font-size: 34px;
  fill: currentColor;
  opacity: 0;
  animation: fade 1.2s 0.8s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.hero__est { color: var(--ivory); letter-spacing: 0.4em; font-size: 14px; }
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 10vw, 148px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-shadow: 0 2px 40px rgba(212, 188, 140, 0.15);
}
.hero__title .line { display: inline-block; }
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  animation: rise 1.4s var(--d, 0s) var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

.hero__subtitle {
  margin: 0 0 52px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--ivory);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.4em;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}
.hero .reveal { animation: rise 1.4s var(--d, 0s) var(--ease) forwards; filter: none; transition: none; }
.reveal.is-visible { opacity: 1; transform: none; }
.rule.reveal { opacity: 1; transform: scaleX(0); transition: transform 1.4s var(--ease) var(--d, 0.2s); }
.rule.reveal.is-visible { transform: scaleX(1); }
.hero .rule.reveal { opacity: 1; transform: scaleX(0); animation: grow 1.4s var(--d) var(--ease) forwards; }
@keyframes grow { to { transform: scaleX(1); } }

.reveal--image { transform: none; clip-path: inset(12% 0 0 0); transition: opacity 1.4s var(--ease) var(--d, 0s), clip-path 1.6s var(--ease) var(--d, 0s); }
.reveal--image.is-visible { clip-path: inset(0 0 0 0); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.stats {
  display: flex;
  margin: 0 0 56px;
  padding: 0;
}
.stat {
  padding: 0 clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
.stat dd {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}

.about__media { position: relative; margin: 0; padding: 32px 32px 0 0; }
.frame {
  position: absolute;
  inset: 0 0 32px 32px;
  border: 1px solid var(--gold);
  opacity: 0.7;
}
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0), 0) scale(1.02);
  will-change: transform;
}

/* ---------- Casino ---------- */
.casino {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 188, 140, 0.06), transparent 70%),
    var(--ink-deep);
}
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { text-align: center; }
.section-head__intro {
  margin: 24px auto 0;
  max-width: 40em;
  color: var(--ivory-dim);
  font-size: 18px;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 29, 0.4), rgba(14, 14, 16, 0.9));
  transition: border-color 0.6s var(--ease), transform 0.8s var(--ease), opacity 1.2s var(--ease) var(--d, 0s);
}
.card.is-visible:hover { border-color: var(--gold); transform: translateY(-6px); }
.card__media { overflow: hidden; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line-soft); }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 1.6s var(--ease), filter 1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.card__body { padding: clamp(28px, 3vw, 44px); }
.card__body > p { color: var(--ivory-dim); margin: 0 0 32px; max-width: 32em; }

.card__more summary { list-style: none; }
.card__more summary::-webkit-details-marker { display: none; }
.card__more p {
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--ivory-dim);
  font-size: 15px;
  animation: rise 0.8s var(--ease);
}
.card__more[open] .arrow { transform: rotate(90deg); width: 24px; }

.quote { margin: clamp(72px, 9vw, 120px) 0 0; text-align: center; }
.quote p {
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.2;
  color: var(--gold);
}

/* ---------- Dining ---------- */
.venues {
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
.venue {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 46vw, 620px);
  border: 1px solid var(--line-soft);
}
.venue img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s var(--ease);
}
.venue:hover img { transform: scale(1.05); }
.venue__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, transparent 35%, rgba(9, 9, 11, 0.55) 60%, rgba(9, 9, 11, 0.94));
}
.venue__overlay--stack { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.venue__overlay .eyebrow { margin-bottom: 12px; }
.venue__text { margin: 0; max-width: 28em; color: var(--ivory-dim); font-size: 15px; }
.venue .h3 { color: var(--ivory); margin-bottom: 10px; }

.dining__notes {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
.dining__notes li {
  padding: 28px 28px 0 0;
  color: var(--ivory-dim);
  font-size: 15px;
}
.dining__notes span {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); padding: 0 0 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 88px) 0;
}
.footer__motto {
  margin: 0;
  padding-right: clamp(32px, 5vw, 80px);
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.1;
  color: var(--ivory);
}
.footer__info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 32px;
}
.footer__info p:last-child { margin: 0; color: var(--ivory); font-size: 17px; }
.footer__copy {
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .venues { grid-template-columns: 1fr; }
  .venue { min-height: 460px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__motto { border-right: 0; padding-right: 0; }
  .footer__info { grid-template-columns: 1fr 1fr; justify-content: start; }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: rgba(9, 9, 11, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav__links a { font-family: var(--serif); font-size: 32px; letter-spacing: 0.04em; text-transform: none; opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .nav__links a:nth-child(2) { transition-delay: 0.05s; }
  .nav__links a:nth-child(3) { transition-delay: 0.1s; }
  .nav__links a:nth-child(4) { transition-delay: 0.15s; }
  .nav-open .nav__links { opacity: 1; visibility: visible; }
  .nav-open .nav__links a { opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }

  .hero__title .line { display: block; }
  .btn { padding: 16px 36px; }
  .cards { grid-template-columns: 1fr; }
  .stats { flex-wrap: nowrap; }
  .stat { padding: 0 18px; }
  .venue__overlay { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .dining__notes { grid-template-columns: 1fr; }
  .dining__notes li { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
  .footer__info { grid-template-columns: 1fr; gap: 20px; }
  .footer__copy { letter-spacing: 0.18em; line-height: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hero__glow { animation: none; }
  .reveal, .reveal--image { opacity: 1; transform: none; clip-path: none; }
  .media img { transform: none; }
}
