/* ==========================================================================
   Home - one long, scroll-driven story.
   home.js writes --p (0 -> 1 while a [data-progress] block crosses the screen)
   and drives the services list and the experience steps. Every block reads
   correctly without JavaScript and stands still under reduced motion.
   ========================================================================== */

/* 1. Office intro ----------------------------------------------------------- */

.intro-hero {
  --p: 0;
  position: relative; min-height: 100svh; display: flex; align-items: stretch;
  overflow: hidden; background: var(--charcoal); isolation: isolate;
}
.intro-hero__media { position: absolute; inset: 0; z-index: -2; }
.intro-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-hero__office {
  transform: scale(calc(1.04 + var(--p) * .3)) translateY(calc(var(--p) * 10%));
  filter: brightness(calc(.95 - var(--p) * .45)) saturate(1.08) contrast(1.04);
  animation: intro-breathe 18s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes intro-breathe { from { object-position: 50% 50%; } to { object-position: 56% 46%; } }
.intro-seq { display: none; }
.intro-hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* The photo stays bright; only the band behind the copy and the very edges are darkened. */
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(13,13,13,.55) 100%),
    linear-gradient(0deg, var(--charcoal) 0%, rgba(13,13,13,.78) 22%, rgba(13,13,13,.35) 46%, transparent 64%, transparent 82%, rgba(13,13,13,.5) 100%);
}

.intro-hero__inner {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  padding-block: calc(var(--header-offset, 120px) + var(--s-6)) var(--s-7);
  transform: translateY(calc(var(--p) * -140px)) scale(calc(1 - var(--p) * .12));
  opacity: calc(1 - var(--p) * 1.6);
  filter: blur(calc(var(--p) * 6px));
}
.intro-hero__title, .intro-hero__lead, .intro-hero__body { text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.intro-hero__copy { position: relative; max-width: 760px; isolation: isolate; }
/* A soft pool of shade behind the words only, so the photo around them can stay bright. */
.intro-hero__copy::before {
  content: ""; position: absolute; z-index: -1; inset: -30% -20% -40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,9,8,.6) 0%, rgba(10,9,8,.38) 45%, rgba(10,9,8,0) 72%);
  pointer-events: none;
}
.intro-hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1.05;
  color: var(--ivory); margin: 0 0 var(--s-4);
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.intro-hero__lead, .intro-hero__body { color: rgba(233,225,214,.86); font-size: clamp(1rem, .92rem + .3vw, 1.18rem); line-height: 1.75; margin: 0 auto var(--s-3); max-width: 52ch; }
.intro-hero__body { margin-block-end: 0; }

.intro-hero__actions { display: flex; justify-content: center; gap: clamp(var(--s-5), 5vw, var(--s-8)); margin-block: var(--s-7) var(--s-6); }
.intro-act { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); color: var(--ivory); font-size: var(--fs-sm); min-width: 120px; }
.intro-act svg {
  width: 62px; height: 62px; padding: 14px; border-radius: 50%;
  fill: none; stroke: var(--rose); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
  border: 1px solid rgba(212,178,156,.35); background: rgba(13,13,13,.35);
  transition: background .5s, stroke .5s, transform .6s var(--ease-out), box-shadow .5s;
}
.intro-act:hover svg { background: var(--rose); stroke: var(--ink); transform: translateY(-4px) rotate(-6deg); box-shadow: 0 0 30px rgba(212,178,156,.45); }
.intro-act span { transition: color .4s; }
.intro-act:hover span { color: var(--rose-hi); }

.intro-hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--rose); font-size: var(--fs-xs); letter-spacing: var(--tracking-wide); }
.intro-hero__scroll svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; animation: intro-nudge 2.2s var(--ease) infinite; }
@keyframes intro-nudge { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(7px); opacity: 1; } }

/* Phones: the client's mockup, 1:1 - dark office, copy low, three icons, the chevron,
   over the same office photo as on desktop (no photo sequence). */
