/* ============================================================
   Haseeb Farooqi Jewellery Trading L.L.C
   Warm desert-atelier aesthetic — sand, espresso, burnished gold
   ============================================================ */

:root {
  --sand: #f3ecdf;
  --sand-deep: #ebe1cd;
  --parchment: #e7dcc6;
  --espresso: #2c2216;
  --espresso-deep: #211a10;
  --ink: #3a2e1f;
  --gold: #a87f2f;
  --gold-bright: #c9a04a;
  --gold-soft: #d8bc7e;
  --terra: #a65b32;
  --hairline: rgba(44, 34, 22, 0.16);
  --hairline-light: rgba(243, 236, 223, 0.18);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.05, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay for warmth */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--gold-soft); color: var(--espresso-deep); }

/* ---------- Type helpers ---------- */
.label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

.section {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 6vw, 6rem);
}

.section--dark {
  background: var(--espresso);
  color: var(--sand);
}
.section--dark .label { color: var(--gold-bright); }

.section__head { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--espresso);
  margin-top: 1.1rem;
}
.section--dark .section__title { color: var(--sand); }
.section__title em { color: var(--gold); font-weight: 300; }
.section--dark .section__title em { color: var(--gold-bright); }

/* split-line reveal scaffolding */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; will-change: transform; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--espresso-deep);
  color: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}
.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  font-weight: 350;
  letter-spacing: 0.08em;
  display: flex;
}
.preloader__letter { display: inline-block; color: var(--gold-bright); }
.preloader__line {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9500;
    pointer-events: none;
  }
  .cursor__dot {
    position: absolute;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--gold);
  }
  .cursor__ring {
    position: absolute;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
      margin 0.35s var(--ease-out), opacity 0.3s, background-color 0.3s;
  }
  .cursor__ring::after {
    content: "View";
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    opacity: 0;
    transition: opacity 0.25s;
  }
  body.cursor-hover .cursor__ring {
    width: 54px; height: 54px; margin: -27px 0 0 -27px;
    opacity: 0.9;
  }
  body.cursor-view .cursor__ring {
    width: 78px; height: 78px; margin: -39px 0 0 -39px;
    background: rgba(33, 26, 16, 0.82);
    border-color: transparent;
    opacity: 1;
  }
  body.cursor-view .cursor__ring::after { opacity: 1; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background-color 0.45s, box-shadow 0.45s, padding 0.45s;
}
.nav.is-scrolled {
  background: rgba(243, 236, 223, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav__brand-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--espresso);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 25%, rgba(201, 160, 74, 0.22), transparent 60%);
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--espresso);
}
.nav__brand-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__cta {
  border: 1px solid var(--gold);
  border-radius: 99px;
  padding: 0.55rem 1.3rem;
  color: var(--espresso);
  transition: background-color 0.35s, color 0.35s;
}
.nav__links .nav__cta:hover { background: var(--gold); color: var(--sand); }
.nav__links .nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0.6rem 0.2rem;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 30px;
  height: 1.5px;
  background: var(--espresso);
  transition: transform 0.35s var(--ease-out);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(7rem, 12vh, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(4.5rem, 8vh, 6rem);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(201, 160, 74, 0.16), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(166, 91, 50, 0.1), transparent 60%),
    var(--sand);
}
.hero__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    340px circle at var(--glow-x, 70%) var(--glow-y, 40%),
    rgba(216, 188, 126, 0.45),
    rgba(201, 160, 74, 0.18) 38%,
    transparent 70%
  );
  mix-blend-mode: multiply;
}
.hero__facets {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: var(--gold);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    300px circle at var(--glow-x, 70%) var(--glow-y, 40%),
    rgba(0, 0, 0, 0.85),
    transparent 75%
  );
  mask-image: radial-gradient(
    300px circle at var(--glow-x, 70%) var(--glow-y, 40%),
    rgba(0, 0, 0, 0.85),
    transparent 75%
  );
}
.hero__facets svg { width: 100%; height: 100%; opacity: 0.55; }

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.hero__eyebrow-rule {
  width: clamp(2.4rem, 6vw, 4.5rem);
  height: 1px;
  background: var(--gold);
  flex: none;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(3rem, 9.5vw, 7.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--espresso);
}
.hero__title em { color: var(--gold); }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero__line-inner { display: block; will-change: transform; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.2rem, 4.5vh, 3.5rem);
}
.hero__sub {
  max-width: 30rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 300;
  color: var(--ink);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scrollcue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.4rem, 3vh, 2.2rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__scrollcue span:first-child { writing-mode: vertical-rl; }
.hero__scrollcue-line {
  width: 1px;
  height: 56px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.hero__scrollcue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollcue 2.2s var(--ease-luxe) infinite;
}
@keyframes scrollcue {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.1rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn--solid {
  background: var(--espresso);
  color: var(--sand);
  border: 1px solid var(--espresso);
}
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso-deep); }
.btn--ghost {
  border: 1px solid var(--hairline);
  color: var(--espresso);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.section--dark .btn--ghost { border-color: var(--hairline-light); color: var(--sand); }
.section--dark .btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--sand-deep);
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 350;
  font-style: italic;
  color: var(--espresso);
}
.marquee__track i {
  font-style: normal;
  font-size: 0.5rem;
  color: var(--gold);
}

