/* ============ LAZURA — brand tokens ============ */
:root {
  --espresso: #1E1512;
  --espresso-2: #2E1F19;
  --bark: #3A2A22;
  --cream: #F4EFE6;
  --cream-2: #E3DED6;
  --sand: #C8A27C;
  --gold: #C9A46A;
  --gold-hi: #EFC984;
  --ember: #D2661A;
  --amber: #8E2A0C;
  --ink-soft: rgba(244, 239, 230, .62);
  --line: rgba(201, 164, 106, .28);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-hi); }
[lang="ar"] { font-family: var(--arabic); }
::selection { background: var(--gold); color: var(--espresso); }

/* Logo as a recolourable mask (image set from JS so it works on file://) */
.logo-mask {
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  aspect-ratio: 1293 / 655;
}
.logo-mask--latin {
  aspect-ratio: 1293 / 125;
  -webkit-mask-size: 100% auto; mask-size: 100% auto;
  -webkit-mask-position: 0 92%; mask-position: 0 92%;
}

/* ============ Grain ============ */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); }
  80% { transform: translate(3%,3%); }
}

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 34px;
  background: var(--espresso);
  transition: clip-path 1.3s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader__mark {
  width: min(180px, 42vw); color: var(--cream);
  clip-path: inset(100% 0 0 0);
  animation: rise 1.4s .25s var(--ease) forwards;
}
.loader__line { width: min(220px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.loader__line span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.loader__count { font-size: 11px; letter-spacing: .4em; color: var(--gold); font-variant-numeric: tabular-nums; }
@keyframes rise { to { clip-path: inset(0 0 0 0); } }
body.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ============ Cursor ============ */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 5px; height: 5px; background: var(--gold-hi); }
.cursor__ring {
  width: 34px; height: 34px; border: 1px solid rgba(239, 201, 132, .55);
  transition: width .5s var(--ease), height .5s var(--ease), background .5s var(--ease), border-color .5s;
}
.cursor__label {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--espresso);
  opacity: 0; transition: opacity .3s; white-space: nowrap; padding-left: .32em;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: transparent; background: rgba(239, 201, 132, .14); backdrop-filter: blur(2px); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; background: var(--gold-hi); border-color: var(--gold-hi); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body, a { cursor: none; }
}

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  mix-blend-mode: difference; color: #F4EFE6;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 1s var(--ease) 1.2s, transform 1s var(--ease) 1.2s;
}
body.is-ready .nav { opacity: 1; transform: none; }
.nav__mark { width: 104px; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
body.is-scrolled .nav__mark { opacity: 1; transform: none; }
.nav__links { display: flex; gap: 38px; }
.nav__links a, .nav__est {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
}
.nav__links a { position: relative; padding: 6px 0; opacity: .82; transition: opacity .4s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__est { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav__est [lang="ar"] { font-size: 14px; letter-spacing: 0; }
.nav__est i { width: 22px; height: 1px; background: currentColor; opacity: .5; }

/* ============ Hero ============ */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(142, 42, 12, .22), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(201, 164, 106, .10), transparent 60%),
    var(--espresso);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__logo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(560px, 72vw); color: var(--cream);
  visibility: hidden;
}
.hero.no-gl .hero__logo { visibility: visible; }
.hero__corner, .hero__hint {
  position: absolute; z-index: 2;
  font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: 14px;
  opacity: 0; transition: opacity 1.4s var(--ease) 1.5s;
}
body.is-ready .hero__corner, body.is-ready .hero__hint { opacity: 1; }
.sep { display: inline-block; width: 22px; height: 1px; background: var(--gold); opacity: .6; }
.hero__corner--tl { left: var(--gutter); top: 92px; }
.hero__corner--tr { right: var(--gutter); top: 92px; font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .06em; text-transform: none; }
.hero__corner--bl { left: var(--gutter); bottom: 36px; font-variant-numeric: tabular-nums; }
.hero__hint { left: 50%; bottom: 36px; translate: -50% 0; font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .08em; text-transform: none; color: rgba(239, 201, 132, .72); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 30px; width: 1px; height: 64px; background: var(--line); overflow: hidden; z-index: 2; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-hi); animation: sand 2.4s var(--ease-io) infinite; }
@keyframes sand { 0% { top: -40%; } 100% { top: 100%; } }