@media (max-width: 760px) {
  .intro-hero__inner { padding-block: calc(var(--header-offset, 76px) + var(--s-5)) var(--s-5); justify-content: flex-end; }
  .intro-hero__copy { padding-inline: var(--s-2); }
  .intro-hero__title { font-size: 2rem; margin-block-end: var(--s-4); }
  .intro-hero__lead, .intro-hero__body { font-size: .95rem; line-height: 1.85; }
  .intro-hero__lead { margin-block-end: var(--s-4); }
  .intro-hero__actions { width: 100%; justify-content: space-around; gap: var(--s-2); margin-block: var(--s-6) var(--s-5); }
  .intro-act { min-width: 0; flex: 1; font-size: .86rem; }
  .intro-act svg { width: 46px; height: 46px; padding: 0; border: 0; background: none; }

  /* The mockup's top: only the monogram with RAMI JEWELS under it, centred over the photo.
     The menu, language and icons come back as soon as the visitor scrolls. */
  .page-story .site-header { transition: background .5s, border-color .5s, transform .6s var(--ease-out); }
  .page-story .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; }
  .page-story .site-header .header-bar__start, .page-story .site-header .header-bar__end { transition: opacity .4s; }
  .page-story .site-header:not(.is-scrolled) .header-bar__start,
  .page-story .site-header:not(.is-scrolled) .header-bar__end { opacity: 0; pointer-events: none; }
  .page-story .site-header:not(.is-scrolled) .brand { flex-direction: column; gap: 6px; padding-block-start: 14px; }
  .page-story .site-header:not(.is-scrolled) .brand__r { height: 46px; }
  .page-story .site-header:not(.is-scrolled) .brand__word { height: 13px; }
}
@keyframes intro-frame { 0% { opacity: 0; transform: scale(1.12); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
@keyframes intro-office-in { 0%, 86% { opacity: 0; } 100% { opacity: 1; } }

/* 2. Who we are --------------------------------------------------------------- */

.who { --p: 0; position: relative; padding-block: clamp(5rem, 4rem + 6vw, 10rem) clamp(4rem, 3rem + 4vw, 7rem); overflow: hidden; background: var(--void); }
.who__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr) minmax(0, 1.1fr); align-items: center; gap: clamp(var(--s-5), 4vw, var(--s-8)); }

.who__mark { transform: translateY(calc((var(--p) - .5) * -260px)) rotate(calc((var(--p) - .5) * 70deg)) scale(calc(.7 + min(1, var(--p) * 2.2) * .3)); transition: transform .15s linear; }
.who__mark svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 50px rgba(212,178,156,.18)); }
.who__gem { fill: url(#who-rose); }
.who__facets { fill: none; stroke: rgba(13,13,13,.45); stroke-width: 1.2; }

.who__brand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-2) var(--s-4); margin-block-end: var(--s-5); }
.who__brand img { width: 64px; height: 64px; }
.who__name { font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); line-height: .9; letter-spacing: .06em; color: var(--white); }
.who__tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); color: var(--rose); line-height: 1; }
[dir="rtl"] .who__tag { font-style: normal; }
.who__text { font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.75; color: var(--text-soft); max-width: 46ch; margin: 0 0 var(--s-6); text-align: justify; }

.who__more {
  position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 var(--s-8) 0 var(--s-6);
  background: var(--rose); color: var(--ink); font-size: var(--fs-sm); letter-spacing: .04em;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  transition: background .4s, padding .5s var(--ease-out);
}
[dir="rtl"] .who__more { padding: 0 var(--s-6) 0 var(--s-8); clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); }
.who__more:hover { background: var(--rose-hi); padding-inline-end: calc(var(--s-8) + 12px); }

/* The picture opens from a sliver into the full diamond as the section arrives, then drifts. */
.who__pic { --open: min(1, var(--p) * 2.4); margin: 0; transform: translateY(calc((var(--p) - .5) * 160px)) rotate(calc((.5 - var(--p)) * 10deg)) scale(calc(.82 + var(--open) * .18)); transition: transform .15s linear; }
.who__pic .who__cut { opacity: calc(.2 + var(--open) * .8); }
.who__cut {
  position: relative; aspect-ratio: 1 / 1.05; overflow: hidden;
  clip-path: polygon(20% 0, 80% 0, 100% 31%, 50% 100%, 0 31%);
  background: var(--graphite);
}
.who__cut img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; transform: translateY(calc((var(--p) - .5) * -22%)) scale(calc(1.35 - var(--open, 1) * .25)); filter: brightness(.9) contrast(1.05); }
.who__cut::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(212,178,156,.18), transparent 40%); pointer-events: none; }

.who__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-block-start: clamp(var(--s-7), 6vw, var(--s-9)); }
.who__stat { display: flex; flex-direction: column; gap: 2px; padding-block-start: var(--s-4); border-block-start: 1px solid var(--line); }
.who__stat-label { font-size: clamp(1.1rem, .9rem + .7vw, 1.6rem); font-weight: 300; color: var(--text-mute); }
.who__stat-value { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 1.8rem + 4vw, 5.4rem); line-height: 1; color: var(--white); }
[dir="rtl"] .who__stat-value { text-align: end; }

