/* ==========================================================================
   BBC MARBLE · the shared look of /stones and every /stones/<name> page.

   Fonts, colour tokens, the nav, the buttons and the footer, lifted from the landing
   (index.html) so the catalog and the stone pages read as the same company a buyer just met on
   the front page. The landing keeps its own inline copy on purpose: its first paint is measured
   (site/perf) and a render-blocking stylesheet would cost it. When a token or the nav changes
   there, change it here too.

   Every file here is on this origin: mainland-China buyers are the audience and external
   hosts hang the page there (README, "Hard rules").
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --ink: #0d0c0a;
  --ink-2: #151310;
  --ink-3: #1e1b17;
  --bone: #eee7da;
  --bone-2: #e3d9c7;
  --paper: #f7f3ec;
  --brass: #b48d4e;
  --brass-2: #d9b878;
  --brass-ink: #7a5b27;
  --on-dark: #f3eee5;
  --on-dark-2: rgba(243, 238, 229, 0.66);
  --on-dark-3: rgba(243, 238, 229, 0.42);
  --line-d: rgba(243, 238, 229, 0.14);
  --on-light: #17140f;
  --on-light-2: rgba(23, 20, 15, 0.68);
  --on-light-3: rgba(23, 20, 15, 0.46);
  --line-l: rgba(23, 20, 15, 0.14);
  --serif: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, "PingFang SC", monospace;
  --g: clamp(20px, 5vw, 84px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--ink); color: var(--on-dark);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
::selection { background: var(--brass-2); color: var(--ink); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 1px solid var(--brass-2); outline-offset: 4px; border-radius: 2px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--g); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-2);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.7; flex: none; }
.light .eyebrow { color: var(--brass-ink); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 7vw, 116px); line-height: 0.92; letter-spacing: -0.025em;
}
.h2 em { font-style: italic; font-weight: 300; color: var(--brass-2); }
.light .h2 em { color: var(--brass-ink); }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--on-dark-2); max-width: 40ch; }
.light .lede { color: var(--on-light-2); }
.label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
:lang(zh) .h2 { letter-spacing: 0; font-weight: 500; line-height: 1.12; }
:lang(zh) em, :lang(zh) .thin { font-style: normal !important; }
:lang(zh) .eyebrow, :lang(zh) .label { letter-spacing: 0.12em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  padding: 18px 28px; border-radius: 999px;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn-fill { background: var(--on-dark); color: var(--ink); }
.btn-fill::before { background: var(--brass-2); }
.btn-line { border: 1px solid var(--line-d); color: var(--on-dark); }
.btn-line::before { background: var(--on-dark); }
.btn-line:hover, .btn-line:focus-visible { color: var(--ink); border-color: var(--on-dark); }
.btn-ink { background: var(--on-light); color: var(--paper); }
.btn-ink::before { background: var(--brass); }
.btn .arw { display: inline-block; transition: transform 0.45s var(--ease); }
.btn:hover .arw { transform: translateY(3px); }


/* a stone's reference, "BM-7K2Q": the name a buyer can quote back to us (functions/_lib) */
.ref {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--brass-2); border: 1px solid rgba(217, 184, 120, 0.45); border-radius: 999px;
  padding: 4px 9px; line-height: 1;
}

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px var(--g);
  transition: transform 0.6s var(--ease), background 0.5s ease, padding 0.5s var(--ease), box-shadow 0.5s ease;
}
.nav.solid {
  padding-top: 13px; padding-bottom: 13px;
  background: rgba(13, 12, 10, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line-d);
}
.nav.away { transform: translateY(-110%); }
/* how far down the page you are: a hairline of brass under the bar */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass-2); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); opacity: 0; transition: opacity 0.4s ease; }
.nav.solid::after { opacity: 0.9; }
.nav.open::after { opacity: 0; }
/* the open menu is position:fixed inside the bar: a transform or backdrop-filter on the bar
   would make the bar its containing block and squash the menu into it */
.nav.open { transform: none !important; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 26px; color: var(--brass-2); flex: none; transition: transform 0.8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.brand-name i { font-style: italic; font-weight: 400; color: var(--brass-2); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-links a, .lang-switch button {
  position: relative; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2);
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brass-2); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { padding: 7px 8px; letter-spacing: 0.08em; font-size: 10.5px; color: var(--on-dark-3); border-radius: 999px; }
.lang-switch button:hover { color: var(--on-dark); }
.lang-switch button.active { color: var(--brass-2); background: rgba(217, 184, 120, 0.1); }
.nav .btn { padding: 12px 20px; font-size: 10.5px; }
.lang-select {
  display: none; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--brass-2); background: rgba(217, 184, 120, 0.1); border: 1px solid var(--line-d);
  border-radius: 999px; padding: 8px 12px; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.lang-select option { background: var(--ink); color: var(--on-dark); }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); position: relative; flex: none; }