/* ---------- Atelier ---------- */
.atelier__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.atelier__fig {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.atelier__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.atelier__fig:hover img { transform: scale(1.02); }
.atelier__fig figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.7rem 1.1rem;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  background: linear-gradient(to top, rgba(33, 26, 16, 0.65), transparent);
  width: 100%;
}
.atelier__fig--tall { grid-row: span 2; aspect-ratio: 4 / 5; }
.atelier__fig--wide { aspect-ratio: 16 / 10; margin-top: clamp(1rem, 3vw, 2.5rem); }
.atelier__body { max-width: 36rem; }
.atelier__lede {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--espresso);
  margin-bottom: 1.6rem;
}
.atelier__body p:not(.atelier__lede) { font-weight: 300; }
.atelier__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.atelier__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--gold);
  line-height: 1.1;
}
.atelier__stats span:not([data-count]) {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}
.atelier__stats strong span { font: inherit; color: inherit; }

/* ---------- Stones (dark category rows) ---------- */
.stones__list { border-top: 1px solid var(--hairline-light); }
.stone-row {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1.6fr) 3rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.6rem) 0.5rem;
  border-bottom: 1px solid var(--hairline-light);
  transition: padding-left 0.5s var(--ease-out);
}
.stone-row:hover { padding-left: 1.4rem; }
.stone-row__index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold-bright);
}
.stone-row__name {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
  color: var(--sand);
  transition: color 0.4s;
}
.stone-row:hover .stone-row__name { color: var(--gold-bright); }
.stone-row__desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--sand);
  opacity: 0.6;
  max-width: 28rem;
}
.stone-row__arrow {
  font-size: 1.4rem;
  color: var(--gold-bright);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.stone-row:hover .stone-row__arrow { transform: translateX(0); opacity: 1; }
.stone-row__img {
  position: absolute;
  right: clamp(2rem, 12vw, 10rem);
  top: 50%;
  width: clamp(130px, 16vw, 210px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  transform: translateY(-50%) rotate(-4deg) scale(0.92);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.45s, transform 0.55s var(--ease-out);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.stone-row:hover .stone-row__img {
  opacity: 1;
  transform: translateY(-50%) rotate(2deg) scale(1);
}
.stone-row__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process { background: var(--sand-deep); }
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 2rem 1.6rem 2.2rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--sand);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(44, 34, 22, 0.12);
}
.process-step:nth-child(even) { margin-top: clamp(0rem, 3vw, 2.5rem); }
.process-step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.6rem;
  color: var(--gold-soft);
  line-height: 1;
  display: block;
  margin-bottom: 1.4rem;
}
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.35rem;
  color: var(--espresso);
  margin-bottom: 0.7rem;
}
.process-step p { font-size: 0.9rem; font-weight: 300; }