@media (max-width: 1000px) {
  .who__grid { grid-template-columns: 1fr 1fr; }
  .who__mark { position: absolute; width: 46%; inset-inline-start: -14%; top: 8%; opacity: .35; z-index: 0; }
  .who__body, .who__pic { position: relative; z-index: 1; }
}
@media (max-width: 680px) {
  .who__grid { grid-template-columns: 1fr; }
  .who__pic { max-width: 420px; margin-inline: auto; width: 86%; }
  .who__stats { grid-template-columns: 1fr 1fr; }
}

/* 3. Our services - the client's draft: hover a row, its picture fades in ----- */

/* The grey panel opens out to full width as it scrolls in. */
.svc { --p: 0; --open: min(1, var(--p) * 2.4); background: #1a1a1a; padding-block: clamp(72px, 10vh, 120px); clip-path: inset(0 calc((1 - var(--open)) * 7%) round calc((1 - var(--open)) * 48px)); }
.svc .container { transform: translateY(calc((1 - var(--open)) * 80px)); }
.svc__head { margin-block-end: clamp(36px, 6vh, 64px); }
.svc__head h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1.3; margin: 0; }
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.svc__list { list-style: none; margin: 0; padding: 0; }
.svc__row {
  position: relative; display: block; cursor: pointer; color: #6f6f72;
  border-block-start: 1px solid #333; padding: clamp(16px, 2.6vh, 26px) 0;
  padding-inline-start: 3.2rem;
  transition: color .35s, border-color .35s, opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.svc__row[data-reveal] { transform: translateX(-60px); }
[dir="rtl"] .svc__row[data-reveal] { transform: translateX(60px); }
.svc__row[data-reveal].is-in { transform: none; }
.svc__row:last-child { border-block-end: 1px solid #333; }
.svc__row:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.svc__n { position: absolute; inset-inline-start: 0; top: clamp(22px, 3.2vh, 34px); font-size: .8rem; letter-spacing: .1em; color: #555; transition: color .35s; }
.svc__t { display: block; font-size: clamp(24px, 2.7vw, 40px); font-weight: 500; line-height: 1.35; transition: transform .5s var(--ease-out); }
.svc__d {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  font-size: clamp(15px, 1.15vw, 18px); color: #c0c0c0;
  transition: max-height .45s ease, opacity .45s ease, margin .45s ease;
}
.svc__go { display: inline-block; margin-inline-start: 14px; font-size: 14px; color: var(--rose); border-block-end: 1px solid var(--rose); }
.svc__row.on { color: #fff; border-block-start-color: var(--rose); }
.svc__row.on .svc__n { color: var(--rose); }
.svc__row.on .svc__t { transform: translateX(10px); }
[dir="rtl"] .svc__row.on .svc__t { transform: translateX(-10px); }
.svc__row.on .svc__d { max-height: 5em; opacity: 1; margin-block-start: 6px; }
.svc__row:hover:not(.on) { color: #a4a4a8; }

.svc__pic {
  position: relative; aspect-ratio: 4 / 5; max-height: 76vh; width: 100%; background: #0b0b0c; overflow: hidden;
  clip-path: inset(calc((1 - min(1, var(--p) * 2.6)) * 22%) 0 0 0);
  transform: translateY(calc((var(--p) - .5) * -60px));
}
.svc__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease, transform 1.4s var(--ease-out);
}
.svc__pic img.on { opacity: 1; }
.svc__pic-n { position: absolute; inset-block-end: 14px; inset-inline-start: 16px; font-size: .8rem; letter-spacing: .12em; color: var(--ivory); background: rgba(13,13,13,.55); padding: 4px 10px; }
.svc__pic-n b { color: var(--rose); font-weight: 500; }

/* Phones: the picture stays pinned at the top while the list scrolls beneath it, so a tapped
   service always shows its photo without scrolling back up. */
@media (max-width: 820px) {
  .svc__grid { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .svc__pic {
    order: -1; position: sticky; top: calc(var(--header-h, 76px) + 8px); z-index: 2;
    aspect-ratio: auto; height: 38svh; max-height: none;
    transform: none; clip-path: none; box-shadow: 0 18px 30px rgba(0,0,0,.6);
  }
  .svc__t { font-size: 24px; }
  .svc .container { transform: none; }
}

/* 4. Our experience - pinned; each scroll brings the next photo ------------------ */

.exp { --steps: 6; --exp-p: 0; position: relative; height: calc(var(--steps) * 95svh + 100svh); background: var(--charcoal); }
.exp__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.exp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s-6), 6vw, var(--s-9)); align-items: center; width: 100%; padding-block-start: var(--header-offset, 90px); }

.exp__title { font-size: var(--fs-3xl); line-height: 1; margin: 0 0 var(--s-6); }
.exp__steps { position: relative; list-style: none; margin: 0; padding: 0; min-height: 15rem; }
.exp__step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(40px); pointer-events: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.exp__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.exp__step.is-past { transform: translateY(-40px); }
.exp__n { display: block; font-family: var(--font-display); font-size: clamp(3.4rem, 2rem + 4vw, 6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--rose); margin-block-end: var(--s-3); }
.exp__step h3 { font-size: var(--fs-2xl); line-height: 1.1; margin: 0 0 var(--s-3); color: var(--white); }
.exp__step p { color: var(--text-soft); font-size: var(--fs-md); line-height: 1.7; margin: 0; max-width: 44ch; }

.exp__progress { display: flex; align-items: center; gap: var(--s-4); margin-block-start: var(--s-6); }
.exp__bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.exp__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--rose-hi), var(--rose)); transform: scaleX(var(--exp-p)); transform-origin: left; box-shadow: 0 0 10px rgba(212,178,156,.6); }
[dir="rtl"] .exp__bar i { transform-origin: right; }
.exp__count { font-size: .85rem; letter-spacing: .12em; color: var(--text-mute); }
.exp__count b { color: var(--rose); font-weight: 500; }

