/* Pure Gold Trading
   Palette lifted from the logo: brand teal #01848c, cream #f6edce.
   One accent: soft gold. One radius system: 2px (sharp, jeweller's cabinet). */

:root {
  --teal-950: #021a1d;
  --teal-900: #032b2f;
  --teal-800: #04393e;
  --teal-700: #07494f;
  --brand: #01848c;
  --cream: #f6edce;
  --cream-dim: rgba(246, 237, 206, .72);
  --cream-faint: rgba(246, 237, 206, .14);
  --gold: #d6b26e;
  --gold-deep: #b8914a;

  --font-display: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --radius: 2px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  --fz: 54px; /* frieze height */
}

html[lang="ar"] {
  --font-display: "Amiri", "Cormorant Garamond", serif;
  --font-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--teal-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

/* fixed grain layer, never on scrolling elements */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.02;
  padding-bottom: .08em;
}
html[lang="ar"] .display { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.eyebrow {
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
html[lang="ar"] .eyebrow { letter-spacing: .04em; text-transform: none; font-size: .9rem; }
.lead { color: var(--cream-dim); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  --h: 3.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: var(--h); padding-inline: 1.7rem;
  border: 1px solid var(--cream-faint);
  border-radius: var(--radius);
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .3s var(--ease);
}
html[lang="ar"] .btn { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.btn i { font-size: 1.1rem; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--gold { background: var(--gold); color: var(--teal-950); border-color: var(--gold); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(3, 43, 47, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--cream-faint);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: grid; line-height: 1.1; }
.brand__en { font-family: "Cormorant Garamond", serif; font-weight: 600; letter-spacing: .24em; font-size: 1.05rem; text-transform: uppercase; }
.brand__ar { font-family: "Amiri", serif; font-size: .95rem; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a:not(.btn) {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--cream-dim);
  position: relative; padding-block: .4rem; transition: color .4s var(--ease);
}
html[lang="ar"] .nav a:not(.btn) { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
html[dir="rtl"] .nav a:not(.btn)::after { transform-origin: right; }
.nav a:not(.btn):hover { color: var(--cream); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: .9rem; }
.btn--sm { --h: 2.75rem; padding-inline: 1.25rem; }
.lang {
  min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding-inline: .7rem;
  border: 1px solid var(--cream-faint); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; transition: border-color .4s var(--ease), color .4s var(--ease);
}
.lang:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid var(--cream-faint); border-radius: var(--radius); font-size: 1.3rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 3rem) calc(var(--fz) + clamp(2.5rem, 6vw, 5rem));
  overflow: hidden; background: var(--teal-950);
}
/* Fallback until the video arrives (also the poster look) */
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 78% 28%, rgba(214, 178, 110, .30), transparent 70%),
    radial-gradient(55% 60% at 18% 78%, rgba(1, 132, 140, .55), transparent 70%),
    radial-gradient(70% 70% at 50% 50%, var(--teal-800), var(--teal-950) 85%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__video--phone { display: none; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero__video { object-position: 50% 40%; }
.hero::after { /* scrim keeps text readable over any footage */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(2, 26, 29, .88) 0%, rgba(2, 26, 29, .35) 45%, rgba(2, 26, 29, .55) 100%);
}
.hero__copy { display: grid; gap: 1.6rem; max-width: 62rem; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9rem); line-height: .96; }
html[lang="ar"] .hero h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 1.2; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; padding-inline-end: .06em; }
.hero__sub { color: var(--cream-dim); max-width: 34ch; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; }

/* intro animation */
.hero [data-in] { opacity: 0; transform: translateY(26px); animation: rise 1.2s var(--ease) forwards; }
.hero [data-in="1"] { animation-delay: .15s; }
.hero [data-in="2"] { animation-delay: .35s; }
.hero [data-in="3"] { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Omani arch frieze (from the logo) ---------- */
.frieze {
  --tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 56'><path fill='%23f6edce' d='M6 34V24C6 12 36 14 45 1c9 13 39 11 39 23v10h6v8a45 12 0 0 1-90 0v-8z'/></svg>");
  height: var(--fz);
  background: var(--tile) repeat-x left top / auto var(--fz);
  filter: drop-shadow(3px 4px 0 rgba(2, 26, 29, .55));
  position: relative; z-index: 2;
}
.frieze--hero { position: absolute; inset: auto 0 0 0; }
.frieze--flip { transform: scaleY(-1); filter: drop-shadow(3px -4px 0 rgba(2, 26, 29, .55)); }
.frieze--tight { --fz: 40px; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(5.5rem, 12vw, 11rem); }

/* statement */
.statement { text-align: center; padding-block: clamp(6rem, 14vw, 12rem); }
.statement p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.12; letter-spacing: -.01em;
  max-width: 20ch; margin-inline: auto; padding-bottom: .1em;
}
html[lang="ar"] .statement p { line-height: 1.5; font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 4rem); max-width: 22ch; }
.statement .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.statement.is-in .w { opacity: 1; transform: none; }
.statement__rule { width: 1px; height: 4.5rem; background: linear-gradient(var(--gold), transparent); margin: 3rem auto 0; transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease) .8s; }
.statement.is-in .statement__rule { transform: scaleY(1); }