.nav-burger i { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--on-dark); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 23px; }
.nav.open .nav-burger i:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav-burger i:last-child { top: 20px; transform: rotate(-45deg); }
/* the phone menu: the whole screen, big serif links, the language picker at the foot */
.nav-drop {
  position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--g) 40px; background: var(--ink);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s; visibility: hidden;
}
.nav.open .nav-drop { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io); }
.nav-drop a {
  font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.15; font-weight: 400;
  padding: 8px 0; border-bottom: 1px solid var(--line-d); display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.8s var(--ease);
}
.nav-drop a small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--brass-2); }
.nav.open .nav-drop a { opacity: 1; transform: none; transition-delay: 0.2s; }
.nav.open .nav-drop a:nth-child(2) { transition-delay: 0.26s; } .nav.open .nav-drop a:nth-child(3) { transition-delay: 0.32s; }
.nav.open .nav-drop a:nth-child(4) { transition-delay: 0.38s; }
.nav-drop .lang-select { display: block; margin-top: 34px; align-self: flex-start; padding: 12px 18px; font-size: 12px; }
@media (max-width: 1280px) {
  .nav-links, .lang-switch { display: none; }
  .lang-select { display: block; }
  .nav-burger { display: block; }
  .nav-right { gap: 10px; }
}
@media (max-width: 420px) { .brand-name { font-size: 20px; } .brand-mark { width: 22px; height: 22px; } .nav .btn { padding: 11px 14px; letter-spacing: 0.1em; } }


/* ==================== FOOTER ==================== */
.site-foot { background: var(--ink); content-visibility: auto; contain-intrinsic-size: auto 720px; padding: clamp(80px, 12vh, 130px) 0 28px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
@media (min-width: 640px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-lead { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .foot-top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .foot-lead { grid-column: auto; } }
.foot-lead { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 42px); line-height: 1.12; max-width: 15ch; }
.foot-lead a { white-space: nowrap; color: var(--brass-2); font-style: italic; border-bottom: 1px solid rgba(217, 184, 120, 0.4); transition: border-color 0.3s ease; }
.foot-lead a:hover { border-color: var(--brass-2); }
.foot-col .label { color: var(--on-dark-3); display: block; margin-bottom: 16px; }
.foot-col a { display: block; width: fit-content; padding: 4px 0; color: var(--on-dark-2); transition: color 0.3s ease; }
.foot-col a:hover { color: var(--on-dark); }
.wordmark {
  margin-top: clamp(60px, 10vh, 110px); font-family: var(--serif); font-weight: 400; line-height: 0.8;
  font-size: clamp(64px, 18.6vw, 340px); letter-spacing: -0.045em; white-space: nowrap; text-align: center;
  color: var(--on-dark);
  background: url("/assets/stone-calacatta.webp") 50% 40% / cover;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding: 0 0.04em 0.08em; user-select: none;
}
.wordmark i { font-style: italic; font-weight: 300; }
.foot-fine { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; color: var(--on-dark-3); line-height: 1.7; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* Devanagari needs room for vowel marks and unsplit letter spacing. */
:lang(hi) .head-title, :lang(hi) .h2 { letter-spacing: 0; line-height: 1.25; }
:lang(hi) em { font-style: normal; }
:lang(hi) .label, :lang(hi) .eyebrow, :lang(hi) .btn, :lang(hi) .nav-links a, :lang(hi) .lang-switch button { letter-spacing: 0; }

/* Arabic: connected script, right-to-left reading, and isolated Latin identifiers. */
:lang(ar) body { --serif: "Geeza Pro", "Noto Naskh Arabic", Tahoma, serif; --sans: Tahoma, Arial, sans-serif; --mono: Tahoma, Arial, sans-serif; }
:lang(ar) :is(.h2, .hero-title, .mani-title, .story-copy h3, .offer-item h3, .buy-step h3, .head-title, .form-title, .sheet-info h2, .card-txt h2, .foot-lead, .payoff blockquote, .nav-drop a) { letter-spacing: 0; line-height: 1.35; }
:lang(ar) :is(.label, .eyebrow, .btn, .nav-links a, .lang-select, .lang-switch button, .story-rail button, .map-label, .map-legend > div, .lbl, .sel select, .chip, .found, .card-count span, .card-fam, .card-page, .sheet-no) { letter-spacing: 0; }
:lang(ar) em, :lang(ar) .thin { font-style: normal !important; }
:lang(ar) :is(.brand, .wordmark, .ref) { direction: ltr; unicode-bidi: isolate; }
:lang(ar) .ref { display: inline-block; }
:lang(ar) :is(.brand-name, .wordmark) { font-family: "Cormorant Garamond", Georgia, serif; }
.lang-switch button[lang="ar"] { letter-spacing: 0; }
:lang(ar) :is(.sheet-media, .lens) { direction: ltr; }
:lang(ar) :is(.card, .story-rail button) { text-align: start; }
:lang(ar) .search .glass { left: auto; right: 18px; }
:lang(ar) .search .clear { right: auto; left: 12px; }
:lang(ar) .search input { padding-left: 44px; padding-right: 46px; }
:lang(ar) .sel select { padding: 10px 16px 10px 34px; background-position: left 14px center; }
