:root {
  --bg: #0a0b0d;
  --bg-soft: #101216;
  --bg-lift: #14161a;
  --text: #f3efe6;
  --muted: rgba(243, 239, 230, 0.68);
  --line: rgba(201, 162, 94, 0.22);
  --gold: #c9a25e;
  --shadow: rgba(0, 0, 0, 0.55);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 94, 0.09), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-lift) 100%);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.8;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 7rem clamp(1.25rem, 5vw, 5rem) 5rem;
  overflow: hidden;
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
  animation: heroZoom 24s ease-out infinite alternate;
}

.hero__video {
  z-index: -2;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero__video.is-visible {
  opacity: 1;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.74), rgba(10, 11, 13, 0.20) 48%, rgba(10, 11, 13, 0.42)),
    linear-gradient(180deg, rgba(10, 11, 13, 0.42), rgba(10, 11, 13, 0.05) 42%, rgba(10, 11, 13, 0.88));
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem clamp(1.25rem, 5vw, 5rem);
  color: rgba(243, 239, 230, 0.84);
}

.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.4vw, 2rem);
  font-size: 0.88rem;
}

.topbar__links a {
  color: rgba(243, 239, 230, 0.72);
  transition: color 180ms ease;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
  color: var(--gold);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 6vh;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  max-width: 11ch;
}

.hero__line {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(243, 239, 230, 0.82);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 300;
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 2rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateX(50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.28);
  backdrop-filter: blur(12px);
}

.scroll-cue span {
  position: absolute;
  inset: 0;
}

.scroll-cue span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0.58rem;
  height: 0.58rem;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section-band {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.section-head,
.figures__grid,
.spec-strip,
.gallery__group,
.split,
.interior-grid,
.footer p {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-head h2,
.split__copy h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
}

.figures {
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.96), rgba(17, 19, 23, 0.94));
}

.figures__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.figure-card {
  min-width: 0;
  padding: clamp(1.5rem, 3.6vw, 3rem);
  border-inline-start: 1px solid var(--line);
}

.figure-card:last-child {
  border-inline-start: 0;
}

.figure-card__label {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.figure-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.15rem, 5.4vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.figure-card small {
  display: block;
  margin-top: 1rem;
  color: var(--gold);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.spec-strip p {
  min-width: 0;
  margin: 0;
  padding: 1.15rem clamp(1.1rem, 3vw, 1.8rem);
  background: rgba(20, 22, 26, 0.72);
  color: rgba(243, 239, 230, 0.78);
}

.spec-strip span {
  display: inline-block;
  margin-inline-end: 0.7rem;
  color: var(--text);
  font-weight: 700;
}

.gallery {
  background: linear-gradient(180deg, #101216, #0b0c0f 52%, #111318);
}

.gallery__group + .gallery__group {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.gallery__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gallery__title h3 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(14rem, 20vw, 19rem);
  gap: 0.75rem;
}

.gallery__grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(13rem, 18vw, 17rem);
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(201, 162, 94, 0.14);
  background: #0d0f12;
  color: inherit;
  cursor: zoom-in;
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(10, 11, 13, 0.28));
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 300ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.location {
  background: linear-gradient(180deg, #111318, #0a0b0d);
}

.interior {
  background: linear-gradient(180deg, #0a0b0d, #14161a);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.split--reverse .split__copy {
  order: 2;
}

.split__copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
}

.image-panel {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 94, 0.16);
  background: #0d0f12;
  box-shadow: 0 2rem 6rem var(--shadow);
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, 0.03);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: clamp(22rem, 42vw, 40rem);
  object-fit: cover;
}

.interior-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.interior-grid:empty {
  display: none;
}

.interior-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 94, 0.14);
}

.footer {
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid rgba(201, 162, 94, 0.14);
  background: #0a0b0d;
}

.footer p {
  margin: 0;
  color: rgba(243, 239, 230, 0.58);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 6, 8, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__frame {
  width: min(1120px, 100%);
  margin: 0;
}

.lightbox__frame img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
  background: #050608;
}