/* ============ Shared ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.eyebrow span { font-family: var(--serif); font-size: 15px; letter-spacing: .1em; font-style: italic; }
.eyebrow span::after { content: ""; display: inline-block; width: 32px; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin-left: 16px; }
.eyebrow--dark { color: var(--amber); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* ============ Statement ============ */
.statement {
  position: relative;
  padding: clamp(110px, 18vw, 230px) var(--gutter) clamp(140px, 20vw, 260px);
  max-width: 1440px; margin: 0 auto;
}
.statement__text {
  margin: 38px 0 0; max-width: 15.5em;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 6.4vw, 96px); line-height: 1.04; letter-spacing: -.01em;
}
.statement__foot {
  margin-top: clamp(48px, 7vw, 96px);
  display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap;
}
.statement__foot p { max-width: 32em; margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.statement__ar { font-size: clamp(26px, 3vw, 40px); color: var(--gold); opacity: .8; }
.dune-lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; pointer-events: none; }
.dune-lines path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .25; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 3.5s var(--ease); }
.dune-lines path:nth-child(2) { opacity: .16; transition-delay: .25s; }
.dune-lines path:nth-child(3) { opacity: .09; transition-delay: .5s; }
.dune-lines.in path { stroke-dashoffset: 0; }

/* ============ Vessel ============ */
.vessel {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  background: var(--cream-2); color: var(--espresso);
  min-height: 100vh;
}
.vessel__media {
  position: relative; height: 100%; min-height: 100vh; overflow: hidden;
  --mx: 50%; --my: 50%; --r: 0px;
}
.vessel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vessel__img--veiled { filter: blur(22px) saturate(.45) brightness(.94); transform: scale(1.1); }
.vessel__img--clear {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 55%, transparent 100%);
  transition: transform 1.6s var(--ease);
}
.vessel__media:hover .vessel__img--clear { transform: scale(1.025); }
.vessel__sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 200, .35) 50%, transparent 60%);
  transform: translateX(-100%); mix-blend-mode: soft-light;
}
.vessel__media:hover .vessel__sweep { transform: translateX(100%); transition: transform 1.8s var(--ease); }
.vessel__copy { padding: clamp(64px, 9vw, 140px) var(--gutter); max-width: 640px; }
.vessel__title {
  margin: 34px 0 56px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.2vw, 64px); line-height: 1.08;
}
.vessel__title em { color: var(--amber); }
.vessel__specs { margin: 0; border-top: 1px solid rgba(46, 31, 25, .18); }
.vessel__specs div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid rgba(46, 31, 25, .18);
  transition: padding .6s var(--ease);
}
.vessel__specs div:hover { padding-left: 12px; }
.vessel__specs dt { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(46, 31, 25, .6); }
.vessel__specs dd { margin: 0; font-family: var(--serif); font-size: 20px; }
.vessel__specs dd[lang="ar"] { font-family: var(--arabic); font-size: 22px; }