.exp__stage { position: relative; aspect-ratio: 4 / 5; height: min(74svh, 760px); max-width: 100%; justify-self: center; }
.exp__frame {
  position: absolute; inset: 0; margin: 0; overflow: hidden; background: #d6d6d9;
  clip-path: inset(100% 0 0 0);
  box-shadow: 0 40px 80px rgba(0,0,0,.55);
  transition: clip-path 1s var(--ease-out), transform 1.2s var(--ease-out), opacity .9s var(--ease-out);
}
.exp__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--local, 0) * .14)); transition: transform .3s linear; }
.exp__frame.is-on, .exp__frame.is-past { clip-path: inset(0 0 0 0); }
.exp__frame.is-past { transform: scale(.88) translateY(-6%); opacity: 0; }
.exp__frame figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: var(--s-6) var(--s-5) var(--s-4);
  display: flex; align-items: baseline; gap: var(--s-3);
  background: linear-gradient(0deg, rgba(13,13,13,.82), transparent);
  color: var(--ivory); font-family: var(--font-display); font-size: var(--fs-lg);
}
.exp__frame figcaption span { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; color: var(--rose); }
.exp__stage::before { content: ""; position: absolute; inset: -18px; border: 1px solid rgba(212,178,156,.28); transform: rotate(calc(var(--exp-p) * 4deg)); pointer-events: none; }

/* Phones: title on top, then the photo, then the step. A longer stretch of scroll per step,
   so a quick swipe still moves one step at a time. */
@media (max-width: 860px) {
  .exp { height: calc(var(--steps) * 100svh + 100svh); }
  .exp__grid { grid-template-columns: 1fr; gap: var(--s-3); padding-block-start: calc(var(--header-h, 70px) + var(--s-2)); align-content: center; }
  .exp__text { display: contents; }
  .exp__text .eyebrow { order: 1; margin: 0; justify-self: start; }
  .exp__title { order: 2; font-size: 2.1rem; margin: 0 0 var(--s-2); }
  .exp__stage { order: 3; height: 34svh; aspect-ratio: 4 / 5; margin-block: var(--s-2); }
  .exp__steps { order: 4; }
  .exp__progress { order: 5; }
  .exp__stage::before { inset: -10px; }
  .exp__steps { min-height: 11.5rem; }
  .exp__n { font-size: 2.6rem; }
  .exp__step h3 { font-size: 1.6rem; }
  .exp__step p { font-size: 1rem; }
  .exp__progress { margin-block-start: var(--s-3); }
}

/* 5. Scroll bands - outlined words sliding with the page ------------------------ */

