/* ============================================================
   HOUSE OF MOZAFARIAN
   Three centuries of fine art in jewellery · EST. 1702
   Shared design system — museum-grade luxury front-end
   ============================================================ */

:root {
  --ink:    #0a0a0c;
  --ink-2:  #101013;
  --ink-3:  #16161b;
  --ink-4:  #1d1d23;
  --bone:   #f3efe8;
  --bone-2: #ddd6ca;
  --gold:   #c9a86a;     /* champagne gold */
  --gold-lt:#e3c994;
  --gold-dk:#9c814c;
  --teal:   #5aa8a0;     /* Persian turquoise accent */
  --teal-lt:#8fccc5;
  --line:   rgba(201, 168, 106, 0.26);
  --line-2: rgba(243, 239, 232, 0.10);
  --muted:  rgba(243, 239, 232, 0.55);
  --muted-2:rgba(243, 239, 232, 0.40);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 76rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Section scaffolding ---------- */
section { position: relative; padding: clamp(4.5rem, 10vw, 9rem) clamp(1.4rem, 6vw, 7rem); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: 0.65; }
.center .kicker::after { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: 0.65; }
.kicker.teal { color: var(--teal-lt); }
.kicker.teal::before, .kicker.teal::after { background: var(--teal-lt); }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.01em; }
.title {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1.07;
  margin-bottom: 1.6rem;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.7vw, 1.9rem);
  font-weight: 300; line-height: 1.5;
  color: var(--bone-2);
  max-width: 40ch;
}
.center .lead { margin-left: auto; margin-right: auto; }
.prose p { color: var(--muted); margin-bottom: 1.2rem; max-width: 64ch; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--bone-2); font-weight: 400; }
.prose em { color: var(--gold-lt); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.95rem 1.9rem; border-radius: 40px;
  border: 1px solid var(--gold); color: var(--gold-lt);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s;
  cursor: pointer; background: transparent;
}
.btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn--ghost { border-color: var(--line); color: var(--bone); }
.btn--ghost:hover { background: rgba(243,239,232,.06); color: var(--bone); border-color: var(--bone-2); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__crown { width: 64px; opacity: 0; transform: translateY(14px); animation: plRise 0.9s var(--ease) 0.1s forwards; }
.preloader__word {
  font-family: var(--serif); font-size: clamp(1.3rem, 5vw, 2.1rem);
  letter-spacing: 0.5em; padding-left: 0.5em; color: var(--gold);
  opacity: 0; animation: plFade 1s var(--ease) 0.5s forwards;
}
.preloader__line { width: min(240px, 60vw); height: 1px; background: rgba(201,168,106,.18); overflow: hidden; }
.preloader__line i { display: block; height: 100%; width: 0; background: var(--gold); animation: plLine 1.5s var(--ease) .5s forwards; }
@keyframes plRise { to { opacity: 1; transform: translateY(0); } }
@keyframes plFade { to { opacity: 1; } }
@keyframes plLine { to { width: 100%; } }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
  z-index: 1000;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.4rem, 6vw, 4rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(16px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-2);
}
.nav__brand { display: flex; align-items: center; gap: 0.75rem; }
.nav__crown { width: 30px; height: auto; transition: width 0.5s var(--ease); }
.nav.scrolled .nav__crown { width: 26px; }
.nav__word {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1;
  letter-spacing: 0.3em; padding-left: 0.3em; color: var(--bone);
}
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); position: relative; transition: color 0.4s; white-space: nowrap;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--bone); }
.nav__cta {
  border: 1px solid var(--line); padding: 0.55rem 1.25rem; border-radius: 40px; color: var(--gold-lt) !important;
}
.nav__cta:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold); }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 901; }
.nav__toggle span { width: 26px; height: 1.5px; background: var(--bone); transition: 0.4s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(10,10,12,.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.08em; color: var(--bone); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { font-family: var(--sans); font-size: 0.8rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroIn 2.4s var(--ease) forwards; transform: scale(1.08); }
@keyframes heroIn { to { opacity: 0.5; transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(10,10,12,.35) 0%, rgba(10,10,12,.72) 70%, var(--ink) 100%),
    linear-gradient(to bottom, rgba(10,10,12,.6), rgba(10,10,12,.35) 40%, var(--ink));
}
.hero__inner { position: relative; z-index: 2; padding: 0 1.2rem; }
.hero__crown { width: clamp(80px, 11vw, 124px); margin: 0 auto 1.4rem; filter: drop-shadow(0 6px 22px rgba(0,0,0,.65)) drop-shadow(0 0 26px rgba(201,168,106,.35)); }
.hero__title {
  font-size: clamp(2.8rem, 11vw, 8rem); line-height: 0.98; letter-spacing: clamp(0.06em, 1vw, 0.14em);
  padding-left: clamp(0.06em, 1vw, 0.14em);
  background: linear-gradient(180deg, #f6ecdc 0%, var(--gold-lt) 46%, var(--gold-dk) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.7rem); color: var(--bone-2); margin-top: 1.4rem; }
.hero__est { font-size: 0.74rem; letter-spacing: 0.46em; padding-left: 0.46em; text-transform: uppercase; color: var(--muted); margin-top: 1.5rem; }
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content:""; position:absolute; top:-40px; left:0; width:1px; height:40px; background: var(--gold-lt); animation: scrollDot 2.2s var(--ease) infinite; }
@keyframes scrollDot { 0%{top:-40px} 60%,100%{top:40px} }

/* page hero (interior pages) — shorter */
.page-hero { min-height: 64vh; }
.page-hero .hero__bg img { animation: heroInDim 2.4s var(--ease) forwards; }
@keyframes heroInDim { to { opacity: 0.42; transform: scale(1); } }
.page-hero .hero__title { font-size: clamp(2.4rem, 8vw, 5.5rem); }

/* ============================================================
   INTRO / STATEMENT
   ============================================================ */
.statement { background: var(--ink-2); text-align: center; }
.statement .lead { font-size: clamp(1.5rem, 4vw, 2.7rem); max-width: 24ch; margin: 0 auto; color: var(--bone); }
.statement .lead em { color: var(--gold-lt); font-style: italic; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1px; margin-top: 3.5rem; background: var(--line-2); border: 1px solid var(--line-2); }
.pillar { background: var(--ink-2); padding: 2.4rem 1.4rem; }
.pillar h4 { font-size: 1.35rem; color: var(--gold-lt); margin-bottom: 0.5rem; }
.pillar p { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   SPLIT (image + text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 7vw, 6rem); }
.split__media { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.4s var(--ease); }
.split:hover .split__media img { transform: scale(1.05); }
.split--rev .split__media { order: 2; }
.split__media.wide img { aspect-ratio: 4/3; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem, 1.6vw, 1.1rem); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gcard {
  position: relative; overflow: hidden; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--ink-3);
}
.gcard img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform 1.2s var(--ease), opacity 0.6s; }
.gcard.tall img { aspect-ratio: 3/4; }
.gcard:hover img { transform: scale(1.06); }
.gcard__cap {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; opacity: 0; transition: opacity 0.5s var(--ease);
  background: linear-gradient(to top, rgba(10,10,12,.86) 0%, rgba(10,10,12,.1) 55%, transparent 100%);
}
.gcard:hover .gcard__cap, .gcard:focus-visible .gcard__cap { opacity: 1; }
.gcard__cap h4 { font-size: 1.3rem; color: var(--bone); line-height: 1.1; }
.gcard__cap span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 0.4rem; }

