/* Farah Hakemi — Art Advisor & Dealer */

:root {
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1d1a17;
  --ink-soft: #4a443d;
  --muted: #8a8177;
  --line: #e4ddd1;
  --gold: #a8843f;
  --gold-soft: #c9ac6f;
  --plum: #3b2a3f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

p { margin: 0 0 1.2em; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.8rem 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .38em;
  color: var(--muted);
  margin-top: .15rem;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.6rem; align-items: center; }

.nav a, .nav .has-sub > span {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .5rem 0;
  position: relative;
  cursor: pointer;
}

.nav > ul > li > a::after,
.nav .has-sub > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}

.nav a:hover, .nav a.active, .nav .has-sub:hover > span, .nav .has-sub.active > span { color: var(--ink); }
.nav > ul > li > a:hover::after, .nav > ul > li > a.active::after,
.nav .has-sub:hover > span::after, .nav .has-sub.active > span::after { width: 100%; }

.has-sub { position: relative; }

.has-sub > span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  right: -14px;
  top: 13px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(29, 26, 23, .08);
  padding: .8rem 0 !important;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
}

.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu a {
  display: block;
  padding: .7rem 1.6rem !important;
  font-size: .74rem !important;
  letter-spacing: .16em !important;
}

.submenu a:hover { background: var(--ivory); color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform .3s var(--ease), background .3s;
}

.menu-toggle span { top: 22px; }
.menu-toggle span::before { top: -7px; left: 0; }
.menu-toggle span::after { top: 7px; left: 0; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  min-height: clamp(560px, calc(100vh - 88px), 820px);
  background: var(--ivory);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw 4rem max(1.5rem, calc((100vw - var(--wrap)) / 2));
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 300;
  letter-spacing: .02em;
  margin-bottom: .2em;
}

.hero h1 em { font-style: italic; color: var(--gold); }

.hero .lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.hero-meta div { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: 0; color: var(--ink); text-transform: none; line-height: 1.1; }

.hero-image { position: relative; overflow: hidden; background: var(--plum); }

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 25%;
  animation: slowzoom 18s var(--ease) forwards;
}

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all .35s var(--ease);
}

.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--ivory); }

.section-head { max-width: 640px; margin-bottom: 4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .rule { margin-inline: auto; }
.section-head h2 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 300; }
.section-head p { color: var(--ink-soft); }
.section-dark .section-head p { color: #c9c1b5; }

/* ---------- Career timeline ---------- */

.timeline { position: relative; display: grid; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child { border-bottom: 1px solid var(--line); }

.timeline-date {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.2;
}

.timeline-body h3 { font-size: 1.85rem; margin-bottom: .8rem; }

.timeline-body ul { list-style: none; margin: 0; padding: 0; }

.timeline-body li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}

.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

.artwork { margin: 0; cursor: zoom-in; }

.artwork .frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #ece6dc;
}

.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}

.artwork .frame::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(29, 26, 23, .35);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.artwork:hover img { transform: scale(1.05); }
.artwork:hover .frame::after { opacity: 1; }

.artwork figcaption { padding-top: 1rem; }
.artwork figcaption strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.artwork figcaption span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.section-dark .artwork figcaption span { color: #9d9488; }
.section-dark .artwork .frame { background: #2a2622; }

.center-cta { text-align: center; margin-top: 4rem; }
.section-dark .btn-ghost { color: var(--ivory); border-color: var(--ivory); }
.section-dark .btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Page header ---------- */

.page-hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; }
.page-hero p { color: var(--ink-soft); max-width: 600px; margin: 0 auto; font-family: var(--serif); font-size: 1.3rem; font-style: italic; }

.breadcrumb { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 .7rem; color: var(--gold-soft); }

/* ---------- Exhibition ---------- */

.exhibition {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.exhibition .intro {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  line-height: 1.5;
  color: var(--ink);
}

.details {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.6rem;
  position: sticky;
  top: 120px;
}

.details h3 { font-size: 1.6rem; margin-bottom: 1.6rem; }

.details dl { margin: 0; }
.details dt { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 1.4rem; }
.details dt:first-child { margin-top: 0; }
.details dd { margin: .3rem 0 0; color: var(--ink-soft); }
.details .btn { margin-top: 2.2rem; width: 100%; justify-content: center; }

.word-mark {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7.2vw, 6.6rem);
  font-weight: 300;
  letter-spacing: .08em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-soft);
  text-align: center;
  line-height: 1;
  margin-top: clamp(4rem, 8vw, 7rem);
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 7vw, 6rem);
}

