:root {
  --bg: #faf9f7;
  --text: #0d0d0d;
  --gold: #b8860b;
  --muted: #4a4a4a;
  --line: rgba(13, 13, 13, 0.22);
  --line-light: rgba(250, 249, 247, 0.32);
  --overlay: rgba(13, 13, 13, 0.32);
  --shadow: 0 22px 70px rgba(13, 13, 13, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 1s var(--ease), opacity 1s var(--ease), border-color 1s var(--ease), transform 1s var(--ease);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
 h2,
 h3,
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

p,
a,
span,
strong {
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 4vw;
  border-bottom: 0.5px solid transparent;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.3), rgba(13, 13, 13, 0));
  transition: background 1s var(--ease), backdrop-filter 1s var(--ease), border-color 1s var(--ease), padding 1s var(--ease);
}

.navbar.scrolled {
  padding-block: 1rem;
  background: rgba(250, 249, 247, 0.82);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.logo {
  font-size: 1.75rem;
  letter-spacing: 0.18em;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar nav a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.navbar nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 0.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.2s var(--ease);
}

.navbar nav a:hover::after,
.navbar nav a:focus-visible::after {
  transform: scaleX(1);
}

.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem 6vw 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('https://images.unsplash.com/photo-1584917865442-de89df76afd3?auto=format&fit=crop&w=1800&q=80');
  color: #fff8ef;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.28), rgba(13, 13, 13, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  line-height: 0.88;
}

.hero-text {
  width: min(560px, 90%);
  margin: 1.6rem auto 0;
  font-size: 1.02rem;
  color: rgba(255, 248, 239, 0.88);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 0.5px solid rgba(255, 248, 239, 0.7);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.collection {
  background: var(--bg);
}

.collection-item {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(280px, 40%);
  align-items: stretch;
  border-top: 0.5px solid var(--line);
}

.collection-item-alt {
  grid-template-columns: minmax(280px, 40%) minmax(0, 60%);
}

.collection-item-alt .collection-image-wrap {
  order: 2;
}

.collection-item-alt .collection-copy {
  order: 1;
}

.collection-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.collection-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.02), rgba(13, 13, 13, 0.16));
}

.collection-image-wrap img,
.masonry-image-wrap img {
  transition: transform 1.5s var(--ease), filter 1.5s var(--ease);
}

.collection-item:hover .collection-image-wrap img,
.masonry-card:hover .masonry-image-wrap img {
  transform: scale(1.05);
}

.collection-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(180deg, rgba(250, 249, 247, 0.98), rgba(250, 249, 247, 0.92));
}

.collection-copy h2,
.section-heading h2,
.story-panel h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.94;
}

.collection-copy p:not(.eyebrow),
.story-panel p:not(.eyebrow) {
  max-width: 30rem;
  color: var(--muted);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin: 1.6rem 0 1rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--line);
}

.product-meta span {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.price {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.products-section {
  padding: 7rem 4vw;
  border-top: 0.5px solid var(--line);
}

.section-heading {
  margin: 0 auto 3rem;
  max-width: 900px;
  text-align: center;
}

.masonry-grid {
  column-count: 2;
  column-gap: 1.5rem;
}

.masonry-card {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  min-height: 34rem;
  background: #e9e5de;
  box-shadow: var(--shadow);
}

.masonry-card.tall {
  min-height: 46rem;
}

.masonry-image-wrap {
  position: absolute;
  inset: 0;
}

.masonry-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.56));
}

.masonry-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #fff8ef;
}

.masonry-overlay h3 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.96;
}

.masonry-overlay p {
  margin: 0.6rem 0 0;
  color: rgba(255, 248, 239, 0.82);
}

.brand-story {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 4vw;
  background-image: linear-gradient(rgba(13, 13, 13, 0.48), rgba(13, 13, 13, 0.48)), url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1800&q=80');
}

.story-panel {
  max-width: 820px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff8ef;
  border: 0.5px solid var(--line-light);
  background: rgba(13, 13, 13, 0.24);
  backdrop-filter: blur(8px);
}

.story-panel p:not(.eyebrow) {
  margin-inline: auto;
  color: rgba(255, 248, 239, 0.88);
}

.contact {
  padding: 6rem 4vw 5rem;
  text-align: center;
  background: var(--bg);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.contact-links a {
  color: var(--gold);
  font-size: 1.05rem;
  border-bottom: 0.5px solid rgba(184, 134, 11, 0.4);
  padding-bottom: 0.25rem;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.footer {
  padding: 1.4rem 4vw 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 0.5px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(72px);
  transition: opacity 1.25s var(--ease), transform 1.25s var(--ease);
}

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

@media (max-width: 1080px) {
  .collection-item,
  .collection-item-alt {
    grid-template-columns: 1fr;
  }

  .collection-item-alt .collection-image-wrap,
  .collection-item-alt .collection-copy {
    order: initial;
  }

  .collection-image-wrap {
    min-height: 60vh;
  }

  .collection-copy {
    min-height: 40vh;
  }
}

@media (max-width: 820px) {
  .navbar {
    padding-inline: 1.2rem;
    gap: 1rem;
  }

  .navbar nav {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .navbar nav a {
    font-size: 0.68rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5.6rem);
  }

  .products-section,
  .contact,
  .brand-story {
    padding-inline: 1.2rem;
  }

  .masonry-grid {
    column-count: 1;
  }

  .masonry-card,
  .masonry-card.tall {
    min-height: 32rem;
  }

  .brand-story {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo {
    font-size: 1.45rem;
  }

  .collection-copy,
  .story-panel {
    padding: 1.5rem;
  }

  .collection-copy h2,
  .section-heading h2,
  .story-panel h2,
  .masonry-overlay h3 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .eyebrow {
    letter-spacing: 0.28em;
  }
}