/* ============================================================
   TIMELINE
   ============================================================ */
.tl { position: relative; max-width: 60rem; margin: 0 auto; padding-left: clamp(1rem, 8vw, 5rem); }
.tl::before { content:""; position:absolute; left: clamp(0.2rem, 6.4vw, 4rem); top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(201,168,106,.05)); }
.tl__item { position: relative; display: grid; grid-template-columns: 7rem 1fr; gap: clamp(1rem,4vw,3rem); padding: 2rem 0; }
.tl__item::before { content:""; position:absolute; left: clamp(-2.9rem, calc(6.4vw - 4rem - 4px), -0.95rem); top: 2.7rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(201,168,106,.12); }
.tl__year { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.5rem); color: var(--gold); line-height: 1; }
.tl__body h3 { font-weight: 500; font-size: clamp(1.25rem, 3vw, 1.7rem); margin-bottom: 0.6rem; }
.tl__body p { color: var(--muted); max-width: 48ch; font-size: 0.98rem; }
.tl__body strong { color: var(--bone-2); font-weight: 400; } .tl__body em { color: var(--gold-lt); font-style: italic; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote { background: var(--ink-2); text-align: center; }
.quote blockquote { position: relative; max-width: 44rem; margin: 0 auto; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.5; color: var(--bone-2); padding-top: 2.6rem; }
.quote .mark { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 6rem; color: var(--gold); opacity: 0.35; line-height: 1; }
.quote cite { display: block; margin-top: 1.8rem; font-style: normal; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2.2rem; }
.step span { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); display: inline-block; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; min-width: 2.4rem; }
.step h4 { font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   CREDENTIALS / LOGOS ROW
   ============================================================ */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem,6vw,4.5rem); }