.band { --p: 0; position: relative; overflow: hidden; padding-block: clamp(1.4rem, 1rem + 2vw, 3rem); background: var(--void); border-block: 1px solid var(--line); }
.band--light { background: var(--charcoal); }
.band__row { white-space: nowrap; line-height: 1.05; }
.band__row span {
  display: inline-block;
  font-family: var(--font-display); font-size: clamp(3rem, 2rem + 6vw, 8.5rem); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(212,178,156,.55);
  transform: translateX(calc((var(--p) - .5) * -38%));
  will-change: transform;
}
.band__row--rev span { color: rgba(233,225,214,.07); -webkit-text-stroke: 1px rgba(233,225,214,.18); transform: translateX(calc(-30% + (var(--p) - .5) * 38%)); }
[dir="rtl"] .band__row span { transform: translateX(calc((var(--p) - .5) * 38%)); }
[dir="rtl"] .band__row--rev span { transform: translateX(calc(30% - (var(--p) - .5) * 38%)); }

/* 6. Our products - each piece floats on a black stone cut in the outline of its diamond */

.gem-defs { position: absolute; width: 0; height: 0; }
.gems { --p: 0; padding-block: clamp(5rem, 4rem + 5vw, 9rem); background: radial-gradient(ellipse at 50% 0%, #17130f 0%, var(--void) 55%); overflow: hidden; }
.gems__head { margin-block-end: clamp(var(--s-7), 6vw, var(--s-9)); }
.gems__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(2.6rem, 2rem + 2.4vw, 4.4rem) clamp(1.4rem, 1rem + 1.6vw, 2.8rem); perspective: 1200px; }

/* Columns drift at their own speed and each stone tilts a little as the page scrolls. */
.gem { --drift: 0px; --tilt: 0deg; position: relative; z-index: 1; transform: translateY(calc((var(--p) - .5) * var(--drift))) rotate(calc((var(--p) - .5) * var(--tilt))); }
/* Each stone is its own layer (it moves), so the hovered one is lifted above its neighbours
   and its details card is never hidden behind the stone below. */
.gem:hover, .gem:focus-within { z-index: 20; }
.gem:nth-child(5n + 1) { --drift: -140px; --tilt: 10deg; }
.gem:nth-child(5n + 2) { --drift: 90px;  --tilt: -8deg; }
.gem:nth-child(5n + 3) { --drift: -40px; --tilt: 6deg; }
.gem:nth-child(5n + 4) { --drift: 120px; --tilt: -10deg; }
.gem:nth-child(5n + 5) { --drift: -90px; --tilt: 8deg; }

/* Arrival: from deep and turned, to its place. */
.gem__link { position: relative; display: block; aspect-ratio: 1 / 1; opacity: 0; transform: translateZ(-500px) rotateX(55deg) rotateZ(-20deg) scale(.6); filter: blur(10px); transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--i) * 80ms); }
.gem.is-in .gem__link { opacity: 1; transform: none; filter: none; }
.no-js .gem__link { opacity: 1; transform: none; filter: none; }

.gem__body { position: absolute; inset: 0; filter: drop-shadow(0 26px 34px rgba(0,0,0,.75)); transition: filter .6s; }
.gem__body svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Facets: the crown of a brilliant suggested by fine radiating bands, clipped to the outline. */
.gem__facets, .gem__glint { position: absolute; inset: 0; clip-path: var(--cut); pointer-events: none; }
.gem__facets {
  background:
    radial-gradient(circle at 50% 50%, rgba(212,178,156,.16) 0 18%, transparent 19%),
    repeating-conic-gradient(from 11deg at 50% 50%, rgba(241,220,205,.09) 0deg 11.25deg, rgba(0,0,0,.18) 11.25deg 22.5deg);
  mix-blend-mode: screen; opacity: .45;
}
.gem__glint {
  background: linear-gradient(120deg, transparent 30%, rgba(241,220,205,.5) 46%, rgba(255,255,255,.75) 50%, rgba(241,220,205,.4) 54%, transparent 70%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0; mix-blend-mode: screen;
  animation: gem-glint 6s var(--ease) infinite; animation-delay: calc(var(--i) * .6s);
}
@keyframes gem-glint { 0%, 70% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* The piece: lifted off its studio background by home.js, then floating gently. */
.gem__piece {
  position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(255,255,255,.2));
  opacity: 0; transform: translateY(18px) scale(.92);
  transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out), filter .6s;
}
.gem__piece.is-cut { opacity: 1; transform: none; animation: gem-float 5.5s var(--ease) infinite alternate; animation-delay: calc(var(--i) * -.55s); }
/* No cut-out (old browser, or the picture failed): the photo is cut in the outline instead. */
.gem__piece.is-plain { inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: var(--cut); opacity: 1; transform: none; filter: none; }
@keyframes gem-float { from { translate: 0 -5px; rotate: -1.5deg; } to { translate: 0 6px; rotate: 1.5deg; } }
/* Narrow outlines get a slightly smaller piece so it sits inside the stone. */
.gem--marquise .gem__piece.is-cut, .gem--emerald_cut .gem__piece.is-cut, .gem--radiant .gem__piece.is-cut, .gem--oval .gem__piece.is-cut, .gem--pear .gem__piece.is-cut { inset: 18% 20%; width: 60%; height: 64%; }
.gem--heart .gem__piece.is-cut { inset: 16% 16% 20%; width: 68%; height: 64%; }