/* ---------- Featured ---------- */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: start;
}
.featured__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.featured__item--offset { margin-top: clamp(2rem, 5vw, 4.5rem); }
.featured__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease-out);
}
.featured__item:hover img { transform: scale(1.0); }
.featured__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0.2rem 0;
}
.featured__meta em {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--espresso);
}
.featured__meta span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Visit / CTA ---------- */
.visit { position: relative; overflow: hidden; }
.visit::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -25%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 74, 0.14), transparent 65%);
  pointer-events: none;
}
.visit__inner { position: relative; max-width: 1200px; }
.visit__title {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  color: var(--sand);
  margin-top: 1.1rem;
}
.visit__title em { color: var(--gold-bright); }
.visit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  margin: clamp(2.5rem, 6vw, 4.5rem) 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline-light);
}
.visit__block h3 {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}
.visit__block p { font-weight: 300; font-size: 0.95rem; opacity: 0.92; }
.visit__block a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.visit__block a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.visit__cta {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: var(--sand);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold-bright);
  transition: color 0.4s, gap 0.4s var(--ease-out);
}
.visit__cta:hover { color: var(--gold-bright); gap: 2.2rem; }
.visit__cta-arrow { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso-deep);
  color: var(--sand);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 6vw, 6rem) 2rem;
}
.footer__top { border-bottom: 1px solid var(--hairline-light); overflow: hidden; }
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(7rem, 24vw, 20rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 160, 74, 0.35);
  transform: translateY(0.12em);
  user-select: none;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold-bright); }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.phero {
  padding: clamp(9rem, 18vh, 13rem) clamp(1.25rem, 6vw, 6rem) clamp(2.5rem, 5vh, 4rem);
  background:
    radial-gradient(110% 80% at 85% 0%, rgba(201, 160, 74, 0.15), transparent 55%),
    var(--sand);
}
.phero__inner { max-width: 1200px; }
.phero__title {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin-top: 1.2rem;
}
.phero__title em { color: var(--gold); }
.phero__sub {
  max-width: 32rem;
  margin-top: 1.8rem;
  font-weight: 300;
  font-size: 1.02rem;
}
.section--dark .phero__sub { opacity: 0.85; max-width: 36rem; }

/* ---------- Filters ---------- */
.filters {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem clamp(1.25rem, 6vw, 6rem);
  background: rgba(243, 236, 223, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.filters__btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.filters__btn:hover { border-color: var(--gold); color: var(--gold); }
.filters__btn.is-active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--sand);
}

/* ---------- Works grid ---------- */
.works { padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 6vw, 6rem) clamp(6rem, 10vw, 9rem); }
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.work {
  cursor: pointer;
  will-change: transform, opacity;
}
.work:nth-child(3n + 2) { transform: translateY(clamp(0px, 2.5vw, 36px)); }
.work__fig {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}
.work__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 26, 16, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}
.work:hover .work__fig::after { opacity: 1; }
.work__fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s var(--ease-out);
}
.work:hover .work__fig img { transform: scale(1.0); }
.work__head { padding: 1rem 0.2rem 0; }
.work__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--espresso);
}
.work__head p {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}
.work.is-hidden { display: none; }
.works__empty {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  padding: 4rem 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 12, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--sand);
  border-radius: 3px;
  overflow: hidden;
  max-width: 880px;
  width: 100%;
  max-height: min(86vh, 640px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.lightbox__imgwrap { background: var(--parchment); }
.lightbox__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__info {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.lightbox__info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--espresso);
}
.lightbox__meta {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox__desc { font-weight: 300; font-size: 0.95rem; }
.lightbox__info .btn { margin-top: 0.8rem; align-self: flex-start; }
.lightbox__close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--sand);
  color: var(--espresso);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.lightbox__close:hover { background: var(--espresso); color: var(--sand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stone-row { grid-template-columns: 3rem minmax(0, 1fr) 2.4rem; }
  .stone-row__desc { display: none; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work:nth-child(3n + 2) { transform: none; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--espresso-deep);
    font-size: 1.05rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s;
  }
  .nav__links a { color: var(--sand); }
  .nav__links .nav__cta { color: var(--sand); }
  body.nav-open .nav__links { opacity: 1; pointer-events: auto; z-index: 950; }
  .nav__toggle { display: flex; position: relative; z-index: 960; }
  body.nav-open .nav__toggle span { background: var(--sand); }
  body.nav-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  body.nav-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__brand-text { display: none; }

  .atelier__grid { grid-template-columns: 1fr; }
  .atelier__fig--tall { grid-row: auto; }
  .featured__grid { grid-template-columns: 1fr; }
  .featured__item--offset { margin-top: 0; }
  .visit__grid { grid-template-columns: 1fr; gap: 2rem; }
  .lightbox__panel { grid-template-columns: 1fr; overflow-y: auto; max-height: 88vh; }
  .lightbox__imgwrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .process__steps { grid-template-columns: 1fr; }
  .process-step:nth-child(even) { margin-top: 0; }
  .works__grid { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scrollcue { display: none; }
  .atelier__stats { grid-template-columns: 1fr 1fr; }
}

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