.logos img { height: clamp(46px, 8vw, 70px); width: auto; opacity: 0.8; filter: brightness(0) invert(1); transition: opacity 0.4s; }
.logos img.nofilter { filter: none; }
.logos img:hover { opacity: 1; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  text-align: center;
  background: linear-gradient(rgba(10,10,12,.82), rgba(10,10,12,.92)),
    radial-gradient(70% 80% at 80% 10%, rgba(201,168,106,.22), transparent 60%), var(--ink-2);
}
.cta .title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.4rem; max-width: 58rem; margin: 0 auto; }
.contact-card { border: 1px solid var(--line); border-radius: 4px; padding: 2.8rem 2rem; background: linear-gradient(160deg, rgba(201,168,106,.05), transparent); transition: transform 0.6s var(--ease), border-color 0.6s; }
.contact-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.contact-card h3 { font-size: 1.8rem; color: var(--gold-lt); margin-bottom: 1rem; }
.contact-card p { color: var(--muted); margin-bottom: 1.1rem; }
.contact-card a.line { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--bone); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color 0.4s, color 0.4s; }
.contact-card a.line:hover { color: var(--gold-lt); border-color: var(--gold); }

/* Form */
.form { max-width: 40rem; margin: 0 auto; display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--bone);
  padding: 0.85rem 1rem; border-radius: 3px; font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  transition: border-color 0.4s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-2); border-top: 1px solid var(--line-2); padding: clamp(3.5rem,7vw,5rem) clamp(1.4rem,6vw,4rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto 3rem; }
.footer__brand .nav__crown { width: 40px; margin-bottom: 1rem; }
.footer__word { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.28em; padding-left: 0.28em; color: var(--gold); margin-bottom: 0.8rem; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer__col h5 { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer__col a, .footer__col p { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; transition: color 0.4s; }
.footer__col a:hover { color: var(--bone); }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.footer__bottom p { font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.04em; max-width: 60ch; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem,5vw,4rem); background: rgba(7,7,9,.93); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox img { max-width: 100%; max-height: 82vh; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(0.96); transition: transform 0.45s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox figcaption { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bone-2); text-align: center; }
.lightbox__close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2.4rem); width: 48px; height: 48px; border-radius: 50%; background: rgba(201,168,106,.12); border: 1px solid var(--line); color: var(--bone); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background 0.4s, color 0.4s; }
.lightbox__close:hover { background: var(--gold); color: var(--ink); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .split--rev .split__text { order: 2; }
  .split__media img { aspect-ratio: 4/3; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tl__item { grid-template-columns: 1fr; gap: 0.3rem; }
  .tl__item::before { top: 2.4rem; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { opacity: 0.5; transform: none; }
}