/* collections bento */
.col__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.col__head h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.bento {
  display: grid; gap: clamp(.75rem, 1.4vw, 1.25rem);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(15rem, 20vw));
  grid-template-areas:
    "a a b c"
    "a a d c"
    "e e e e";
}
.tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: clamp(1.25rem, 2.2vw, 2rem);
  background:
    radial-gradient(90% 70% at var(--hx, 20%) 0%, rgba(214, 178, 110, .30), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(1, 132, 140, .45), transparent 70%),
    linear-gradient(165deg, var(--teal-700), var(--teal-900) 70%);
  border: 1px solid var(--cream-faint);
  transition: border-color .6s var(--ease);
}
.tile:hover { border-color: rgba(214, 178, 110, .6); }
.tile--a { grid-area: a; --hx: 15%; }
.tile--b { grid-area: b; --hx: 80%; }
.tile--c { grid-area: c; --hx: 40%; }
.tile--d { grid-area: d; --hx: 60%; }
.tile--e { grid-area: e; --hx: 30%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__mark { /* big Arabic name as typographic texture */
  position: absolute; z-index: -1; inset-inline-end: 1rem; top: .2rem;
  font-family: "Amiri", serif; font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 11vw, 11rem); color: var(--gold); opacity: .14;
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.tile--a .tile__mark { font-size: clamp(7rem, 16vw, 16rem); }
.tile:hover .tile__mark { opacity: .26; transform: translateY(6px); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(2, 26, 29, .65), transparent 55%); }
.tile__txt { display: grid; gap: .3rem; }
.tile h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.1; padding-bottom: .05em; }
html[lang="ar"] .tile h3 { font-weight: 700; line-height: 1.3; }
.tile p { color: var(--cream-dim); font-size: .95rem; max-width: 30ch; }

/* house / brand */
.house { background: var(--teal-950); }
.house__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.plate { position: relative; }
.plate__img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(246, 237, 206, .12);
  clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease);
}
.plate.is-in .plate__img { clip-path: inset(0); }
.plate::before { /* offset gold frame */
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid rgba(214, 178, 110, .45); border-radius: var(--radius); z-index: -1;
}
html[dir="rtl"] .plate::before { inset: 1.4rem 1.4rem -1.4rem -1.4rem; }
.house__copy { display: grid; gap: 1.4rem; }
.house__copy h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.house__copy .ar-line { font-family: "Amiri", serif; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--gold); line-height: 1.4; }

/* visit */
.visit__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: stretch; }
.visit__info { display: grid; align-content: center; gap: 2.2rem; }
.visit__info h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--cream-faint); }
.fact { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--cream-faint); align-items: baseline; }
.fact dt { color: var(--gold); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
html[lang="ar"] .fact dt { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.fact dd { margin: 0; font-size: 1.15rem; }
.fact a { transition: color .4s var(--ease); }
.fact a:hover { color: var(--gold); }
.visit__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.map {
  position: relative; min-height: 28rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--cream-faint); background: var(--teal-950);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* tint the stock map into the site's teal */
  filter: grayscale(1) invert(.92) contrast(.85) sepia(.35) hue-rotate(125deg) saturate(1.4) brightness(.95);
}

/* footer */
.footer { background: var(--teal-950); padding-block: 2rem 3rem; }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-top: 3rem; }
.footer .brand__en { font-size: 1.5rem; }
.footer .brand__ar { font-size: 1.3rem; }
.footer__meta { display: grid; gap: .35rem; color: var(--cream-dim); font-size: .95rem; margin-top: 1.2rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--cream-dim); }
html[lang="ar"] .footer__links { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.footer__links a:hover { color: var(--gold); }
.copy { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--cream-faint); color: rgba(246, 237, 206, .55); font-size: .85rem; }

/* scroll reveals */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- mobile menu overlay ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 70; background: var(--teal-950);
  display: grid; align-content: center; justify-items: start; gap: 1.6rem; padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet a:not(.btn) { font-family: var(--font-display); font-size: clamp(2.4rem, 10vw, 3.6rem); font-weight: 500; }
html[lang="ar"] .sheet a:not(.btn) { font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav a:not(.btn) { display: none; }
  .nav { gap: 0; }
  .menu-btn { display: inline-grid; }
  .bento { grid-template-rows: repeat(3, minmax(15rem, 26vw)); }
  .house__grid, .visit__grid { grid-template-columns: 1fr; }
  .plate { max-width: 40rem; margin-inline-end: 1.4rem; }
  .map { min-height: 24rem; }
}
@media (max-width: 767px) {
  :root { --fz: 36px; --header-h: 64px; }
  body { font-size: 1rem; }
  .hero__video--wide { display: none; }
  .hero__video--phone { display: block; }
  .hero__poster { display: none; } /* swap for a phone poster once the phone video exists */
  .hero { padding-block: calc(var(--header-h) + 2rem) calc(var(--fz) + 2.5rem); }
  .header__tools .btn { display: none; } /* call lives in the menu + visit on phones */
  .brand__en { font-size: .95rem; letter-spacing: .2em; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 15rem; grid-template-areas: "a a" "b c" "d d" "e e"; }
  .tile--a { min-height: 21rem; }
  .tile__mark { font-size: 6rem; }
  .tile--a .tile__mark { font-size: 9rem; }
  .fact { grid-template-columns: 1fr; gap: .25rem; }
  .footer__in { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__cta, .visit__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .statement .w { opacity: 1; transform: none; }
  .plate__img { clip-path: none; }
}