.lightbox__frame figcaption {
  margin-top: 0.75rem;
  color: rgba(243, 239, 230, 0.72);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 94, 0.28);
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.72);
  color: var(--text);
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  left: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: clamp(2.7rem, 6vw, 3.5rem);
  height: clamp(2.7rem, 6vw, 3.5rem);
  transform: translateY(-50%);
  color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav--prev {
  left: 1rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 100svh;
    padding: 7rem 1.25rem 5rem;
  }

  .topbar {
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }

  .topbar__links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem 1rem;
    max-width: 58vw;
    font-size: 0.78rem;
  }

  .brand {
    max-width: 9rem;
    line-height: 1.35;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.3rem);
  }

  .figures__grid,
  .spec-strip,
  .split,
  .split--reverse,
  .interior-grid {
    grid-template-columns: 1fr;
  }

  .figure-card {
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .figure-card:last-child {
    border-bottom: 0;
  }

  .split--reverse .split__copy {
    order: initial;
  }

  .gallery__grid,
  .gallery__grid--compact {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 13rem;
  }

  .gallery-item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 520px) {
  .topbar__links {
    display: none;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(10, 11, 13, 0.92), rgba(10, 11, 13, 0.48)),
      linear-gradient(180deg, rgba(10, 11, 13, 0.46), rgba(10, 11, 13, 0.14) 42%, rgba(10, 11, 13, 0.94));
  }

  .section-band {
    padding: 4rem 1rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .section-head h2,
  .split__copy h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .figure-card {
    padding: 1.35rem 0;
  }

  .figure-card strong {
    font-size: clamp(2.1rem, 15vw, 3.6rem);
  }

  .spec-strip p {
    padding: 1rem;
  }

  .spec-strip span {
    display: block;
    margin-inline-end: 0;
    margin-bottom: 0.25rem;
  }

  .gallery__grid,
  .gallery__grid--compact {
    grid-template-columns: 1fr;
    grid-auto-rows: 15rem;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .image-panel img {
    min-height: 18rem;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

/* ── الهيرو: بنية مستعارة من موقع One Marine (محتوى أسفل · شارة · زرّان · شريط أرقام) ── */
.hero { align-items: end; }
.hero__content { padding-bottom: clamp(2rem, 6vh, 5rem); padding-top: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  padding: .4rem 1rem; border-radius: 99px; font-size: .85rem; margin-bottom: 1.1rem;
  backdrop-filter: blur(6px);
}
.hero h1 em { font-style: normal; color: #d8b271; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; border-radius: 12px;
  padding: .85rem 1.7rem; font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: transform .2s, background .2s;
}
.btn--solid { background: #c9a25e; color: #14161a; box-shadow: 0 10px 34px rgba(201,162,94,.32); }
.btn--solid:hover { background: #d8b271; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.09); color: #f4f1ea; border: 1.5px solid rgba(255,255,255,.34); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.hero__stats {
  display: flex; flex-wrap: wrap; margin-top: 2.4rem;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem;
}
.hero__stats div { padding-inline-end: 1.8rem; margin-inline-end: 1.8rem;
  border-inline-end: 1px solid rgba(255,255,255,.15); }
.hero__stats div:last-child { border: 0; margin: 0; padding: 0; }
.hero__stats b { display: block; font-size: 1.7rem; font-weight: 700; color: #d8b271; line-height: 1.25; }
.hero__stats small { font-size: .95rem; font-weight: 500; }
.hero__stats span { font-size: .85rem; color: #b9b3a6; }
/* زحف بطيء جداً على الخلفية — بديل هادئ لتأثير الموج بموقع البحر */
.hero__poster { animation: heroDrift 26s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.11) translate3d(1.2%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero__poster { animation: none; } }
@media (max-width: 640px) {
  .hero__stats div { padding-inline-end: 1rem; margin-inline-end: 1rem; }
  .hero__stats b { font-size: 1.3rem; }
  .btn { padding: .75rem 1.25rem; font-size: .92rem; }
}