.gem__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gem__edge > * {
  fill: none; stroke: var(--rose); stroke-width: .007;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85;
  transition: stroke-dashoffset 1.8s var(--ease-out) calc(var(--i) * 80ms + .3s), opacity .5s, stroke-width .5s;
}
.gem.is-in .gem__edge > * { stroke-dashoffset: 0; }

.gem__info {
  position: absolute; inset-inline-start: 50%; top: 100%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  width: max-content; max-width: min(240px, 140%);
  margin-block-start: var(--s-3); padding: var(--s-3) var(--s-4);
  background: rgba(13,13,13,.92); color: var(--ivory); border: 1px solid rgba(212,178,156,.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, -10px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
[dir="rtl"] .gem__info { transform: translate(50%, -10px); }
.gem__shape { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.gem__name { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gem__price { font-size: .82rem; color: var(--text-mute); }
.gem__view { margin-block-start: 4px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); border-block-end: 1px solid var(--rose); }

@media (hover: hover) {
  .gem__link:hover .gem__body { filter: drop-shadow(0 30px 40px rgba(0,0,0,.8)) drop-shadow(0 0 26px rgba(212,178,156,.35)); }
  .gem__link:hover .gem__piece.is-cut { animation-play-state: paused; transform: scale(1.14) translateY(-6px); }
  .gem__link:hover .gem__glint { animation-duration: 1.2s; }
  .gem__link:hover .gem__edge > * { opacity: 1; stroke-width: .012; }
  .gem__link:hover .gem__info, .gem__link:focus-visible .gem__info { opacity: 1; transform: translate(-50%, 0); }
  [dir="rtl"] .gem__link:hover .gem__info, [dir="rtl"] .gem__link:focus-visible .gem__info { transform: translate(50%, 0); }
}
/* Touch screens: no hover, so the name sits under each stone and a tap opens the piece. */
@media (hover: none) {
  .gem__info { position: absolute; top: 100%; inset-inline: 0; transform: none !important; opacity: 1; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: var(--s-2) 0 0; max-width: none; width: auto; }
  .gem__name { font-size: .92rem; }
  .gem__view, .gem__shape { display: none; }
  .gems__grid { row-gap: 5.2rem; }
}

@media (max-width: 1100px) { .gems__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .gems__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gem:nth-child(n) { --drift: 0px; } .gem:nth-child(3n + 2) { --drift: 70px; } }
@media (max-width: 520px) { .gems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; } .gem:nth-child(n) { --drift: 0px; --tilt: 0deg; } .gem:nth-child(2n) { --drift: 56px; } }

/* Reduced motion: everything in place, nothing drifts or plays. ---------------- */
@media (prefers-reduced-motion: reduce) {
  .intro-hero__office, .intro-hero__inner, .who__mark, .who__pic, .who__cut img, .svc__pic, .gem { transform: none !important; }
  .intro-hero__inner { opacity: 1 !important; }
  .intro-hero__office { animation: none !important; opacity: 1 !important; }
  .intro-seq { display: none !important; }
  .svc__pic { clip-path: none; }
  .gem__link { opacity: 1; transform: none; transition: none; }
  .gem__edge > * { stroke-dashoffset: 0; transition: none; }
  .exp__frame, .exp__step { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .band__row span, .svc .container { transform: none !important; }
  .svc { clip-path: none; }
  .intro-hero__inner { filter: none !important; }
  .gem__link { filter: none; }
  .gem__piece.is-cut, .gem__glint { animation: none; }
}

/* Experience photos at their original size: whole picture, never zoomed or cropped. */
.exp__frame { background: #0b0b0c; }
.exp__frame img { object-fit: contain; transform: none; }