/* ============ Horizons ============ */
.horizons { position: relative; padding: clamp(110px, 14vw, 200px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.horizons__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 90px); }
.horizons__intro { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--ink-soft); max-width: 22em; }
.horizons__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.horizons__list li {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr auto; grid-template-areas: "n en ar" "n note note";
  align-items: baseline; column-gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: color .5s;
}
.horizons__list li::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--ember), var(--gold-hi));
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease);
}
.horizons__list .n { grid-area: n; font-size: 11px; letter-spacing: .2em; color: var(--gold); font-variant-numeric: tabular-nums; }
.horizons__list .en {
  grid-area: en; font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 5.6vw, 84px); line-height: 1;
  transition: transform .9s var(--ease), color .5s, letter-spacing .9s var(--ease);
}
.horizons__list .ar { grid-area: ar; font-size: clamp(22px, 2.6vw, 38px); color: var(--ink-soft); transition: color .5s, transform .9s var(--ease); }
.horizons__list .note {
  grid-area: note; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi);
  height: 0; opacity: 0; transform: translateY(-6px); overflow: hidden;
  transition: opacity .5s, transform .7s var(--ease), height .7s var(--ease), margin .7s var(--ease);
}
.horizons__list li.is-on .note { height: 1.6em; margin-top: 14px; opacity: 1; transform: none; }
.horizons__list li.is-on::before { transform: scaleX(1); }
.horizons__list li.is-on .en { transform: translateX(clamp(10px, 2vw, 28px)); font-style: italic; color: var(--gold-hi); }
.horizons__list li.is-on .ar { color: var(--cream); transform: translateX(-8px); }
.horizons__list.has-on li:not(.is-on) .en { color: rgba(244, 239, 230, .28); }

.float {
  position: fixed; left: 0; top: 0; z-index: 1; margin: 0;
  width: clamp(200px, 20vw, 300px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .8s var(--ease);
}
.float.is-on { clip-path: inset(0 0 0 0); }
.float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .6s, transform 1.2s var(--ease); }
.float img.is-on { opacity: 1; transform: scale(1); }

/* ============ Land ============ */
.land { position: relative; height: 110vh; min-height: 600px; overflow: hidden; display: grid; align-items: end; }
.land__media { position: absolute; inset: -6% 0; }
.land__media img { width: 100%; height: 100%; object-fit: cover; filter: url(#haze) brightness(.78) saturate(1.05); }
.land::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--espresso) 0%, transparent 22%, transparent 55%, rgba(30, 21, 18, .85) 100%); pointer-events: none; }
.land__copy { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(56px, 8vw, 110px); max-width: 1440px; width: 100%; margin: 0 auto; }
.land__title { margin: 26px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 8vw, 132px); line-height: .98; max-width: 9em; }

/* ============ Arrival ============ */
.arrival {
  position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center;
  padding: 140px var(--gutter); overflow: hidden;
  --mx: 50%; --my: 50%;
}
.lattice { position: absolute; inset: 0; opacity: .1; transition: opacity 1s; }
.lattice svg { width: 100%; height: 100%; display: block; }
.lattice::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 320px at var(--mx) var(--my), transparent 0%, var(--espresso) 100%);
}
.arrival:hover .lattice { opacity: .9; }
.arrival__inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.arrival__year {
  margin-top: 40px; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 14vw, 220px); line-height: .9; letter-spacing: .06em;
  background: linear-gradient(100deg, var(--sand) 0%, var(--gold-hi) 40%, #fff3d6 50%, var(--gold-hi) 60%, var(--sand) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.arrival__ar { font-size: clamp(26px, 3vw, 40px); color: var(--gold); margin-top: 14px; }
.arrival__line { margin: 46px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.6; color: var(--ink-soft); }

/* ============ Footer ============ */
.footer { padding: 90px var(--gutter) 36px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 56px; }
.footer__mark { width: 128px; color: var(--sand); transition: color .6s; }
.footer__mark:hover { color: var(--gold-hi); }
.footer__row { width: 100%; max-width: 1440px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244, 239, 230, .45); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .vessel { grid-template-columns: 1fr; }
  .vessel__media { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .horizons__list li { grid-template-columns: 34px 1fr auto; column-gap: 14px; }
  .float { display: none; }
  .hero__corner--tr { display: none; }
}
@media (max-width: 560px) {
  .nav__est span:last-child, .nav__est i { display: none; }
  .hero__corner--tl { top: 84px; letter-spacing: .24em; font-size: 9.5px; }
  .hero__corner--bl { display: none; }
  .hero__hint { bottom: 30px; }
  .horizons__list .ar { font-size: 20px; }
  .footer__row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .land__media img { filter: brightness(.78); }
}

@media (hover: none) {
  .lattice { opacity: .35; }
  .lattice::after { background: radial-gradient(circle 60vmin at 50% 50%, transparent 0%, var(--espresso) 100%); }
}