.contact-aside h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 300; }
.contact-aside p { color: var(--ink-soft); }
.contact-aside img { margin-top: 2.5rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: 75% 20%; width: 100%; max-width: 380px; }

.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.4rem); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.field { margin-bottom: 1.8rem; }

.field label {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .55rem;
}

.field label .req { color: var(--gold); }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  border-radius: 0;
  transition: border-color .3s var(--ease);
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }

.check { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--ink-soft); margin-bottom: 2rem; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }

.hp { position: absolute; left: -9999px; }

.form-note { font-size: .82rem; color: var(--muted); margin-top: 1.4rem; margin-bottom: 0; }

.alert { padding: 1.1rem 1.4rem; margin-bottom: 2rem; border-left: 2px solid var(--gold); background: var(--ivory); font-size: .95rem; }
.alert.error { border-left-color: #a0473d; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b9b0a4; padding: 5rem 0 2.2rem; font-size: .92rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #36312c;
}

.site-footer .brand { color: var(--ivory); }
.site-footer .brand small { color: #8a8177; }
.site-footer h4 { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-tag { margin-top: 1.4rem; max-width: 34ch; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: .76rem; letter-spacing: .1em; color: #7d756b; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 16, 14, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox figure { margin: 0; text-align: center; max-width: 88vw; }
.lightbox img { max-height: 78vh; max-width: 100%; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: var(--ivory); margin-top: 1.4rem; font-family: var(--serif); font-size: 1.4rem; }
.lightbox figcaption small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: #8a8177; margin-top: .3rem; }

.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  padding: 1rem 1.3rem;
  opacity: .7;
  transition: opacity .3s, color .3s;
}

.lb-btn:hover { opacity: 1; color: var(--gold-soft); }
.lb-close { top: 1rem; right: 1.2rem; font-size: 2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .menu-toggle { display: block; z-index: 60; }

  /* backdrop-filter would trap the fixed overlay inside the header */
  .site-header { backdrop-filter: none; background: var(--ivory); }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 55;
    background: var(--ivory);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }

  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .nav ul { flex-direction: column; gap: 1.8rem; text-align: center; }
  .nav a, .nav .has-sub > span { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; text-transform: none; }
  .has-sub > span::before { display: none; }

  .submenu {
    position: static;
    transform: none !important;
    opacity: inherit;
    visibility: inherit;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: .4rem 0 0 !important;
    min-width: 0;
  }

  .submenu a { font-family: var(--sans) !important; font-size: .78rem !important; letter-spacing: .2em !important; text-transform: uppercase !important; color: var(--gold) !important; padding: .3rem 0 !important; }
  .submenu a:hover { background: none; }

  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-image { height: min(68vh, 560px); order: -1; }
  .hero-text { padding: 3.5rem 1.5rem 4.5rem; }

  .timeline-item { grid-template-columns: 1fr; gap: .6rem; }
  .exhibition, .contact-grid { grid-template-columns: 1fr; }
  .details { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .header-inner { height: 74px; }
  .brand { font-size: 1.25rem; letter-spacing: .2em; }
  .hero-meta { gap: 1.3rem; justify-content: space-between; }
  .hero-meta strong { font-size: 1.7rem; }
  .hero-meta div { font-size: .68rem; letter-spacing: .1em; }
  .hero .eyebrow { letter-spacing: .2em; font-size: .66rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .artwork figcaption strong { font-size: 1.1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

.gallery-grid.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 600px) { .gallery-grid.grid-3 { grid-template-columns: 1fr 1fr; gap: 1rem; } }

.gallery-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.artwork.feature { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery-grid.grid-4 { grid-template-columns: 1fr 1fr; } }

.footer-bottom a { color: #b9b0a4; border-bottom: 1px solid #4a443d; }
.footer-bottom a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }
