/* Raghunandan Jewelery: one-page site. Palette and type follow the approved Canva proposal. */

:root {
  --cream: #fffcf2;
  --cream-2: #f5efe2;
  --charcoal: #545454;
  --charcoal-deep: #3b3a38;
  --gold: #d4ac6f;
  --gold-ink: #8a6630;
  --brown: #574534;
  --ink: #1c1a17;
  --muted: #6b665e;
  --photo: #f7f7f7;
  --wa: #25d366;

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

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 84px;
  --radius: 16px;

  interpolate-size: allow-keywords;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(.viewer[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--cream);
  transition: top .3s;
}
.skip:focus { top: 1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
section[id] { scroll-margin-top: 60px; }

.tone-cream { background: var(--cream); }
.tone-cream-2 { background: var(--cream-2); }
.tone-dark { background: var(--charcoal); color: var(--cream); }

/* ---------- type ---------- */
.h2 {
  font: 500 clamp(2.5rem, 1.7rem + 3vw, 4.25rem)/1.04 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lead {
  font: 500 clamp(1.45rem, 1.1rem + 1.15vw, 2.15rem)/1.3 var(--serif);
  text-wrap: pretty;
}
.copy { max-width: 34em; color: var(--muted); text-wrap: pretty; }
.tone-dark .copy { color: rgb(255 252 242 / .78); }

/* ---------- buttons ---------- */
.btn {
  --c: var(--ink); --fill: var(--ink); --on-fill: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.05em 2.3em;
  border: 1px solid var(--c); color: var(--c);
  font: 500 .8125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn .icon { width: 1.35em; height: 1.35em; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .5) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-gold { --c: var(--gold); --fill: var(--gold); --on-fill: var(--charcoal-deep); }
.btn-light { --c: var(--cream); --fill: var(--cream); --on-fill: var(--ink); }
.btn-solid { --fill: var(--gold); --on-fill: var(--ink); background: var(--ink); color: var(--cream); }
.btn-solid-gold { --c: var(--gold); --fill: var(--cream); --on-fill: var(--ink); background: var(--gold); color: var(--charcoal-deep); }
@media (hover: hover) {
  .btn:hover { color: var(--on-fill); }
  .btn:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn:hover::after { transform: translateX(120%); transition: transform 1s .15s var(--ease-out); }
}

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: .15em;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover { background-size: 100% 1px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--gold);
  transition: height .5s var(--ease-out), color .4s, transform .5s var(--ease-out);
}
/* the blur lives on a pseudo-element so the header never traps fixed children */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 252 242 / .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(28 26 23 / .08);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled { --header-h: 68px; color: var(--ink); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; color: var(--cream); }
.menu-open .site-header::before { opacity: 0; }

.header-inner { height: 100%; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.brand { flex: none; animation: drop .9s .4s var(--ease-out) both; }
.brand img { width: auto; height: 52px; transition: height .5s var(--ease-out); }
.is-scrolled .brand img { height: 42px; }

.nav { position: relative; margin-left: auto; }
.nav-list { display: flex; align-items: center; }
.nav-list li { display: flex; align-items: center; animation: drop .9s calc(.5s + var(--i) * 80ms) var(--ease-out) both; }
.nav-list li + li::before { content: ""; width: 1px; height: .85em; background: currentColor; opacity: .4; }
.nav-list a { display: block; padding: .55rem 1.05rem; font: 500 1.25rem/1 var(--serif); transition: color .3s; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--gold); }
.is-scrolled .nav-list a:hover, .is-scrolled .nav-list a[aria-current] { color: var(--gold-ink); }
.nav-indicator {
  position: absolute; left: 0; bottom: -2px; height: 1px;
  width: var(--w, 0); translate: var(--x, 0) 0;
  background: currentColor; opacity: 0;
  transition: translate .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
}
.is-scrolled .nav-indicator { background: var(--gold-ink); }

.wa-pill {
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
  padding: .55rem 1.05rem; border: 1px solid currentColor; border-radius: 999px;
  font: 500 1.15rem/1 var(--serif);
  transition: background .35s, color .35s, border-color .35s;
  animation: drop .9s .9s var(--ease-out) both;
}
.wa-pill .icon { width: 1.05rem; height: 1.05rem; }
.wa-pill:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal-deep); }
.is-scrolled .wa-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* mobile menu: a sibling of the header, revealed with a circular wipe from the toggle */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2rem;
  background: var(--charcoal-deep); color: var(--cream);
  clip-path: circle(0 at calc(100% - 38px) 34px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-inout), visibility 0s .8s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 38px) 34px); visibility: visible; transition: clip-path .8s var(--ease-inout), visibility 0s; }
.menu-list a {
  display: block; padding: .3rem 0;
  font: 500 clamp(2.4rem, 10vw, 3.4rem)/1.15 var(--serif);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.menu-list a:hover { color: var(--gold); }
.menu-open .menu-list a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 70ms); }
.menu-contact { display: grid; gap: .4rem; font-size: .95rem; color: rgb(255 252 242 / .7); }
.menu-contact a { color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  background: #0b0b0e; color: var(--gold);
  view-timeline: --hero block;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  animation: hero-focus 2.8s var(--ease-out) both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(8 8 10 / .6) 0%, rgb(8 8 10 / .22) 46%, rgb(8 8 10 / 0) 70%),
    linear-gradient(0deg, rgb(8 8 10 / .55) 0%, transparent 26%);
}
.hero-content { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 1.5rem) 5rem; }
.hero-inner { width: min(100%, 560px, 42vw); display: grid; justify-items: center; gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.hero-title { width: 100%; }
.emblem { position: relative; display: block; }
.emblem img { width: 100%; animation: emblem-in 1.9s .25s var(--ease-out) both; }
/* a band of light passes over the gold, masked to the emblem's own shape */
.emblem::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgb(255 238 196 / .8) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url("../img/emblem.webp") center / contain no-repeat;
  mask: url("../img/emblem.webp") center / contain no-repeat;
  mix-blend-mode: soft-light;
  animation: sweep 2.6s 1.6s var(--ease-inout) both;
}
.glint {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s, 14px); aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle, #fff 0 12%, transparent 45%),
    linear-gradient(90deg, transparent, #fff, transparent) center / 100% 1.5px no-repeat,
    linear-gradient(transparent, #fff, transparent) center / 1.5px 100% no-repeat;
  filter: drop-shadow(0 0 4px rgb(255 228 170 / .9));
  animation: twinkle 5.2s calc(2.8s + var(--d, 0s)) infinite var(--ease-inout);
}
.hero .btn { animation: rise 1.1s 1.25s var(--ease-out) both; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; z-index: 1;
  width: 1px; height: 56px; overflow: hidden;
  background: rgb(212 172 111 / .3);
  animation: fade-in 1s 2s both;
}
.scroll-cue::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 40%;
  background: var(--gold);
  animation: cue 2.4s 2.4s var(--ease-inout) infinite;
}

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 7rem); }
.split-text { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); max-width: 36rem; }
.frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #e8dfcc; }
.tone-dark .frame { background: #4a4a4a; }
.frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }

.promise-list li {
  position: relative; padding-block: 1.35rem;
  font: 500 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.25 var(--serif);
}
.promise-list li + li::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: rgb(255 252 242 / .45);
  transform-origin: left;
  transition: transform 1.2s calc(var(--i, 0) * 90ms + .1s) var(--ease-out);
}

.quote { position: relative; padding-top: 3.25rem; font: 500 clamp(1.6rem, 1.15rem + 1.5vw, 2.6rem)/1.25 var(--serif); text-wrap: pretty; }
.quote::before {
  content: "\201C"; position: absolute; left: -.04em; top: -.1em;
  font: 400 6.5rem/1 var(--serif); color: var(--gold);
}
.quote-by { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 252 242 / .45); }
.quote-name { display: block; font: 500 clamp(2rem, 1.6rem + 1vw, 2.75rem)/1.1 var(--serif); font-style: normal; }
.quote-role { display: block; margin-top: .6rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 252 242 / .75); }

/* ---------- gallery ---------- */
.gallery-head { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.gallery-title { font: 500 clamp(3rem, 1.8rem + 5vw, 6.5rem)/1 var(--serif); letter-spacing: -.015em; }
.gallery-intro { max-width: 30em; color: var(--muted); }

.rail {
  display: flex; gap: clamp(.9rem, 1.8vw, 1.75rem);
  margin: clamp(2.25rem, 4vw, 3.5rem) calc(-1 * var(--gutter)) 0;
  padding: .5rem var(--gutter) 1rem;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
/* the arch has a fixed width so long labels can't stretch it */
.chip { flex: 0 0 auto; display: grid; justify-items: center; gap: .8rem; scroll-snap-align: center; }
.chip:first-child { margin-left: auto; }
.chip:last-child { margin-right: auto; }
.chip-img {
  width: clamp(84px, 8.4vw, 116px); aspect-ratio: 5 / 6; overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  background: #2a0b10;
  outline: 1px solid transparent; outline-offset: 5px;
  transition: outline-color .4s;
}
.chip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.chip-all .chip-img { display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #55524d, var(--charcoal-deep) 75%); }
.chip-all .chip-img img { width: 64%; height: auto; }
.chip-label { font: 600 .95rem/1.15 var(--serif); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--muted); transition: color .3s; }
.chip[aria-pressed="true"] .chip-img { outline-color: var(--gold-ink); }
.chip[aria-pressed="true"] .chip-label { color: var(--gold-ink); }
@media (hover: hover) {
  .chip:hover .chip-img img { transform: scale(1.08); }
  .chip:hover .chip-label { color: var(--ink); }
}
.gallery-count { margin-top: .5rem; text-align: center; font-size: .9rem; color: var(--muted); }

.pieces {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(.75rem, 1.6vw, 1.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.piece[hidden] { display: none; }
.piece-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--photo); }
.piece-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .8) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: shimmer 1.6s linear infinite;
}
.piece-media.is-loaded::before { content: none; }
.piece-open { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.piece-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .6s; }
.js .piece-media:not(.is-loaded) img { opacity: 0; }
.piece-actions { position: absolute; top: .65rem; right: .65rem; display: grid; gap: .5rem; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(255 255 255 / .94); color: var(--ink);
  box-shadow: 0 2px 12px rgb(28 26 23 / .1);
  transition: background .3s, color .3s, transform .5s var(--ease-out), opacity .4s;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); }
.icon-btn .icon { width: 18px; height: 18px; }
.piece-enquire {
  position: absolute; inset: auto .6rem .6rem;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1rem; border-radius: 10px;
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 16px rgb(28 26 23 / .08);
  font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: transform .55s var(--ease-out), opacity .4s, background .3s, color .3s;
}
.piece-enquire .icon { width: 1.3rem; height: 1.3rem; color: #1faa53; transition: color .3s; }
.piece-enquire:hover { background: var(--ink); color: var(--cream); }
.piece-enquire:hover .icon { color: var(--wa); }
@media (hover: hover) and (pointer: fine) {
  .piece-actions .icon-btn { opacity: 0; transform: translateX(14px); }
  .piece-enquire { opacity: 0; transform: translateY(calc(100% + 1rem)); }
  .piece:hover .icon-btn, .piece:focus-within .icon-btn,
  .piece:hover .piece-enquire, .piece:focus-within .piece-enquire { opacity: 1; transform: none; }
  .piece:hover .piece-open img { transform: scale(1.07); }
}
.piece-title { margin-top: 1rem; font: 600 1.3rem/1.2 var(--serif); }
.piece-code { margin-top: .15rem; font-size: .8125rem; letter-spacing: .08em; color: var(--muted); }

/* gallery filter: View Transitions morph the grid; this is the fallback */
.pieces.is-refreshing .piece:not([hidden]) { animation: rise .6s calc(var(--n, 0) * 40ms) var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }

/* ---------- detail dialog ---------- */
.viewer {
  width: min(100% - 2rem, 1040px); max-width: none;
  max-height: min(100% - 2rem, 700px);
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 120px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .35s, transform .5s var(--ease-out), overlay .5s allow-discrete, display .5s allow-discrete;
}
.viewer[open] { opacity: 1; transform: none; }
@starting-style { .viewer[open] { opacity: 0; transform: translateY(16px) scale(.97); } }
.viewer::backdrop {
  background: rgb(18 16 14 / 0);
  transition: background .4s, overlay .5s allow-discrete, display .5s allow-discrete;
}
.viewer[open]::backdrop { background: rgb(18 16 14 / .74); }
@starting-style { .viewer[open]::backdrop { background: rgb(18 16 14 / 0); } }

.viewer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.viewer-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--photo); touch-action: pan-y; }
.viewer-media img {
  width: 100%; height: 100%; object-fit: contain;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: transform .4s var(--ease-out), opacity .3s;
}
@media (hover: hover) and (pointer: fine) { .viewer-media { cursor: zoom-in; } }
.viewer-media.is-zoomed { cursor: zoom-out; }
.viewer-media.is-zoomed img { transform: scale(2.1); }
.viewer-media img.is-swapping { opacity: 0; }
.viewer-step { position: absolute; top: 50%; translate: 0 -50%; }
.viewer-step[data-step="-1"] { left: .9rem; }
.viewer-step[data-step="1"] { right: .9rem; }
.viewer-close { position: absolute; top: .9rem; right: .9rem; z-index: 1; }
.viewer-info { display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding: clamp(1.75rem, 4vw, 3.5rem); }
.viewer-title { font: 500 clamp(2.2rem, 1.6rem + 2vw, 3.25rem)/1.05 var(--serif); }
.viewer-code { font-size: .9rem; letter-spacing: .1em; color: var(--muted); }
.viewer-price { margin-top: .75rem; font: 600 1.4rem/1.3 var(--serif); color: var(--gold-ink); }
.viewer-note { max-width: 24em; color: var(--muted); }
.viewer-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.viewer-count { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* ---------- what we offer ---------- */
.offers-head { text-align: center; }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.offer { position: relative; padding: 14px; background: var(--ink); transition: background .6s var(--ease-out); }
.offer-img { position: relative; aspect-ratio: 7 / 12; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.offer-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(12 10 8 / .9) 0%, rgb(12 10 8 / .5) 36%, transparent 62%);
}
.offer-text { position: absolute; inset: auto 14px 14px; z-index: 1; padding: clamp(1rem, 1.6vw, 1.5rem); color: var(--cream); transition: transform .7s var(--ease-out); }
.offer h3 { font: 500 clamp(1.6rem, 1.2rem + .9vw, 2.1rem)/1.08 var(--serif); }
.offer p { margin-top: .6rem; font-size: .95rem; line-height: 1.55; color: rgb(255 252 242 / .82); }
@media (hover: hover) {
  .offer:hover { background: var(--gold); }
  .offer:hover .offer-img img { transform: scale(1.06); }
  .offer:hover .offer-text { transform: translateY(-6px); }
}

/* ---------- faqs ---------- */
.faqs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.faq { border-bottom: 1px solid rgb(87 69 52 / .3); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
  font: 500 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.25 var(--serif);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-ink); }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon { transform: rotate(45deg); }
.faq p { padding-bottom: 1.6rem; max-width: 36em; color: var(--muted); }
.faq::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}
.faq[open]::details-content { block-size: auto; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.contact-img img { width: 100%; }
.contact-title { font: 500 clamp(2.6rem, 1.8rem + 3vw, 4.5rem)/1 var(--serif); letter-spacing: -.01em; }
.contact-address { margin-top: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgb(255 252 242 / .4); font: 500 clamp(1.3rem, 1.1rem + .6vw, 1.65rem)/1.45 var(--serif); font-style: normal; max-width: 24em; }
.contact-list { display: grid; gap: .65rem; margin-top: 1.5rem; font-size: 1.05rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .75rem; }
.contact-list .icon { color: var(--gold); }
.contact-list a:hover { color: var(--gold); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.map { margin-top: clamp(3rem, 6vw, 5rem); aspect-ratio: 21 / 8; overflow: hidden; border: 1px solid rgb(212 172 111 / .35); background: #4a4a4a; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.18) contrast(1.04); }

/* ---------- footer ---------- */
/* bottom padding leaves room for the floating WhatsApp button */
.site-footer { background: var(--charcoal-deep); color: rgb(255 252 242 / .76); padding-block: clamp(3.5rem, 6vw, 5.5rem) 6.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { width: auto; height: 72px; }
.footer-brand p { margin-top: 1.25rem; font: italic 500 1.5rem/1.3 var(--serif); color: var(--gold); }
.footer-col h3 { margin-bottom: 1rem; font: 500 1.35rem/1.2 var(--serif); color: var(--cream); }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: .6rem; font-style: normal; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid rgb(255 252 242 / .12);
  font-size: .85rem; color: rgb(255 252 242 / .55);
}

/* ---------- floating whatsapp + toast ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 45;
  display: flex; align-items: center; gap: .6rem;
  height: 58px; min-width: 58px; padding: 0 17px; border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / .22);
  animation: rise .8s 1.8s var(--ease-out) backwards; /* backwards, so the menu can still hide it */
  transition: opacity .3s, visibility .3s;
}
.wa-float .icon { width: 24px; height: 24px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--wa);
  animation: pulse 3s 3s var(--ease-out) infinite;
}
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 500 .95rem/1 var(--sans); transition: max-width .5s var(--ease-out); }
@media (hover: hover) { .wa-float:hover .wa-float-label { max-width: 9rem; } }
.menu-open .wa-float { opacity: 0; visibility: hidden; }

.toast {
  position: fixed; inset: auto auto 6rem 50%; margin: 0;
  padding: .8rem 1.25rem; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: .9rem;
  translate: -50% 1rem; opacity: 0; pointer-events: none;
  transition: opacity .3s, translate .4s var(--ease-out), display .4s allow-discrete, overlay .4s allow-discrete;
}
.toast:popover-open, .toast.is-on { opacity: 1; translate: -50% 0; }
@starting-style { .toast:popover-open { opacity: 0; translate: -50% 1rem; } }

/* ---------- scroll reveals (only once main.js has run) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* images unveil from the bottom, like lifting a velvet cloth */
/* the clip sits on the image, not the observed frame, so the observer can still see the frame */
.js [data-reveal="mask"] { opacity: 1; transform: none; transition: none; background: none; }
.js [data-reveal="mask"] img {
  clip-path: inset(100% 0 0 0); scale: 1.18;
  transition: clip-path 1.4s calc(var(--i, 0) * 90ms) var(--ease-inout), scale 1.9s calc(var(--i, 0) * 90ms) var(--ease-out);
}
.js [data-reveal="mask"].is-in img { clip-path: inset(0); scale: 1; }
/* keep the offer card's own hover colour change alongside its reveal */
.js .offer[data-reveal] {
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), background .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s;
}
.js .promise-list li + li::before { transform: scaleX(0); }
.js .promise-list li.is-in::before { transform: scaleX(1); }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--w) * 45ms); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- keyframes ---------- */
@keyframes hero-focus { from { transform: scale(1.12); filter: blur(8px) brightness(.6); } to { transform: none; filter: none; } }
@keyframes emblem-in { from { opacity: 0; transform: scale(.92); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes twinkle {
  0%, 74%, 100% { opacity: 0; scale: 0; rotate: 0deg; }
  84% { opacity: 1; scale: 1; rotate: 45deg; }
  94% { opacity: 0; scale: .2; rotate: 90deg; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue { from { translate: 0 -100%; } to { translate: 0 260%; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

/* scroll-linked depth, only where the browser supports it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg { animation: hero-sink linear both; animation-timeline: --hero; animation-range: exit; }
    .hero-content { animation: hero-lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 70%; }
    .frame img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes hero-sink { to { translate: 0 22%; } }
    @keyframes hero-lift { to { opacity: 0; translate: 0 -12%; } }
    @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* the category rail scrolls here, so fade its edges as a hint */
  .rail {
    -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav, .header-inner .wa-pill { display: none; }
  .menu-toggle { display: block; }
  .brand img { height: 44px; }

  .hero { align-items: start; }
  /* a taller photo box pushes the ring below the emblem and button */
  .hero-bg { inset: 0 0 auto; height: 124%; }
  .hero-bg img { object-position: 64% 50%; }
  .hero::after {
    background: linear-gradient(180deg, rgb(8 8 10 / .55) 0%, rgb(8 8 10 / .12) 48%, rgb(8 8 10 / .55) 100%);
  }
  .hero-content { padding-top: calc(var(--header-h) + 3vh); }
  .hero-inner { width: min(100%, 420px); margin-inline: auto; }
  .hero-title { width: 82%; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-text { max-width: none; }
  .offers { grid-template-columns: 1fr 1fr; }
  .viewer-inner { grid-template-columns: 1fr; }
}

@media (min-width: 901px) { .menu { display: none; } }

@media (max-width: 768px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faqs { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .viewer { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .viewer-inner { height: 100%; grid-template-rows: auto 1fr; overflow-y: auto; }
  .viewer-info { justify-content: flex-start; padding: 1.5rem var(--gutter) 2rem; }
  /* phones: a round WhatsApp button keeps the photo clear; the label stays for screen readers */
  .piece-enquire { inset: auto .5rem .5rem auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .piece-enquire .icon { width: 21px; height: 21px; }
  .enq-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 560px) {
  .offers {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .offers::-webkit-scrollbar { display: none; }
  .offer { flex: 0 0 80%; scroll-snap-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .piece-actions { top: .45rem; right: .45rem; }
  .icon-btn { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="mask"] img { clip-path: none; scale: 1; }
  .glint, .scroll-cue::after, .wa-float::before, .emblem::after { display: none; }
}
