/* ============================================================================
   DalaJewel — design system
   ----------------------------------------------------------------------------
   Palette : the registered mark, exactly. DALAJEWEL Design/logo_info.txt gives
             two colours — #1e422d deep green and #bf9f6a gold — and the site
             is built on those: warm near-whites, green for anything solid, and
             the gold kept for decoration and for small marks. No black.

             The gold cannot carry text on a light ground: #bf9f6a is 2.42:1 on
             --paper, far under AA. --gold-ink is the darkened version for when
             gold has to be readable, and --accent-on-deep is the lifted one for
             the green footer. Every pair below is measured, not chosen by eye.
   Type    : Cormorant (display) over Montserrat (interface). The logo itself is
             La Luxe Serif and the slogan PT Serif — both live in the artwork,
             not as webfonts; La Luxe is licensed and must not be served.
   Motion  : transform and opacity only, so it stays at 60fps on a mid phone.
             Everything below the fold is driven by IntersectionObserver;
             nothing is hidden unless JavaScript has confirmed it can show it
             again, and prefers-reduced-motion disables the lot.
   ========================================================================== */

/* Stand-ins with the web fonts' size, so nothing moves when Cormorant and
   Montserrat arrive from Google Fonts (6 Nov 2026: Collections shifted 0.2 on
   a phone as the fonts swapped in). Measured on the fonts themselves:
   average width over shop copy, ascent and descent scaled to match. Arial and
   Times New Roman, or their metric twins on Linux and Chrome OS. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Roboto");
  font-weight: 100 500;
  size-adjust: 111.74%; ascent-override: 86.63%; descent-override: 22.46%; line-gap-override: 0%;
}
@font-face {   /* Montserrat 600–700 against Arial Bold */
  font-family: "Montserrat Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Roboto Bold");
  font-weight: 600 900;
  size-adjust: 107.63%; ascent-override: 89.94%; descent-override: 23.32%; line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"), local("Noto Serif");
  size-adjust: 95.61%; ascent-override: 96.64%; descent-override: 30.02%; line-gap-override: 0%;
}

:root {
  /* Grounds — warm near-whites, so the gold reads as gold and not as mustard. */
  --paper: #fcfbf8;      /* main ground */
  --paper-2: #f5f2ea;    /* alternating sections */
  --paper-3: #eae4d6;    /* chips, insets, the deepest band */
  /* Whatever a product photograph is laid onto. Sections on another ground
     reset it (see .section-paper-2), so a photo always melts into its own. */
  --ground: var(--paper);

  /* The mark's green. The deepest tone on the site: footer ground and solid
     buttons. 10.84:1 on paper; white sits on it at 11.22:1. */
  --deep: #1e422d;
  --deep-soft: #2a5a3e;
  --deep-line: #3c6b51;

  /* The mark's gold. DECORATIVE ONLY on a light ground — 2.42:1 on paper, so
     it may draw a sparkle or a rule but must never carry text there. */
  --gold: #bf9f6a;
  --gold-ink: #7d5f28;   /* the gold, darkened until it reads: 5.73:1 on paper */

  --text: #1b1a16;       /* 16.83:1 on paper */
  --text-2: #4f4d45;     /* 8.18:1 on paper, 6.68:1 on paper-3 */
  --text-3: #66635b;     /* 5.80:1 on paper, 4.73:1 on paper-3 — floor for 12px */
  --text-on-deep: #f4f1ea;    /* 9.94:1 on the green */
  --text-on-deep-2: #d8d3c6;  /* 7.51:1 */

  /* Accent for eyebrows, links and icons — the mark's green, lifted just
     enough to read as a colour rather than as ink. 8.95:1 on paper. */
  --accent: #235034;
  --accent-deep: #1e422d;
  --accent-soft: #a8c0ae;
  --accent-wash: #eef3ee;     /* accent sits on this at 8.24:1 */
  --accent-on-deep: #cbb083;  /* the gold, lifted for the green footer: 5.38:1 */

  --border: #e6e0d2;
  --border-strong: #cfc6b2;
  --danger: #a3243d;
  --ok: #256b45;

  --font-display: "Cormorant", "Cormorant Fallback", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Montserrat", "Montserrat Fallback", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing — density 4/10, i.e. standard editorial rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Softer corners than the first draft — the reference sites all round their
     imagery generously and keep controls closer to square. */
  --radius-sm: 3px;
  --radius: 5px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px rgb(27 26 22 / 0.05), 0 10px 28px -14px rgb(27 26 22 / 0.16);
  --shadow-lift: 0 2px 8px rgb(27 26 22 / 0.07), 0 26px 52px -22px rgb(27 26 22 / 0.24);
  --shadow-pop: 0 28px 68px -26px rgb(27 26 22 / 0.32);

  /* Fluid rather than a flat cap. A fixed 1440 still left 44% of a 2560 screen
     empty, and any single number is either mean to a large display or edge-to-
     edge on a laptop. 92vw keeps the margin proportional at every size; the
     2200 ceiling stops an ultrawide stretching a product grid to absurdity.
        1440 screen -> 1325   1920 -> 1766   2560 -> 2200
     Reading measure is protected separately and must stay that way: prose runs
     in --wrap-narrow, .lede is 42ch and .hero-body is 44ch. */
  --wrap: min(92vw, 137.5rem);
  --wrap-narrow: 46rem;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 420ms;
  --dur-4: 900ms;
}

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

/* Both spellings: a phone browser in "desktop site" mode ignores the viewport
   tag and would otherwise enlarge some paragraphs and not others.
   Past 1920px the whole design grows with the screen instead of floating in
   the middle of it: the root size is 16px at 1920, 21.3px at 2560 (2K) and
   32px at 3840 (4K at 100%), in proportion, and everything set in rem follows,
   so a 2K or 4K screen sees exactly the 1920 layout, larger. Breakpoints are
   unaffected (rem in a media query is always the browser's 16px). The
   137.5rem cap on --wrap is the old 2200px at 16px and grows with it. */
html {
  font-size: clamp(100%, 100vw / 120, 200%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Chinese needs more leading, and none of the uppercasing or letter-spacing
   that suits Latin small caps — it damages the glyphs. */
html[lang^="zh"] body { line-height: 1.9; }
html[lang^="zh"] .display { letter-spacing: 0.005em; }
/* Chinese characters fill their whole square, so at the Latin sizes the big
   headings looked oversized (a Malaysian Chinese reader, 23 Nov 2026). */
html[lang^="zh"] .h1 { font-size: clamp(2rem, 1.1rem + 3.3vw, 3.5rem); }
html[lang^="zh"] .h2 { font-size: clamp(1.55rem, 1rem + 2.2vw, 2.6rem); }
html[lang^="zh"] .h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }
/* The short text beside a heading, smaller in Chinese too (owner, 23 Nov 2026). */
html[lang^="zh"] .lede { font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem); text-wrap: balance; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 0.25em; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.footer :focus-visible { outline-color: var(--accent-on-deep); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent-wash); color: var(--text); }

/* ---------------------------------------------------------------- type scale */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  /* Fill each line, but never leave one word alone on the last. */
  text-wrap: pretty;
}

.h1 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.75rem); }
.h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.15rem); }
.h4 {
  font-size: 0.8125rem; font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
}
html[lang^="zh"] .h4 { letter-spacing: 0.06em; text-transform: none; font-size: 0.9375rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--space-4);
}
/* No rule before the words any more (owner, 2 Nov 2026). */
html[lang^="zh"] .eyebrow { letter-spacing: 0.1em; text-transform: none; font-size: 0.8125rem; }
.on-dark .eyebrow { color: var(--accent-on-deep); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  color: var(--text-2); line-height: 1.72; max-width: 42ch;
}
.on-dark .lede { color: var(--text-on-deep-2); }
.muted { color: var(--text-2); }
.on-dark .muted { color: var(--text-on-deep-2); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8125rem; line-height: 1.6; }

/* ------------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-5); }

/* A narrow measure that still starts on the page's left gutter — constraining
   the children rather than the container keeps intro copy aligned with the
   full-width sections above and below it. `is-centred` opts back into the
   centred treatment for closing call-to-action blocks. */
.wrap-narrow > * { max-width: var(--wrap-narrow); }
.wrap-narrow.is-centred > * { margin-inline: auto; }
@media (min-width: 48rem) { .wrap { padding-inline: var(--space-7); } }

.section { padding-block: var(--section-pad); }
/* One gap between sections everywhere (owner, 7 Nov 2026: the old 7rem a side
   left ~240px of empty page between blocks on a laptop). Two sections meet at
   2 x --section-pad of space, whether or not the ground changes. A page head
   (.section-tight) already ends in its own padding, so the section after it
   starts with half. */
:root { --section-pad: clamp(3rem, 1.75rem + 3.5vw, 4.5rem); }
.section-tight + .section:not(.section-paper-2):not(.section-feature) { padding-top: calc(var(--section-pad) / 2); }
.section-tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.section-paper-2 { background: var(--paper-2); --ground: var(--paper-2); }
/* The deepest band on a page. Was a black section in the first draft; it is
   sand now, so the whole site reads as one continuous warm ground. */
.section-feature { background: var(--paper-3); }
/* Only the footer sits on brown. */
.on-dark { color: var(--text-on-deep); }

/* Marks a section as below the fold. Deliberately does nothing visually:
   content-visibility was tried here and removed — the intrinsic-size estimate
   moved the scrollbar as sections resolved, which is worse than the paint it
   saved on a page this size. */
.defer { }

.stack > * + * { margin-top: var(--space-4); }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.on-dark .rule { background: var(--deep-line); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 300;
  background: var(--deep); color: var(--text-on-deep);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: var(--space-3); }

/* ------------------------------------------------------------------ buttons */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; background: none; color: inherit;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
html[lang^="zh"] .btn { letter-spacing: 0.06em; text-transform: none; font-size: 0.9375rem; }
/* A button never wider than its column: on a narrow phone a long label (the
   Malay "Datang tengok batu-batunya", 27 Oct 2026) wraps instead of pushing
   the page sideways. */
.btn { max-width: 100%; }
@media (max-width: 30rem) { .btn { white-space: normal; text-align: center; line-height: 1.4; } }
.btn > span { position: relative; z-index: 1; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* A slow gold wipe across the button on hover. Transform only — no repaint. */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.22) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform 620ms var(--ease-out-soft);
}
.btn:hover::after { transform: translateX(110%); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-lift); }

.btn-gold { background: var(--deep); color: var(--text-on-deep); }
.btn-gold:hover { background: var(--deep-soft); box-shadow: var(--shadow-lift); }

.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Only the footer sits on brown now, so these no longer include the hero. */
.on-dark .btn-outline {
  border-color: rgb(203 176 131 / 0.5); color: var(--text-on-deep);
}
.on-dark .btn-outline:hover {
  background: var(--accent-on-deep); border-color: var(--accent-on-deep); color: var(--deep);
}

.btn-block { width: 100%; }
/* A full-width button may wrap: "Tempah tontonan untuk cincin ini" on one line
   pushed the ring summary 100px past a 360px phone (16 Oct 2026). */
.btn-block { white-space: normal; text-align: center; line-height: 1.4; }
.btn-sm { min-height: 40px; padding-inline: var(--space-4); font-size: 0.6875rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; min-height: 44px;
}
html[lang^="zh"] .link-arrow { letter-spacing: 0.06em; text-transform: none; font-size: 0.875rem; }
.on-dark .link-arrow { color: var(--accent-on-deep); }
.link-arrow svg { transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow.is-back svg { transform: rotate(180deg); }
.link-arrow.is-back:hover svg { transform: rotate(180deg) translateX(5px); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.icon-btn:hover { background: rgb(27 26 22 / 0.06); color: var(--accent); }

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

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(251 250 253 / 0.86);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-3) var(--ease), background-color var(--dur-3) var(--ease),
              transform var(--dur-3) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgb(251 250 253 / 0.96); }
/* Give the whole viewport back to the content when scrolling down a long page */
.header.is-hidden { transform: translateY(-100%); }

/* Mobile: mark and name on the left, controls on the right. */
.header-inner {
  display: grid; align-items: center; gap: var(--space-4);
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand actions";
  min-height: var(--header-h);
}

.logo {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px;
  text-decoration: none; color: inherit;
}
/* The mark ships as a transparent PNG at 2–3x its display size. Sizing by
   height keeps mark and wordmark optically matched at every breakpoint; the
   width/height attributes on the <img> still hold the aspect ratio. */
.logo svg, .logo-mark, .logo-word { flex: none; }
.logo-mark {
  height: 2.5rem; width: auto;
  transition: height var(--dur-3) var(--ease);
}
/* The registered wordmark, as artwork. It is not re-typeset anywhere: the logo
   face is La Luxe Serif and is licensed, so it may not be served as a webfont.
   Sized by height like the mark, so the pair stays optically matched. */
.logo-word {
  height: 1.15rem; width: auto;
  transition: height var(--dur-3) var(--ease);
}
/* The design set has no reversed artwork, so the footer takes the black files
   and knocks them out: brightness(0) flattens to black, invert lifts to white,
   and the slight sepia warms that white towards the cream used beside it. */
.on-dark .logo-mark, .on-dark .logo-word, .footer .logo-mark, .footer .logo-word {
  filter: brightness(0) invert(1) sepia(0.18) saturate(0.5) hue-rotate(5deg);
}
/* On a phone the lockup at full size (~208px) plus the three header controls
   (~146px) is wider than a 375px screen, and the controls slid under the
   wordmark. Smaller lockup first, tighter again for the 360px Androids that
   are common here; below 352px, where nothing fits, the wordmark is hidden
   visually but kept for screen readers — it is the link's only name, since
   the mark beside it is decorative. */
@media (max-width: 29.99rem) {
  .header .header-inner { gap: var(--space-3); }
  .header .logo { gap: 0.5rem; }
  .header .logo-mark { height: 2.1rem; }
  .header .logo-word { height: 0.95rem; }
  /* Four controls since the saved-pieces button: the language globe ran
     over the last letter of the wordmark at 360–430px (5 Nov 2026). */
  .header .header-actions { gap: 0; }
  .header .header-actions .icon-btn { width: 40px; }
  .header .lang-toggle { padding-inline: 6px; gap: 0.25rem; }
}
@media (max-width: 23.49rem) {
  .header .logo-mark { height: 1.95rem; }
  .header .logo-word { height: 0.85rem; }
  .header .lang-toggle { padding-inline: 6px; }
}
@media (max-width: 21.99rem) {
  .header .logo-word {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
.logo-text {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 400;
  letter-spacing: 0.05em; line-height: 1; white-space: nowrap;
  transition: font-size var(--dur-3) var(--ease);
}
.logo-text em { font-style: normal; color: var(--accent); }
.footer .logo-text em, .on-dark .logo-text em { color: var(--accent-on-deep); }

.nav-desktop { display: none; grid-area: nav; gap: var(--space-1); }

/* Desktop: the brand gets a band of its own, centred at the top of the page
   where the eye lands first, with the navigation on a hairline beneath it.
   Once the page scrolls the header folds back into a single compact row so it
   stops eating the viewport. */
@media (min-width: 62rem) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "lead  brand   actions"
      "nav   nav     nav";
    row-gap: 0;
    padding-top: var(--space-4);
    transition: padding var(--dur-3) var(--ease);
  }
  .logo { justify-self: center; }
  .logo-mark { height: 3.5rem; }
  .logo-word { height: 1.6rem; }
  .logo-text { font-size: 2.75rem; }

  .nav-desktop {
    display: flex; justify-content: center; width: 100%;
    margin-top: var(--space-4); padding-top: var(--space-1);
    border-top: 1px solid var(--border);
  }

  /* max-content, not auto: an auto track was sized before the lockup had
     shrunk to its scrolled height, ~55px short, and the wordmark ran under
     the first link. */
  .header.is-scrolled .header-inner {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    grid-template-areas: "brand nav actions";
    padding-top: 0;
  }
  .header.is-scrolled .logo { justify-self: start; }
  .header.is-scrolled .logo-mark { height: 2.25rem; }
  .header.is-scrolled .logo-word { height: 1rem; }
  .header.is-scrolled .logo-text { font-size: 1.6rem; }
  .header.is-scrolled .nav-desktop {
    margin-top: 0; padding-top: 0; border-top: 0;
  }
}
/* Laptop and landscape-tablet widths: lockup, six links and the language and
   selection controls need ~1,020px in one row, and below that the links
   wrapped onto two lines and slid under the wordmark (seen at 1024px, 13 Oct
   2026). Here the scrolled header stays compact but keeps the nav on its own
   row. */
/* Raised from 86rem to 96rem on 29 Oct 2026, when the search button joined
   the controls: in Malay the lockup, seven links and the controls need about
   1,350px, so at 1440 the links had begun to fold onto two lines each. */
@media (min-width: 62rem) and (max-width: 95.99rem) {
  .header.is-scrolled .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "lead  brand   actions"
      "nav   nav     nav";
  }
  .header.is-scrolled .logo { justify-self: center; }
  .header.is-scrolled .nav-desktop { border-top: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark, .logo-word, .logo-text, .header-inner { transition: none; }
}

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: var(--space-3);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; color: var(--text-2); white-space: nowrap;
  transition: color var(--dur-2) var(--ease);
}
html[lang^="zh"] .nav-link { letter-spacing: 0.04em; text-transform: none; font-size: 0.9375rem; }
/* The rule sits below the text, not at a fixed distance from the bottom of the
   44px tap target — the link is centred in that box, so a pixel offset lands
   inside the glyphs and reads as a strikethrough. Measuring down from the
   centre in em keeps it clear of the descenders at any font size, including
   the larger Chinese one. */
.nav-link::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3);
  bottom: calc(50% - 0.85em);
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-3) var(--ease-out-soft);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  grid-area: actions; justify-self: end;
  display: flex; align-items: center; gap: var(--space-1);
}

/* Language menu */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding-inline: var(--space-3);
  border: 0; background: none; cursor: pointer; color: var(--text-2);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  transition: color var(--dur-2) var(--ease);
}
.lang-toggle:hover { color: var(--text); }
.lang-toggle .lang-name { display: none; }
@media (min-width: 30rem) { .lang-toggle .lang-name { display: inline; } }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 10;
  min-width: 12rem; margin: 0; padding: var(--space-2); list-style: none;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out-soft),
              visibility var(--dur-2);
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 46px; padding-inline: var(--space-3); border-radius: var(--radius);
  text-decoration: none; font-size: 0.9375rem; color: var(--text-2);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.lang-menu a:hover { background: var(--paper-2); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }

.count-dot {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  display: none; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 0.625rem; font-weight: 700; line-height: 1;
}
.count-dot.is-visible { display: flex; animation: pop 320ms var(--ease-out-soft); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.nav-toggle { display: inline-flex; }
@media (min-width: 62rem) { .nav-toggle { display: none; } }

/* -------------------------------------------------------------- mobile menu */

/* ------------------------------------------------------------------- search */

/* Full screen on a phone; a panel near the top of a wider screen, the page
   dimmed behind it. Above the header and the drawer. */
.search { position: fixed; inset: 0; z-index: 240; }
.search[hidden] { display: none; }
.search-scrim {
  position: absolute; inset: 0; background: rgb(27 26 22 / 0.42);
  animation: search-fade var(--dur-2) var(--ease);
}
.search-panel {
  position: relative; display: flex; flex-direction: column;
  height: 100%; background: var(--paper);
  animation: search-drop var(--dur-3) var(--ease-out-soft);
}
@keyframes search-fade { from { opacity: 0; } }
@keyframes search-drop { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
@media (min-width: 48rem) {
  .search-panel {
    width: min(46rem, 92vw); height: auto; max-height: min(44rem, calc(100dvh - 8rem));
    margin: clamp(3rem, 10vh, 6rem) auto 0; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop); overflow: hidden;
  }
}
.search-bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--border); color: var(--text-3);
}
.search-input {
  flex: 1; min-width: 0; height: 3.5rem; border: 0; background: none; outline: none;
  font-family: var(--font-body); font-size: 1.0625rem; color: var(--text);
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4) var(--space-5) var(--space-6); }
.search-label {
  margin: var(--space-4) 0 var(--space-2); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
html[lang^="zh"] .search-label { letter-spacing: 0.08em; font-size: 0.8125rem; }
.search-more { color: var(--text-3); font-weight: 500; letter-spacing: 0.08em; }
.search-group:first-child .search-label { margin-top: 0; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.search-row {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-4); align-items: center;
  padding: var(--space-2); border-radius: var(--radius); color: inherit; text-decoration: none;
}
.search-row:hover, .search-row.is-active, .search-row:focus-visible { background: var(--paper-2); outline: none; }
.search-thumb {
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
}
.search-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-thumb.is-icon {
  background: var(--accent-wash) center / 1.25rem no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23235034' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 4h9l3 3v13H6z'/%3E%3Cpath d='M9 11h6M9 15h6'/%3E%3C/svg%3E");
}
.search-text { display: grid; gap: 2px; min-width: 0; }
.search-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.search-title mark { background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.search-sub {
  font-size: 0.8125rem; color: var(--text-3); line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search-note { color: var(--text-3); font-size: 0.875rem; }
.search-none p:first-child { margin: 0 0 var(--space-1); font-weight: 600; }

.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }

.drawer-scrim {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgb(27 26 22 / 0.5); opacity: 0; cursor: pointer;
  transition: opacity var(--dur-3) var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }

.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(24rem, 88vw);
  display: flex; flex-direction: column;
  padding: var(--space-5) var(--space-5) max(var(--space-5), env(safe-area-inset-bottom));
  background: var(--paper); overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out-soft);
}
.drawer.is-open .drawer-panel { transform: none; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 400;
  text-decoration: none; color: var(--text);
  opacity: 0; transform: translateX(14px);
  transition: opacity 380ms var(--ease-out-soft), transform 380ms var(--ease-out-soft), color var(--dur-2);
}
.drawer.is-open .drawer-nav a { opacity: 1; transform: none; }
.drawer-nav a:nth-child(1) { transition-delay: 60ms; }
.drawer-nav a:nth-child(2) { transition-delay: 105ms; }
.drawer-nav a:nth-child(3) { transition-delay: 150ms; }
.drawer-nav a:nth-child(4) { transition-delay: 195ms; }
.drawer-nav a:nth-child(5) { transition-delay: 240ms; }
.drawer-nav a:nth-child(6) { transition-delay: 285ms; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { color: var(--accent); }

.drawer-langs { margin-top: var(--space-6); }
.drawer-langs .field-label { margin-bottom: var(--space-2); }
.drawer-langs a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-3);
  margin-right: var(--space-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; font-size: 0.875rem; color: var(--text-2);
}
.drawer-langs a[aria-current="true"] { border-color: var(--accent); color: var(--accent); }

.drawer-contact { margin-top: auto; padding-top: var(--space-6); }

/* A phone on its side is wide but short: headings sized by the width alone
   came out as tall as half the screen (the owner's phone, 29 Oct 2026). */
@media (orientation: landscape) and (max-height: 32rem) {
  .h1, .hero-title { font-size: clamp(1.9rem, 1rem + 2.4vw, 2.75rem); }
  .h2 { font-size: clamp(1.6rem, 0.9rem + 2vw, 2.3rem); }
  .lede { font-size: 1rem; }
  .hero { padding-block: 2rem; }
}

/* --------------------------------------------------------------------- hero */

/* Light, like the rest of the site. The depth comes from a soft wash behind
   the photograph rather than from a dark ground. */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--paper-2) 0%, var(--paper) 58%);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
/* A slow bloom behind the piece, in the logo's jade (violet until 14 Oct 2026).
   Kept faint — it should be felt rather than seen, and the photograph has to
   stay the brightest thing in the frame. Static gradient, animated by
   transform only.

   `closest-side` matters: with the default farthest-corner sizing an
   off-centre circle still has colour left when it reaches the near edge, and
   the element's own boundary then shows up as a hard vertical line across the
   hero. Sizing to the closest side guarantees it has faded out first. */
.hero-glow {
  position: absolute; top: 52%; left: 70%; width: 44rem; height: 44rem;
  margin: -22rem 0 0 -22rem; pointer-events: none;
  background: radial-gradient(closest-side circle at 50% 50%,
    rgb(168 205 182 / 0.30) 0%,
    rgb(35 80 52 / 0.10) 48%,
    rgb(35 80 52 / 0) 100%);
  animation: drift 22s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.12); }
}

/* minmax(0, 1fr), not the implicit auto column: an auto column grows to the
   widest thing in it, and on a phone the row of slide dots once pushed the
   headline, buttons and photo ~20px past the right edge. */
.hero-inner {
  --hero-gap: clamp(2.5rem, 1rem + 6vw, 4.5rem);
  position: relative; z-index: 1;
  display: grid; gap: var(--hero-gap);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
/* Its own grid row (so it can run across both columns on a wide screen), but
   still only an eyebrow's distance above the headline. */
.hero-eyebrow { margin-bottom: calc(var(--space-4) - var(--hero-gap)); }
/* Side by side from a laptop up, and on a phone or tablet turned on its side,
   where stacked the photograph would sit a whole screen below the headline. */
@media (min-width: 60rem), (min-width: 46rem) and (orientation: landscape) {
  .hero-inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); row-gap: 0; }
  /* "Kuala Lumpur · eighty-five years, two families" on one line across the
     top, not folded into the text column (the owner, 29 Oct 2026). */
  .hero-eyebrow { grid-column: 1 / -1; margin-bottom: var(--space-5); }
}

/* A notch below .h1: the hero sits in half the page width, and the longest
   line ("Now in Kuala Lumpur.") has to hold on one line in all three
   languages. */
.hero-title { font-size: clamp(2.25rem, 1rem + 3.4vw, 4rem); margin-bottom: var(--space-5); }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-body { color: var(--text-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
/* Stacked on a phone, the two buttons look ragged at their natural widths. */
@media (max-width: 30rem) { .hero-actions .btn { flex: 1 1 100%; } }

/* Capped so the whole hero — headline, copy and both buttons — still fits a
   laptop viewport. Without this the square photo pushes the CTAs below the fold. */
.hero-media { position: relative; max-width: 32rem; margin-inline: auto; width: 100%; }
.hero-media .shot {
  border-radius: var(--radius-lg); overflow: hidden;
}

/* ------------------------------------------------------------ hero carousel */
/* One slide per category, so the hero doubles as a way into the collection.
   The track slides horizontally; only transform is animated. */

/* The stage carries the tilt and the floating hairline frame. The frame has to
   live outside the slider: the slider clips its overflow to keep the track
   hidden, which would swallow a frame inset outside its edges. */
.hero-stage {
  position: relative;
  /* Tilt that follows the pointer. Both angles default to zero, so the element
     is untransformed until the script sets them. */
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 420ms var(--ease-out-soft);
}

/* Instead of a drop shadow — which read as a hard grey edge against this pale
   ground — the card sits on a diffuse jade bloom. It is soft enough to give
   the card weight without drawing an outline anywhere. */
.hero-stage::before {
  content: ""; position: absolute; inset: 4% 2% -8%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side ellipse at 50% 55%,
    rgb(64 128 92 / 0.24) 0%, rgb(35 80 52 / 0) 100%);
  filter: blur(30px);
  transition: opacity var(--dur-3) var(--ease);
}

.hero-slider {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
}

/* The portraits already ship on a soft lavender backdrop, so there is no
   colour to correct. A very light green edge vignette (normal
   blend, low opacity) is all that is left — it seats the photograph into the
   card without touching the subject's colours, so a green outfit stays green. */
.hero-slide .shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 38%,
    rgb(35 80 52 / 0) 62%,
    rgb(35 80 52 / 0.08) 100%);
}

/* The specular highlight that follows the pointer. Soft-light with white lifts
   the mid-tones — metal and stones brighten, paper-white stays put — which is
   what makes the card look lit rather than merely overlaid. */
.hero-sheen {
  position: absolute; top: 0; left: 0; width: 24rem; height: 24rem;
  margin: -12rem 0 0 -12rem; z-index: 3; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side circle at 50% 50%,
    rgb(255 255 255 / 0.85) 0%,
    rgb(212 234 220 / 0.32) 46%,
    rgb(255 255 255 / 0) 100%);
  mix-blend-mode: soft-light;
  opacity: 0; will-change: transform;
  transition: opacity 420ms var(--ease);
}
.hero.is-pointing .hero-sheen { opacity: 1; }
/* The hairline frame warms toward the accent while the pointer is in the hero. */
.hero.is-pointing .hero-frame { border-color: rgb(35 80 52 / 0.5); }
.hero-track {
  display: flex; will-change: transform;
  transition: transform 720ms var(--ease-out-soft);
}
.hero-track.is-dragging { transition: none; }

.hero-slide {
  position: relative; flex: 0 0 100%; min-width: 0;
  display: block; text-decoration: none; color: inherit;
  /* Give every slide its own compositing layer. Without it, some engines decode
     an image while its slide is translated off-screen but never paint it when
     it scrolls in, leaving the incoming slide blank. This has no timing to get
     wrong, unlike a JS repaint nudge. */
  transform: translateZ(0);
}
/* Without JavaScript the track cannot move, so show the first slide only. */
.no-js .hero-slide + .hero-slide { display: none; }

/* No drop shadow here — see .hero-stage::before for the bloom that replaces it. */
.hero-slide .shot { border-radius: var(--radius-lg); }
.hero-slide .shot img { transition: transform 900ms var(--ease-out-soft); }
.hero-slide:hover .shot img { transform: scale(1.03); }

.hero-caption {
  position: absolute; left: var(--space-4); bottom: var(--space-4); z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  padding: var(--space-3) var(--space-4);
  background: rgb(251 250 253 / 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.hero-caption .label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.hero-caption .value { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
html[lang^="zh"] .hero-caption .label { letter-spacing: 0.08em; text-transform: none; }

/* Dots double as the progress indicator: the active one stretches into a bar. */
/* The tap targets touch rather than leaving a gap, and give way on a narrow
   phone: seven 44px dots and their gaps came to 356px, wider than an
   iPhone's column. Each still keeps 36px or more down to a 320px screen. */
.hero-dots {
  display: flex; justify-content: center;
  margin-top: var(--space-4);
}
.hero-dot {
  flex: 0 1 44px; min-width: 0; height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-dot::before {
  content: ""; display: block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--border-strong);
  transition: width var(--dur-3) var(--ease-out-soft), background-color var(--dur-2) var(--ease);
}
.hero-dot:hover::before { background: var(--accent-soft); }
.hero-dot[aria-current="true"]::before { width: 26px; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero-stage, .hero-track, .hero-slide .shot img { transition: none; }
}
.hero-media .shot img { will-change: transform; }

/* Caramel hairline frame, drawn in after the image lands */
.hero-frame {
  position: absolute; inset: -14px; pointer-events: none;
  border: 1px solid var(--accent-soft); border-radius: var(--radius-lg);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms 450ms var(--ease-out-soft);
}
.is-in .hero-frame { clip-path: inset(0 0 0 0); }

/* ------------------------------------------------------------------ marquee */

.marquee {
  overflow: hidden; border-block: 1px solid var(--border-strong);
  background: var(--paper-3); color: var(--text-2);
  padding-block: var(--space-4);
}
.marquee-track {
  display: flex; width: max-content; gap: var(--space-7);
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
}
html[lang^="zh"] .marquee-item { letter-spacing: 0.08em; text-transform: none; font-size: 0.875rem; }
.marquee-item svg { color: var(--accent); flex: none; }

/* -------------------------------------------------------------------- stats */

.stats {
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.stat { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.on-dark .stat { border-top-color: var(--deep-line); }
.stat-value {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: var(--space-2); font-size: 0.875rem; font-weight: 600; }
.stat-note { font-size: 0.8125rem; color: var(--text-3); }
.on-dark .stat-note { color: var(--text-on-deep-2); }

/* ------------------------------------------------------------- section heads */

.section-head { max-width: 46rem; }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-5); margin-bottom: var(--space-7);
}

/* ---------------------------------------------------------------- shots/img */

/* Every product photograph is rendered square by the build, so a 1:1 box
   crops nothing — the piece keeps the margin it was shot with. */
.shot { display: block; position: relative; background: #fff; overflow: hidden; aspect-ratio: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Inside a card the photo fills the media box exactly, under the tag. */
.card-media .shot { position: absolute; inset: 0; }

/* Product photographs are shot on pure white. Multiplied onto the ground they
   sit on, that white becomes the ground itself — so a piece floats on the page
   the way it does in a shop window, instead of sitting on a white tile that
   stands proud of the cream around it. Only white is affected: multiply by
   #fcfbf8 darkens the metal and stones by under 3%, which is not visible. */
.card-media .shot, .set-media .shot, .pdp-media .shot { background: var(--ground); }
.card-media img, .set-media img, .pdp-media img { mix-blend-mode: multiply; }

/* Arrive softly: a photo fades in once it has actually loaded, rather than
   popping in a beat after its card. site.js marks it .is-loaded. */
.js .card-media img, .js .set-media img, .js .pdp-media img { opacity: 0; }
.js .card-media img.is-loaded, .js .set-media img.is-loaded,
.js .pdp-media img.is-loaded { opacity: 1; }
.set-media img, .pdp-media img { transition: opacity 600ms var(--ease); }

/* One photograph per gold, stacked. Choosing a gold crossfades to it. */
[data-metal-shot] { opacity: 0; transition: opacity 520ms var(--ease); }
[data-metal-shot].is-active { opacity: 1; }

/* ------------------------------------------------------------ gold swatches */

/* The button is a 28px target; the visible dot is drawn 18px inside it, lit
   from the top left like a polished bead. Centres sit 32px apart, so every
   dot clears the 24px target-size rule without looking oversized. */
.swatches { display: flex; align-items: center; gap: 4px; }
.swatch {
  position: relative; flex: none; width: 28px; height: 28px;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.swatch::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 6%, var(--sw-hi) 36%, var(--sw-lo) 100%);
  box-shadow: inset 0 0 0 1px rgb(27 26 22 / 0.14);
}
.swatch::after {
  content: ""; position: absolute; inset: 1px; border-radius: 50%;
  border: 1.5px solid transparent; transition: border-color 200ms var(--ease);
}
.swatch[aria-pressed="true"]::after { border-color: var(--text-2); }
.swatch:not(.is-static):hover::after { border-color: var(--text-3); }
.swatch[aria-pressed="true"]:hover::after { border-color: var(--text-2); }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.swatch.is-static { cursor: default; }
.swatch-white  { --sw-hi: #ececed; --sw-lo: #b3b5b9; }
.swatch-yellow { --sw-hi: #f3d684; --sw-lo: #c79b3c; }
.swatch-rose   { --sw-hi: #f5c2ab; --sw-lo: #cf8469; }

.swatch-lg { width: 40px; height: 40px; }
.swatch-lg::before { inset: 7px; }
.pdp-metal .swatches { gap: 6px; }

/* A photo used as editorial rather than as a product tile */

/* ------------------------------------------------------------ product cards */

/* Two up on a phone: sixteen pieces one-per-screen is a long scroll, and the
   detail page is where a piece is meant to be seen large. */
.grid-products {
  display: grid; gap: var(--space-4) var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* A column count for each kind of screen rather than "as many 16rem cards as
   fit", which left a phone in desktop mode (about 980px) at two wide columns
   and a tablet at an odd three-and-a-bit. Two on a phone, three on a tablet or
   a small laptop, four on a laptop, five from 1600px (below). */
@media (min-width: 48rem) {
  .grid-products { gap: var(--space-6) var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 80rem) {
  .grid-products { gap: var(--space-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Home, "What people come in to see": ten pieces, shown so the last row is
   always full: eight in two or four columns, nine in three, ten in five. */
@media (max-width: 47.99rem) { .grid-products.is-featured > :nth-child(n+9) { display: none; } }
@media (min-width: 48rem) and (max-width: 79.99rem) { .grid-products.is-featured > :nth-child(n+10) { display: none; } }
@media (min-width: 80rem) and (max-width: 99.99rem) { .grid-products.is-featured > :nth-child(n+9) { display: none; } }
@media (min-width: 100rem) { .grid-products.is-featured > :nth-child(n+11) { display: none; } }

/* The collection in blocks by kind of jewellery — rings, earrings, necklaces,
   pendants, bracelets — each under a hairline heading with its count. */
.type-groups { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.type-group[hidden] { display: none; }
.type-heading {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin: 0 0 var(--space-6); padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 300; line-height: 1.1;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}
.type-count {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.13em; color: var(--text-3);
}

/* No tile, no shadow, no lift: the photograph melts into the page (see the
   multiply rule above) and the piece is the only thing that moves — a slow
   zoom on hover. The white tile, its drop shadow and a sheen that swept
   across it made every card stand proud of the page like a sticker. */
.card {
  position: relative; display: flex; flex-direction: column; color: inherit;
}
.card[hidden] { display: none; }

.card-media {
  position: relative; overflow: hidden; aspect-ratio: 1;
  background: var(--ground);
}
.card-media img {
  transition: opacity 600ms var(--ease), transform 1100ms var(--ease-out-soft);
}
.card:hover .card-media img { transform: scale(1.04); }

/* The title link covers the whole card, so a click anywhere opens the piece;
   the swatches sit above it and stay their own buttons. */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.card .swatches { position: relative; z-index: 2; margin: var(--space-3) 0 0 -5px; }
.card-sizes { margin: var(--space-1) 0 0; font-size: 0.8125rem; color: var(--accent-deep); }

/* Cards rise less than other content: they arrive in rows, and twenty-odd
   pieces each travelling 22px read as the grid sliding about. */
.js .card.reveal:not(.is-in) { transform: translate3d(0, 12px, 0); }

.card-tag {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1;
  padding: 5px var(--space-3); border-radius: 999px;
  background: rgb(251 249 246 / 0.9); backdrop-filter: blur(6px);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
html[lang^="zh"] .card-tag { letter-spacing: 0.05em; text-transform: none; font-size: 0.75rem; }

.card-body { padding-top: var(--space-2); display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 400; line-height: 1.25; }
.card-desc {
  margin: var(--space-2) 0 var(--space-3); font-size: 0.8125rem; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}
.card-price { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-meta { font-size: 0.75rem; color: var(--text-3); }

@media (min-width: 48rem) {
  .card-body { padding-top: var(--space-4); }
  .card-title { font-size: 1.375rem; }
  .card-desc { font-size: 0.875rem; margin-bottom: var(--space-4); }
  .card-foot { padding-top: var(--space-3); flex-wrap: nowrap; }
  .card-meta { text-align: right; }
}

/* ------------------------------------------------------------------ filters */

.filters {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding-bottom: var(--space-6); margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 56rem) { .filters { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-6); } }

.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.filter-group[hidden] { display: none; }
.field-label, .filter-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-right: var(--space-1);
}
html[lang^="zh"] .field-label, html[lang^="zh"] .filter-label { letter-spacing: 0.05em; text-transform: none; font-size: 0.8125rem; }

.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-4);
  border: 1px solid var(--border); border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.8125rem; color: var(--text-2);
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              background-color var(--dur-2) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.results-count { margin: 0; margin-left: auto; font-size: 0.8125rem; color: var(--text-3); }

.empty-state { padding-block: var(--space-8); text-align: center; }
.empty-state p { color: var(--text-2); margin-bottom: var(--space-5); }

/* ------------------------------------------------------------- notice strip */

.notice {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  background: var(--accent-wash); border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg); font-size: 0.9375rem; color: var(--text-2);
}
.notice svg { color: var(--accent); flex: none; margin-top: 3px; }
.notice a { color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------- product detail */

.pdp { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
/* The photo column — the frame and its thumbnails — stays in view while the
   specification scrolls past it on a laptop. */
.pdp-side { min-width: 0; }
@media (min-width: 62rem) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
  .pdp-side { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}
/* Square, so the stacked photographs — one per gold, then the worn and
   other-angle shots — can sit on top of one another and crossfade. */
.pdp-media { position: relative; aspect-ratio: 1; }
.pdp-media .shot { position: absolute; inset: 0; }
/* Hover zoom (initZoom in site.js), computers only. */
.pdp-media.has-zoom { cursor: zoom-in; }
.zoom-view {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; background-color: var(--ground); background-repeat: no-repeat;
  background-blend-mode: multiply;
  opacity: 0; transition: opacity var(--dur-2) var(--ease);
}
.pdp-media.is-zooming .zoom-view { opacity: 1; }
[data-gallery-shot] { opacity: 0; transition: opacity 520ms var(--ease); }
[data-gallery-shot].is-active { opacity: 1; }

.pdp-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pdp-thumb {
  width: 64px; height: 64px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px; background: var(--ground);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.pdp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pdp-thumb:hover { border-color: var(--text-3); }
.pdp-thumb[aria-pressed="true"] { border-color: var(--text-2); box-shadow: 0 0 0 1px var(--text-2); }
.pdp-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pdp-metal { margin-top: var(--space-5); }
.pdp-metal .pdp-label { margin-bottom: var(--space-2); }
.pdp-metal .swatches { margin-left: -6px; }
.pdp-made { margin: var(--space-2) 0 0; }
/* Other stone sizes of the same design, each its own page. */
.pdp-size { margin-top: var(--space-5); }
.pdp-size .pdp-label { margin-bottom: var(--space-2); }
.size-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.size-link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-4);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.875rem; color: var(--text-2); text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.size-link:hover { border-color: var(--border-strong); color: var(--text); }
.size-link[aria-current="page"] {
  background: var(--accent-wash); border-color: var(--accent); color: var(--accent-deep); font-weight: 600;
}
.size-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-price {
  font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 400; margin: var(--space-5) 0 var(--space-1); font-variant-numeric: tabular-nums;
}
.pdp-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin: var(--space-6) 0; padding-bottom: var(--space-6); border-bottom: 1px solid var(--border);
}
.pdp-actions .btn { flex: 1 1 12rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table th, .spec-table td { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { font-weight: 500; color: var(--text-2); width: 45%; }
.spec-table td { font-variant-numeric: tabular-nums; }

.assurance { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.assurance li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.9375rem; color: var(--text-2); }
.assurance svg { color: var(--accent); flex: none; margin-top: 4px; }

/* -------------------------------------------------------------- comparison */

.compare { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
@media (min-width: 52rem) { .compare { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

.compare-card {
  padding: var(--space-6); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--paper);
}
.compare-card.is-light { border-color: var(--border); background: var(--paper); }
.compare-title { font-size: 1.75rem; margin-bottom: var(--space-2); }
.compare-tag {
  display: inline-block; margin-bottom: var(--space-4); padding: 4px var(--space-3);
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
html[lang^="zh"] .compare-tag { letter-spacing: 0.06em; text-transform: none; font-size: 0.75rem; }
.compare-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.compare-list li { display: flex; gap: var(--space-3); font-size: 0.9375rem; }
.compare-list svg { flex: none; margin-top: 4px; color: var(--accent); }

/* ------------------------------------------------------- editorial two-col */

.split { display: grid; gap: clamp(2rem, 1rem + 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }
.split-media .shot { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* A heading with its paragraph beside it rather than under it, so a wide
   screen is not left with an empty right half (owner, 16 Oct 2026). On a
   phone it stacks as before. */
.head-split { display: grid; gap: var(--space-4) clamp(2rem, 1rem + 5vw, 4.5rem); }
.head-split .h1, .head-split .h2 { margin-bottom: 0; }
.head-split + .stock-stats { margin-top: var(--space-6); }
/* A photograph that is only there to fill a wide screen beside an intro;
   on a phone it would push the pieces or the form a screen further down. */
@media (max-width: 55.99rem) { .is-wide-only { display: none; } }
/* The eyebrow runs across both columns, and the heading and its paragraph
   start on the same line below it. Bottom-aligned, a paragraph longer than its
   heading used to climb above the eyebrow (the owner's phone, landscape,
   29 Oct 2026). */
@media (min-width: 56rem) {
  .head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .head-split > div:first-child { display: contents; }
  .head-split > div:first-child > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .head-split > div:first-child > .h1, .head-split > div:first-child > .h2 { grid-column: 1; }
  .head-split > :last-child { grid-column: 2; }
  .head-split .lede { max-width: none; margin-top: 0.35em; }
}

/* Sets (data/sets.json): the four pieces in one gold on the set's page, the
   banner on Collections and the note on each piece's page. */
.set-shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.set-shot:nth-child(3):last-child { grid-column: 1 / -1; width: calc(50% - var(--space-4) / 2); margin-inline: auto; }
.set-shot { display: grid; gap: var(--space-2); color: var(--text-2); text-decoration: none; font-size: 0.875rem; }
.set-shot .shot { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.set-shot:hover span { color: var(--accent-deep); }
/* The set's price: the pieces one by one struck through, the whole set below. */
.set-buy { margin-top: var(--space-5); display: grid; gap: var(--space-1); font-family: var(--font-body); }
.set-buy p { margin: 0; }
.set-buy-was { color: var(--text-3); font-size: 0.9375rem; }
.set-buy-was s { text-decoration-thickness: 1px; }
.set-buy-now { color: var(--text); font-size: 1.0625rem; }
.set-buy-now strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.set-buy-save { color: var(--accent); font-weight: 600; font-size: 0.875rem; }
.summary-set { color: var(--accent); }

/* Home, "Shop by occasion": a tile per line — the photograph above its words
   on a wide screen, beside them on a phone. */
.occasions { display: grid; gap: var(--space-5); }
.occasion { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4);
            align-items: center; color: var(--text-2); text-decoration: none; }
.occasion .shot { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: block; }
.occasion .shot img { transition: transform var(--dur-4) var(--ease-out-soft); }
.occasion:hover .shot img { transform: scale(1.035); }
.occasion-text { display: grid; gap: var(--space-2); }
.occasion-name { font-size: 1.625rem; line-height: 1.1; color: var(--text); }
.occasion-body { font-size: 0.9375rem; }
@media (min-width: 40rem) {
  .occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  .occasion { grid-template-columns: 1fr; align-items: start; }
}
/* Rings by style on the home page (2 Nov 2026): six tiles, two across on a
   phone, three on a tablet, all six in one row from 72rem, so no row is ever
   left short. */
.style-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
@media (min-width: 40rem) { .style-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .style-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.style-tile { display: grid; align-content: start; gap: var(--space-1); color: var(--text-2); text-decoration: none; }
.style-media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-card); margin-bottom: var(--space-2); }
.style-media picture, .style-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.style-media img { transition: transform var(--dur-4) var(--ease-out-soft); }
.style-tile:hover .style-media img { transform: scale(1.035); }
.style-name { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15; color: var(--text); }
.style-tile:hover .style-name { color: var(--accent); }
.style-note { font-size: 0.875rem; line-height: 1.45; }

/* What every piece comes with, under the first pieces (2 Nov 2026): four
   promises, two by two until there is room for one row. */
.pledges { padding: var(--section-pad) 0; border-block: 1px solid var(--border); background: var(--paper); }
.pledge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-5); }
@media (min-width: 64rem) { .pledge-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.pledge { display: flex; align-items: flex-start; gap: var(--space-3); }
.pledge > svg { flex: none; color: var(--accent); margin-top: 1px; }
.pledge strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.pledge > span > span { display: block; margin-top: 3px; font-size: 0.8125rem; line-height: 1.45; color: var(--text-3); }
@media (max-width: 29.99rem) {
  .pledge { flex-direction: column; gap: var(--space-2); }
}
.pledge-more { margin: var(--space-4) 0 0; font-size: 0.875rem; }

/* A set's four pieces in one row on a wide screen, two by two below that —
   never three and a lone fourth. */
@media (min-width: 62rem) { .grid-products.is-set { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 48rem) and (max-width: 61.99rem) { .grid-products.is-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* A set of three pieces: three across, so no slot is left empty. */
@media (min-width: 48rem) { .grid-products.is-set.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.set-banner {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-2) var(--space-4);
  align-items: center; margin: 0 0 2.5rem; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper-2);
  color: var(--text-2); text-decoration: none;
}
.set-banner-media .shot { border-radius: 8px; overflow: hidden; display: block; }
.set-banner-text { display: grid; gap: 2px; font-size: 0.9375rem; }
.set-banner-text strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text); }
.set-banner .link-arrow { grid-column: 2; }
@media (min-width: 48rem) {
  .set-banner { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .set-banner .link-arrow { grid-column: auto; }
}
.set-banner:hover { border-color: var(--accent); }
.pdp-set {
  margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--accent-wash); display: grid; gap: var(--space-2);
}
.pdp-set p { margin: 0; font-size: 0.9375rem; color: var(--text-2); }

/* Book a viewing: the form, with the hours and the quick ways to reach us
   beside it. */
.booking-layout { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); }
@media (min-width: 56rem) {
  .booking-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; }
  .booking-aside { position: sticky; top: calc(var(--header-h, 80px) + var(--space-5)); }
}
@media (min-width: 56rem) { .split.is-reverse .split-media { order: -1; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.point { display: grid; gap: var(--space-1); padding-left: var(--space-5); border-left: 1px solid var(--border); }
.on-dark .point { border-left-color: var(--deep-line); }
.point-title { font-weight: 600; font-size: 0.9375rem; }
.point-body { font-size: 0.9375rem; color: var(--text-2); }
.on-dark .point-body { color: var(--text-on-deep-2); }

/* Numbered process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 36rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); } }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
.step { counter-increment: step; padding-top: var(--space-4); border-top: 1px solid var(--border); }
.on-dark .step { border-top-color: var(--deep-line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: var(--space-3);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
}

.step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: var(--space-2); }
.step p { font-size: 0.9375rem; color: var(--text-2); }
.on-dark .step p { color: var(--text-on-deep-2); }

/* --------------------------------------------------------------- prose/info */

.prose > * + * { margin-top: var(--space-5); }
.prose h2 { margin-top: var(--space-8); }
.prose p { color: var(--text-2); }

/* Our Story's four chapters, two by two on a wide screen. One narrow column
   left the right half of a desktop page empty (owner, 14 Oct 2026); two
   columns use the width while each line stays a comfortable length. */
.story-grid { display: grid; gap: var(--space-7) clamp(3rem, 2rem + 4vw, 6rem); }
@media (min-width: 56rem) { .story-grid { grid-template-columns: 1fr 1fr; } }
.story-grid .prose h2 { margin-top: 0; }
.story-grid .prose p { max-width: 40rem; }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.value-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.value-list svg { color: var(--danger); flex: none; margin-top: 4px; }

.info-block { padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.info-block:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.info-block > :last-child { margin-bottom: 0; }
.info-title {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--space-2);
}
html[lang^="zh"] .info-title { letter-spacing: 0.06em; text-transform: none; font-size: 0.8125rem; }
.info-body { font-size: 1.0625rem; }
.info-body a { text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.info-body a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.hours-row { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); }
.hours-row + .hours-row { border-top: 1px solid var(--border); }
.hours-row dt { color: var(--text-2); }
.hours-row dd { margin: 0; font-variant-numeric: tabular-nums; }

.contact-layout { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); }
@media (min-width: 56rem) { .contact-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* -------------------------------------------------------------------- forms */

.form { display: grid; gap: var(--space-5); }
/* Without this the grid wins over [hidden] and the form stayed on screen
   above "Request received" (found 28 Oct 2026). */
.form[hidden] { display: none; }
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row-3 { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .field-row-3 { grid-template-columns: repeat(3, 1fr); } }

.field { display: grid; gap: var(--space-2); }
.label { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a524b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-4) center;
  padding-right: var(--space-7);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(35 80 52 / 0.13);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.hint { margin: 0; font-size: 0.8125rem; color: var(--text-3); }
.error {
  margin: 0; font-size: 0.8125rem; color: var(--danger); font-weight: 500;
  display: none;
}
.error.is-visible { display: block; }

.alert-success {
  padding: var(--space-7) var(--space-6); text-align: center;
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.alert-success > svg { color: var(--ok); margin: 0 auto var(--space-4); }
.alert-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
@media (max-width: 30rem) { .alert-actions .btn { flex: 1 1 100%; } }

/* Sending, and what to do when it fails: the visitor keeps what they wrote
   and can pass it to WhatsApp instead. */
.form[aria-busy="true"] [type="submit"] { opacity: 0.6; cursor: progress; }
.send-error {
  display: grid; gap: var(--space-3); padding: var(--space-4);
  border: 1px solid var(--danger); border-radius: var(--radius);
}
.send-error[hidden] { display: none; }
.send-error p { margin: 0; color: var(--danger); font-weight: 500; }

/* The trap field for form-filling robots (see _HONEYPOT in pages.py). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- selection */

.selection-layout { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 62rem) { .selection-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.sel-item {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4);
  padding-block: var(--space-4); border-bottom: 1px solid var(--border);
  animation: fade-up 380ms var(--ease-out-soft) backwards;
}
.sel-thumb { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.sel-title { font-family: var(--font-display); font-size: 1.25rem; text-decoration: none; }
.sel-title:hover { color: var(--accent); }
.sel-meta { font-size: 0.8125rem; color: var(--text-3); }
.sel-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.sel-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.link-remove {
  border: 0; background: none; padding: 0; min-height: 44px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.8125rem; color: var(--text-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-remove:hover { color: var(--danger); }

.summary {
  padding: var(--space-6); background: var(--paper-2);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
@media (min-width: 62rem) { .summary { position: sticky; top: calc(var(--header-h) + var(--space-5)); } }
.summary-row { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); font-size: 0.9375rem; }
.summary-row + .summary-row { border-top: 1px solid var(--border); }
.summary-total { font-weight: 700; font-size: 1.0625rem; }

/* ------------------------------------------------------------------- footer */

.footer {
  background: var(--deep); color: var(--text-on-deep);
  /* Room at the bottom so the WhatsApp button never sits on the links. */
  padding-block: var(--space-8) calc(var(--space-6) + 4.5rem);
}
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-6); } }

/* The group's line, kept in English in every locale — it is part of the mark. */
.footer-motto {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-display); font-style: italic; font-size: 1.125rem;
  color: var(--accent-on-deep);
}
.footer-blurb { color: var(--text-on-deep-2); font-size: 0.9375rem; max-width: 30ch; margin-top: var(--space-4); }
.footer-motto + .footer-blurb { margin-top: 0; }
.footer-title {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-on-deep); margin-bottom: var(--space-4);
}
html[lang^="zh"] .footer-title { letter-spacing: 0.08em; text-transform: none; font-size: 0.8125rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.footer-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-on-deep-2); text-decoration: none; font-size: 0.9375rem;
  transition: color var(--dur-2) var(--ease);
}
.footer-list a:hover { color: var(--accent-on-deep); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--deep-line);
  font-size: 0.8125rem; color: var(--text-on-deep-2);
}

/* -------------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: max(var(--space-5), env(safe-area-inset-bottom)); z-index: 250;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5); border-radius: 999px;
  background: var(--deep); color: var(--text-on-deep); font-size: 0.875rem;
  box-shadow: var(--shadow-pop);
  transform: translate(-50%, 130%); opacity: 0; pointer-events: none;
  transition: transform var(--dur-3) var(--ease-out-soft), opacity var(--dur-2) var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast svg { color: var(--accent-on-deep); flex: none; }

/* Floating WhatsApp — the fastest route to a human, and the one Malaysian
   customers actually use. Kept clear of the iOS home indicator. */
.wa-fab {
  position: fixed; right: var(--space-4); z-index: 90;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-lift);
  transform: scale(0); transform-origin: bottom right;
  transition: transform var(--dur-3) var(--ease-out-soft), background-color var(--dur-2) var(--ease);
}
.wa-fab.is-visible { transform: scale(1); }
.wa-fab:hover { background: var(--accent-deep); }

/* ===========================================================================
   Motion
   ------------------------------------------------------------------------
   .reveal starts hidden ONLY once JavaScript has confirmed it is running
   (html.js). Without it every .reveal is visible, so a failed script or an
   old browser shows a complete page rather than an empty one.
   ========================================================================= */

.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); }
.js .reveal-fade { transform: none; }
.js .reveal-scale { transform: translate3d(0, 18px, 0) scale(0.97); }
.js .reveal-right { transform: translate3d(-24px, 0, 0); }

.reveal {
  transition: opacity 720ms var(--ease-out-soft), transform 720ms var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Headline curtain: each line rides up from behind its own overflow box */
.reveal-lines { display: block; }
/* The display face is set at line-height 1.05, so the tails of g, y and p and
   the tops of tall letters stand outside a line's own box. Each curtain is
   padded out past them and the margins take the padding back, so the text
   sits where it always did and nothing is cut off (the owner, 29 Oct 2026:
   the g of "gold" in the home heading had lost its tail). */
.reveal-lines .line {
  display: block; overflow: hidden;
  padding: 0.14em 0.1em 0.24em; margin: -0.14em -0.1em -0.24em;
}
.reveal-lines .line > span {
  display: block;
  transition: transform 900ms var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal-lines .line > span { transform: translate3d(0, calc(100% + 0.45em), 0); }
.js .reveal-lines.is-in .line > span { transform: none; }

/* Image curtain: the photo is uncovered rather than faded, and settles from a
   slight over-scale so it feels like it was always there. */
.reveal-shot .shot { clip-path: inset(0 0 0 0); }
.js .reveal-shot .shot { clip-path: inset(0 0 100% 0); }
.reveal-shot .shot {
  transition: clip-path 1000ms var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal-shot.is-in .shot { clip-path: inset(0 0 0 0); }
.js .reveal-shot .shot img { transform: scale(1.12); transition: opacity 600ms var(--ease), transform 1400ms var(--ease-out-soft); }
.js .reveal-shot.is-in .shot img { transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Stagger for grids: the index is set on the element by the build, so the
   delay costs no JavaScript at runtime. */
.stagger > * { --reveal-delay: calc(var(--i, 0) * 70ms); }

/* Page enters from white rather than snapping in */
.js body { opacity: 0; transition: opacity 420ms var(--ease); }
.js body.is-ready { opacity: 1; }

@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;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-scale, .js .reveal-right { opacity: 1; transform: none; }
  .js .reveal-lines .line > span { transform: none; }
  .js .reveal-shot .shot { clip-path: none; }
  .js .reveal-shot .shot img { transform: none; }
  .js body { opacity: 1; }
  .marquee-track { animation: none; }
  .hero-glow { animation: none; }
}

/* Printing a product page should give a clean spec sheet, not a screenshot */
/* ============================================================================
   Stock — the loose stones and the filter that searches them
   ----------------------------------------------------------------------------
   The filter is two columns on a wide screen and one on a phone. Every control
   is a real form control underneath: checkboxes behind the shape chips, paired
   <input type="range"> behind each slider. Nothing here is a div pretending to
   be a widget, so the keyboard and the screen reader work without help.
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.stock-dated { font-size: 0.875rem; color: var(--text-3); margin: 0 0 var(--space-5); }

/* Four figures read straight off the stock. Someone deciding whether to spend
   an evening here wants the size and the entry price before they will touch a
   filter, so the numbers come before the controls, set large in the display
   face — the only place on this page where a number is allowed to be loud. */
.stock-stats {
  list-style: none; padding: 0; margin: 0 0 var(--space-5);
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.stock-stats li {
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-left: 2px solid var(--accent-soft);
  background: linear-gradient(90deg, rgb(35 80 52 / 0.045), transparent 70%);
  border-radius: 0 6px 6px 0;
}
.stat-n {
  display: block; font-family: var(--font-display); font-weight: 400;
  /* Floor low enough that "RM 900–24,400" stays on one line in a half-width
     column on a 390px phone. */
  font-size: clamp(1.25rem, 0.85rem + 1.4vw, 2rem); line-height: 1.15;
  color: var(--deep); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.stat-l {
  display: block; margin-top: var(--space-1);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
html[lang^="zh"] .stat-l { letter-spacing: 0.04em; text-transform: none; font-size: 0.8125rem; }

/* The four things a first-time buyer is actually worried about, answered
   before the price list rather than after it. */
.stock-trust {
  list-style: none; padding: 0; margin: 0 0 var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
}
.stock-trust li {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.875rem; color: var(--text-2);
}
.stock-trust svg { color: var(--gold-ink); flex: none; }

/* -- view switch ---------------------------------------------------------- */

.view-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--paper);
}
.view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-3);
  cursor: pointer; transition: background-color 180ms, color 180ms;
}
.view-btn:hover { color: var(--text); }
.view-btn[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-deep); }
.view-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stock-filters {
  display: grid; gap: var(--space-5) var(--space-7);
  padding: var(--space-5); margin-bottom: var(--space-5);
  background: var(--paper); border: 1px solid var(--border); border-radius: 8px;
}
@media (min-width: 60rem) {
  .stock-filters { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-7); }
  .stock-filters .filter-row { grid-column: 1 / -1; }
}

.filter { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-label {
  display: block; padding: 0; margin-bottom: var(--space-3);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-2);
}
html[lang^="zh"] .filter-label { letter-spacing: 0.04em; }
.filter-row { display: grid; gap: var(--space-5); }
@media (min-width: 44rem) {
  .filter-row { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
}

/* -- chips ---------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stock-chip { cursor: pointer; }
.stock-chip input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.stock-chip-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-1); min-width: 5.25rem; min-height: 4.75rem;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--paper); color: var(--text-2);
  font-size: 0.8125rem; line-height: 1.2; text-align: center;
  transition: border-color 180ms, background-color 180ms, color 180ms;
}
.chips-sm .stock-chip-face {
  flex-direction: row; min-width: 0; min-height: 44px;
  padding: var(--space-2) var(--space-4); font-size: 0.875rem;
}
.stock-chip:hover .stock-chip-face { border-color: var(--border-strong); color: var(--text); }
.stock-chip input:checked + .stock-chip-face {
  background: var(--accent-wash); border-color: var(--accent); color: var(--accent-deep);
}
.stock-chip input:focus-visible + .stock-chip-face {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.shape-glyph { color: var(--text-3); transition: color 180ms; }
.stock-chip:hover .shape-glyph { color: var(--text-2); }
.stock-chip input:checked + .stock-chip-face .shape-glyph { color: var(--accent); }

/* -- ranges --------------------------------------------------------------- */

.range-heads { display: flex; justify-content: space-between; gap: var(--space-3); }
.range-head { display: grid; gap: var(--space-1); flex: 1 1 0; min-width: 0; }
.range-head > span { font-size: 0.75rem; color: var(--text-3); }
.range-head-end { text-align: right; }
.range-head-end > span { text-align: right; }
.range-input {
  width: 100%; min-height: 44px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--paper); color: var(--text);
  font: inherit; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.range-head-end .range-input { text-align: right; }
.range-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* The rail is a shallow groove; the selected span is the logo's own ombre,
   gold running into jade, so the control is the brand rather than a bar of
   flat colour. The handles are pale and small — the gradient should be the
   thing you look at, not the furniture holding it. */
.range { position: relative; height: 2.75rem; margin-top: var(--space-2); }
.range-rail, .range-fill {
  position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px;
}
.range-rail {
  left: 0; right: 0;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px rgb(30 66 45 / 0.06);
}
.range-fill { background: linear-gradient(90deg, var(--gold), var(--accent) 62%, var(--deep)); }

/* Both sliders lie over the same rail; the track is transparent so the rail
   and fill below show through, and only the handles take the pointer. */
.range-thumb {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; background: transparent; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.range-thumb::-webkit-slider-runnable-track { background: transparent; border: 0; height: 100%; }
.range-thumb::-moz-range-track { background: transparent; border: 0; height: 100%; }
/* The input is 44px tall so the whole strip is a comfortable target, but Blink
   lays the thumb out at the TOP of a full-height track rather than centring it
   on the rail — hence the explicit half-difference, (44 - 18) / 2. Gecko
   centres its own thumb, so the -moz rule below must not repeat this. */
.range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; margin-top: 13px; border-radius: 50%;
  background: #fff; border: 1px solid var(--accent-soft);
  box-shadow: 0 1px 3px rgb(27 26 22 / 0.16), 0 4px 10px rgb(30 66 45 / 0.10);
  cursor: grab;
  transition: transform 160ms var(--ease-out-soft), box-shadow 160ms var(--ease-out-soft),
              border-color 160ms var(--ease-out-soft);
}
.range-thumb::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 1px solid var(--accent-soft);
  box-shadow: 0 1px 3px rgb(27 26 22 / 0.16), 0 4px 10px rgb(30 66 45 / 0.10);
  cursor: grab;
  transition: transform 160ms var(--ease-out-soft), box-shadow 160ms var(--ease-out-soft),
              border-color 160ms var(--ease-out-soft);
}
.range-thumb:hover::-webkit-slider-thumb {
  transform: scale(1.14); border-color: var(--accent);
  box-shadow: 0 2px 6px rgb(27 26 22 / 0.2), 0 6px 16px rgb(30 66 45 / 0.16);
}
.range-thumb:hover::-moz-range-thumb {
  transform: scale(1.14); border-color: var(--accent);
  box-shadow: 0 2px 6px rgb(27 26 22 / 0.2), 0 6px 16px rgb(30 66 45 / 0.16);
}
/* Pressed: the handle sinks slightly and a soft jade halo confirms the grab
   without the handle growing large enough to hide the value under the thumb. */
.range-thumb:active::-webkit-slider-thumb {
  cursor: grabbing; transform: scale(1.06); border-color: var(--accent);
  box-shadow: 0 0 0 6px rgb(35 80 52 / 0.13), 0 1px 3px rgb(27 26 22 / 0.2);
}
.range-thumb:active::-moz-range-thumb {
  cursor: grabbing; transform: scale(1.06); border-color: var(--accent);
  box-shadow: 0 0 0 6px rgb(35 80 52 / 0.13), 0 1px 3px rgb(27 26 22 / 0.2);
}
.range-thumb:focus { outline: none; }
.range-thumb:focus-visible::-webkit-slider-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}
.range-thumb:focus-visible::-moz-range-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .range-thumb::-webkit-slider-thumb { transition: none; }
  .range-thumb::-moz-range-thumb { transition: none; }
  .range-thumb:hover::-webkit-slider-thumb,
  .range-thumb:active::-webkit-slider-thumb { transform: none; }
  .range-thumb:hover::-moz-range-thumb,
  .range-thumb:active::-moz-range-thumb { transform: none; }
}

.scale-ticks {
  display: flex; justify-content: space-between; gap: var(--space-1);
  font-size: 0.8125rem; font-variant-numeric: tabular-nums;
}
/* Which grades we actually hold is information, not decoration, so the
   distinction is drawn by weighting what IS in the case rather than by fading
   what is not — dropping opacity on the absent ones would take them under
   4.5:1 and the rest of this site has no such text on it. Both states stay
   legible: --text at 16.48:1, --text-3 at 5.48:1 on this ground. */
.scale-tick { color: var(--text); font-weight: 600; }
.scale-tick.is-out { color: var(--text-3); font-weight: 400; }
.range-scale { margin-top: 0; }

/* -- toolbar -------------------------------------------------------------- */

.stock-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-4);
}
.stock-count { margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.stock-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.btn-reset {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--paper); color: var(--text-2);
  font: inherit; font-size: 0.875rem; cursor: pointer;
  transition: border-color 180ms, color 180ms, background-color 180ms;
}
.btn-reset svg { transform: rotate(180deg); }
.btn-reset:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-wash); }
.btn-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stock-sort { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); max-width: 100%; font-size: 0.875rem; color: var(--text-2); }
/* On a 320px phone the Malay label and the longest option no longer fit on
   one line; the select shrinks to the column rather than widening the page. */
.stock-sort .select { min-height: 44px; width: auto; max-width: 100%; }

/* -- the list ------------------------------------------------------------- */

.stock-scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stock-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.stock-table thead th {
  position: sticky; top: 0; z-index: 1;
  padding: var(--space-3); border-bottom: 1px solid var(--border-strong);
  background: var(--paper-2); text-align: left; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-2);
}
html[lang^="zh"] .stock-table thead th { letter-spacing: 0.02em; text-transform: none; }
.stock-table td { padding: var(--space-3); border-bottom: 1px solid var(--border); vertical-align: middle; }
.stock-row { transition: background-color 160ms; }
.stock-row:hover { background: var(--paper); }
.stock-ref { font-weight: 600; color: var(--text); white-space: nowrap; }
.stock-shape { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.stock-shape .shape-glyph { color: var(--accent); flex: none; }
.stock-carat { font-weight: 600; color: var(--text); }
.grade {
  display: inline-block; padding: 2px var(--space-2);
  border-radius: 4px; background: var(--paper-3); color: var(--text-2);
  font-size: 0.8125rem; font-weight: 600;
}
.grade-fancy { background: var(--accent-wash); color: var(--accent-deep); }
.stock-mm { color: var(--text-2); white-space: nowrap; font-size: 0.875rem; }
.stock-price { font-weight: 600; color: var(--text); white-space: nowrap; }
.stock-report { white-space: nowrap; }
.stock-link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 44px; padding-right: var(--space-3);
  color: var(--accent); font-size: 0.8125rem; font-weight: 600; text-decoration: none;
}
.stock-link:hover { color: var(--accent-deep); text-decoration: underline; }
.stock-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.stock-link svg { flex: none; }
.stock-empty { margin: var(--space-6) 0; color: var(--text-2); }
.stock-note { margin-top: var(--space-5); }

/* ---------------------------------------------------------------- cards ---
   Cards are the default view, at every width and with JavaScript off. A
   65-row spreadsheet is the right tool for someone who already knows what
   they want and the wrong first impression for someone deciding whether to
   want anything, so the table is the opt-in and lives behind the switch.
   Each card is a two-column spec sheet — label above value — with carat and
   price promoted, and measurements and the report links running full width. */

.stock-scroller.is-grid { overflow-x: visible; }
.is-grid .stock-table thead { display: none; }
.is-grid .stock-table, .is-grid .stock-table tbody { display: block; width: 100%; }
.is-grid .stock-table tbody {
  display: grid; gap: var(--space-4); align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.is-grid .stock-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4);
  align-content: start; padding: var(--space-5);
  border: 1px solid var(--border); border-radius: 10px; background: var(--paper);
  transition: transform 260ms var(--ease-out-soft), box-shadow 260ms var(--ease-out-soft),
              border-color 260ms var(--ease-out-soft);
}
.is-grid .stock-row:hover {
  transform: translateY(-3px); border-color: var(--accent-soft);
  box-shadow: 0 12px 32px rgb(30 66 45 / 0.10), 0 2px 6px rgb(27 26 22 / 0.05);
}
.is-grid .stock-row:focus-within { border-color: var(--accent); }
.is-grid .stock-table td {
  display: flex; flex-direction: column; gap: 1px;
  padding: 0; border-bottom: 0; min-width: 0;
}
.is-grid .stock-table td::before {
  content: attr(data-label); order: -1;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
html[lang^="zh"] .is-grid .stock-table td::before {
  letter-spacing: 0; text-transform: none; font-size: 0.75rem;
}
/* Carat and price are what the eye goes to, so they are the only two set in
   the display face — the same hierarchy the product cards use. */
.is-grid [data-col="carat"] .stock-carat,
.is-grid [data-col="price"] .stock-price {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--deep);
}
.is-grid [data-col="ref"] { grid-column: 1 / -1; }
.is-grid [data-col="ref"]::before { display: none; }
.is-grid [data-col="ref"] .stock-ref {
  display: inline-flex; align-self: start; padding: 3px var(--space-2);
  border-radius: 4px; background: var(--paper-3);
  font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-2);
}
.is-grid [data-col="size"] { grid-column: 1 / -1; }
.is-grid [data-col="size"] .stock-mm { white-space: normal; }
/* Written against td.stock-report, not .stock-report — the base cell rule
   above carries an element selector and would otherwise keep this column. */
.is-grid .stock-table td.stock-report {
  grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap;
  gap: var(--space-1) var(--space-4); align-items: center;
  margin-top: var(--space-2); padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
/* flex-basis alone still shrinks; the label has to claim the whole line so the
   two links sit together on the one below it. */
.is-grid .stock-table td.stock-report::before { flex: 0 0 100%; }
.is-grid .stock-link { min-height: 36px; padding-right: 0; }

/* The card's face (2 Nov 2026, after Michael Trio): a photo of the shape,
   the stone in one line, the price and the button; "Details" opens the spec
   sheet below. The table view never shows the face. */
.stock-face { display: none; }
.is-grid .stock-table td.stock-face { display: grid; gap: var(--space-3); grid-column: 1 / -1; }
.is-grid .stock-table td.stock-face::before { display: none; }
.stock-photo {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  border-radius: 8px; background: var(--paper-2); overflow: hidden;
}
.stock-photo img { width: 62%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 10px rgb(27 26 22 / 0.12)); }
.stock-photo .shape-glyph { width: 40%; height: auto; color: var(--accent); }
.stock-photo-note {
  position: absolute; left: var(--space-2); bottom: var(--space-2);
  padding: 2px var(--space-2); border-radius: 4px; background: rgb(252 251 248 / 0.88);
  font-size: 0.6875rem; color: var(--text-3);
}
.stock-title { display: grid; gap: 2px; }
.stock-title strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--text); }
.stock-title span { font-size: 0.875rem; color: var(--text-2); }
.stock-more, .stock-more-filters {
  display: inline-flex; align-items: center; gap: var(--space-1); justify-self: start;
  min-height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 0.8125rem; font-weight: 600;
}
.stock-more svg, .stock-more-filters svg { transition: transform 200ms var(--ease); }
.stock-more[aria-expanded="true"] svg, .stock-more-filters[aria-expanded="true"] svg { transform: rotate(180deg); }
.stock-more:hover, .stock-more-filters:hover { color: var(--accent-deep); text-decoration: underline; }
/* Closed, a card keeps only its face, the price and the main button. */
.is-grid .stock-row:not(.is-open) td[data-col]:not([data-col="face"]):not([data-col="price"]) { display: none; }
.is-grid .stock-row:not(.is-open) td.stock-report::before,
.is-grid .stock-row:not(.is-open) .stock-link { display: none; }
.is-grid .stock-table td[data-col="price"] { grid-column: 1 / -1; }
.is-grid .stock-row:not(.is-open) td.stock-report { margin-top: 0; padding-top: 0; border-top: 0; }

/* "More filters" opens colour, clarity and the rest; the fields inside stay
   items of the form's own grid. */
.stock-more-filters { grid-column: 1 / -1; justify-self: start; padding: var(--space-2) var(--space-4); border: 1px solid var(--border-strong); border-radius: 999px; }
.filter-more:not([hidden]) { display: contents; }

/* The table, for anyone who would rather scan a column. Never on a narrow
   screen — ten columns of 15px numerals is not a phone layout. */
@media (max-width: 63.999rem) {
  .view-switch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-grid .stock-row { transition: none; }
  .is-grid .stock-row:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stock-chip-face, .shape-glyph, .btn-reset, .stock-row { transition: none; }
}

/* ============================================================================
   Ring builder — diamond, then setting, then the ring
   ========================================================================== */

/* -- step bar ------------------------------------------------------------- */

/* Named bstep, not step — .step is already the home page's four-step list,
   which carries a counter and prints "01" through its ::before. */
.build-bar { margin-bottom: var(--space-6); }
.build-bar ol {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--paper); overflow: hidden;
}
.bstep {
  display: flex; border-left: 1px solid var(--border-strong);
  font-size: 0.8125rem;
}
.bstep:first-child { border-left: 0; }
.bstep > a, .bstep > span {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; min-height: 56px; padding: var(--space-3) var(--space-5);
  color: var(--text-3); text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.bstep > a:hover { background: var(--accent-wash); color: var(--accent-deep); }
.bstep > a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.bstep-n {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  font-variant-numeric: lining-nums; flex: none;
}
.bstep-l { font-weight: 600; letter-spacing: 0.02em; }
/* Done steps read as available, the current one as where you are, and the
   ones ahead stay quiet until the script opens them. */
.bstep.is-done > a { color: var(--text-2); }
.bstep.is-done .bstep-n { color: var(--accent); }
.bstep.is-current { background: var(--accent-wash); }
.bstep.is-current > a, .bstep.is-current > span { color: var(--accent-deep); }
.bstep.is-current .bstep-n { color: var(--accent); }
.bstep.is-open > a { color: var(--text-2); }
@media (max-width: 44rem) {
  .build-bar ol { grid-auto-flow: row; border-radius: 12px; }
  .bstep { border-left: 0; border-top: 1px solid var(--border-strong); }
  .bstep:first-child { border-top: 0; }
  .bstep > a, .bstep > span { min-height: 48px; padding-block: var(--space-2); }
}

/* -- the stone you are carrying ------------------------------------------- */

.picked-bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--deep); color: var(--text-on-deep);
  box-shadow: 0 2px 12px rgb(27 26 22 / 0.18);
}
.picked-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-5); padding-block: var(--space-3);
}
.picked-slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.picked-label {
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-on-deep);
}
html[lang^="zh"] .picked-label { letter-spacing: 0.04em; text-transform: none; }
.picked-value { font-size: 0.9375rem; }
.picked-price { font-family: var(--font-display); font-size: 1.25rem; }
.picked-bar .btn-outline {
  border-color: rgb(203 176 131 / 0.5); color: var(--text-on-deep);
}
.picked-bar .btn-outline:hover { background: var(--accent-on-deep); border-color: var(--accent-on-deep); color: var(--deep); }

/* -- settings ------------------------------------------------------------- */

.set-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: var(--space-5) var(--space-7); margin-bottom: var(--space-6);
}
.set-filters .stock-count { margin-left: auto; }
.set-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
@media (min-width: 48rem) { .set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .set-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Once --wrap went fluid, auto-fill kept adding columns on a large display and
   the photographs shrank — seven 265px cards on a 2560 screen read as a stock
   list, not a collection. Capping the count instead of raising the floor keeps
   a laptop dense (four across) and makes the extra width go into bigger
   pictures rather than more of them (five across, near 400px). */
@media (min-width: 100rem) {
  .grid-products, .set-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.set-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--paper); overflow: hidden;
  transition: transform 260ms var(--ease-out-soft), box-shadow 260ms var(--ease-out-soft),
              border-color 260ms var(--ease-out-soft);
}
.set-card:hover {
  transform: translateY(-3px); border-color: var(--accent-soft);
  box-shadow: 0 12px 32px rgb(30 66 45 / 0.10);
}
.set-media { position: relative; aspect-ratio: 1; background: var(--ground); }
.set-media .shot { position: absolute; inset: 0; }
.set-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); flex: 1; }
.set-style {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
html[lang^="zh"] .set-style { letter-spacing: 0.04em; text-transform: none; }
.set-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.set-spec { list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; color: var(--text-2); }
.set-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-top: auto; padding-top: var(--space-3);
}
.set-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--deep); }

.set-shapes {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0; font-size: 0.8125rem; color: var(--text-2);
}
.set-glyphs { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-soft); }
.set-spin-tag {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px var(--space-2); border-radius: 999px;
  background: rgb(255 255 255 / 0.92); color: var(--accent-deep);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
}
.set-card .link-arrow { font-size: 0.75rem; }

/* -- one setting, every cut it is made in --------------------------------- */

.pdp { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 62rem) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr); gap: var(--space-7); }
  .pdp-gallery { position: sticky; top: var(--space-6); }
}
.pdp-frame { display: block; }
.pdp-frame[hidden] { display: none; }

/* The spin is a stack of stills, swapped by the pointer. Cursor and hint say
   so before anyone tries, because a still ring looks like a photograph. */
.spin {
  position: relative; aspect-ratio: 1; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  touch-action: pan-y;
}
.spin[data-spin] { cursor: ew-resize; }
/* Once every frame is decoded the canvas takes over from the poster still. */
.spin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spin-frame { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.spin:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.spin-hint {
  position: absolute; left: 50%; bottom: var(--space-4); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: 999px;
  background: rgb(27 26 22 / 0.72); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.04em; white-space: nowrap;
  transition: opacity 260ms var(--ease);
}
.spin-hint.is-gone { opacity: 0; }
.spin .shot, .spin picture { position: absolute; inset: 0; }

.pdp-panel { display: flex; flex-direction: column; gap: var(--space-4); }
.pdp-prices { margin: 0; }
.pdp-price {
  font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--deep);
}
.pdp-price[hidden] { display: none; }
.pdp-sub { margin: 0; font-size: 0.875rem; color: var(--text-2); }
.pdp-label {
  margin: 0 0 var(--space-3); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
html[lang^="zh"] .pdp-label { letter-spacing: 0.04em; text-transform: none; }
.pdp-label span { color: var(--accent-deep); }
.pdp-oneshape { margin: 0; font-size: 0.875rem; color: var(--text-3); }
.shape-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.shape-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 4.5rem; min-height: 4.25rem; padding: var(--space-2);
  border: 1px solid var(--border); border-radius: 6px; background: var(--paper);
  color: var(--text-2); font: inherit; font-size: 0.75rem; cursor: pointer;
  transition: border-color 180ms, background-color 180ms, color 180ms;
}
.shape-btn:hover { border-color: var(--border-strong); color: var(--text); }
.shape-btn.is-on {
  background: var(--accent-wash); border-color: var(--accent); color: var(--accent-deep);
}
.shape-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shape-btn-glyph { color: var(--text-3); display: block; }
.shape-btn.is-on .shape-btn-glyph { color: var(--accent); }
.pdp-cta [hidden] { display: none; }
.pdp-assure { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.pdp-assure li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: 0.875rem; color: var(--text-2);
}
.pdp-assure svg { color: var(--gold-ink); flex: none; margin-top: 2px; }
.pdp-h3 {
  margin: var(--space-3) 0 0; padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 400; font-size: 1.25rem;
}
.pdp-spec [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .shape-btn, .spin-hint { transition: none; }
}

/* -- the finished ring ---------------------------------------------------- */

.ring-empty { text-align: center; padding-block: var(--space-6); }
.ring-empty .lede { margin-inline: auto; margin-bottom: var(--space-5); }
.ring-build { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 62rem) {
  .ring-build { grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr); gap: var(--space-7); }
}
.ring-parts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: center; }
@media (min-width: 40rem) {
  .ring-parts { grid-template-columns: 1fr auto 1fr; }
}
.ring-part {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5); border: 1px solid var(--border);
  border-radius: 10px; background: var(--paper); height: 100%;
}
.ring-part-media {
  display: grid; place-items: center;
  aspect-ratio: 1; background: #fff; border-radius: 6px; overflow: hidden;
}
.ring-part-media img { width: 100%; height: 100%; object-fit: cover; }
/* The stone has no photograph of its own, so its cut is drawn instead — the
   two halves of the ring then carry the same visual weight. */
.ring-glyph { display: grid; place-items: center; color: var(--accent-soft); }
/* The mount is photographed with whatever stone the catalogue put in it, which
   will rarely be the cut chosen at step one. Saying so stops the difference
   reading as a mistake. */
.ring-part-caption { margin: 0; font-size: 0.75rem; color: var(--text-3); }
.ring-part-label {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
html[lang^="zh"] .ring-part-label { letter-spacing: 0.04em; text-transform: none; }
.ring-part-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.ring-part-spec { margin: 0; font-size: 0.875rem; color: var(--text-2); }
.ring-part-price { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--deep); }
.ring-plus {
  justify-self: center; font-family: var(--font-display); font-size: 2rem; color: var(--accent-soft);
}
.ring-total {
  padding: var(--space-5); border: 1px solid var(--border-strong);
  border-radius: 10px; background: var(--paper-3);
}
.ring-lines { margin: 0 0 var(--space-5); }
.ring-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-3); border-bottom: 1px solid var(--border-strong);
}
.ring-line dt { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.ring-line dd { margin: 0; font-variant-numeric: tabular-nums; }
.ring-line-total { border-bottom: 0; padding-top: var(--space-4); }
.ring-line-total dt { color: var(--text); font-weight: 600; }
.ring-line-total dd { font-family: var(--font-display); font-size: 1.75rem; color: var(--deep); }
.ring-note { margin: var(--space-4) 0 0; font-size: 0.8125rem; color: var(--text-2); }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .set-card, .bstep > a { transition: none; }
  .set-card:hover { transform: none; }
}

@media print {
  .header, .drawer, .footer, .wa-fab, .toast, .pdp-actions, .marquee { display: none !important; }
  body { background: #fff; }
  .js .reveal, .js .reveal-lines .line > span { opacity: 1 !important; transform: none !important; }
  .js .reveal-shot .shot { clip-path: none !important; }
}

/* ------------------------------------------------ scroll-driven motion
   The owner's trial of 26 Oct 2026, after OPPO's scroll-told product pages:
   used where a piece is being shown, not on the pages a buyer works through
   (collections, a piece's page, booking). Everything here rests at its
   finished state without the script or under reduced motion — the variables
   the script writes default to "done". */

/* A set page told as a story. The hero eases in as the page leaves it… */
.set-story-hero .split-media .shot img {
  transform: scale(calc(1 + var(--story-zoom, 0) * 0.08)); transform-origin: 50% 40%;
}
.set-story-hero [data-story-copy] {
  transform: translate3d(0, calc(var(--story-zoom, 0) * -48px), 0);
  opacity: calc(1 - var(--story-zoom, 0) * 0.5);
}
/* …and a light passes once across the photograph as the page opens. */
.set-story-hero .split-media .shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.7) 50%, transparent 65%);
  transform: translate3d(-130%, 0, 0);
  animation: story-sheen 2.2s 0.8s var(--ease-out-soft) both;
}
@keyframes story-sheen { to { transform: translate3d(130%, 0, 0); } }

/* Beside the history, one photograph held on the screen, changing with the
   paragraph being read (the grid of four stays on a phone). */
.story-stage { display: none; }
@media (min-width: 56rem) {
  .story-col { align-self: stretch; }
  .story-fallback { display: none; }
  /* Small enough to stay whole on the screen, and the text runs on a little
     past its last paragraph so the photograph is still held while it is read. */
  .story-stage {
    display: grid; position: sticky; top: calc(var(--header-h) + 2rem);
    width: min(100%, calc(100vh - var(--header-h) - 8rem)); margin-inline: auto;
  }
  .set-story-history .prose { padding-bottom: 30vh; }
  .story-shot {
    grid-area: 1 / 1; display: grid; gap: var(--space-3); color: var(--text-2);
    text-decoration: none; opacity: 0; transform: scale(1.03);
    transition: opacity 700ms var(--ease), transform 1200ms var(--ease-out-soft);
    pointer-events: none;
  }
  .story-shot.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .story-shot .shot { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
  .story-caption { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.875rem; }
  .story-shot:hover .story-caption { color: var(--accent-deep); }
  .js .set-story-history [data-story-step] { transition: opacity 400ms var(--ease); }
  .js .set-story-history [data-story-step]:not(.is-current) { opacity: 0.45; }
}

/* The four pieces come together from four sides as their grid scrolls in.
   --g is how far they have come: 1, all in place, unless the script says less. */
.set-story-pieces { overflow-x: clip; }
.story-gather-card {
  transform:
    translate3d(calc(var(--fx) * var(--gs, 1) * (1 - var(--g, 1))), calc(var(--fy) * var(--gs, 1) * (1 - var(--g, 1))), 0)
    rotate(calc(var(--fr) * (1 - var(--g, 1))));
  opacity: calc(0.15 + 0.85 * var(--g, 1));
}
@media (max-width: 47.99rem) { [data-story-gather] { --gs: 0.4; } }

/* The price: the pieces one by one struck through as it comes in. */
.set-story-pieces .set-buy-was s { text-decoration: none; position: relative; }
.set-story-pieces .set-buy-was s::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 55%;
  border-top: 1px solid currentColor; transform-origin: left center;
}
.js .set-story-pieces .set-buy:not(.is-in) .set-buy-was s::after { transform: scaleX(0); }
.js .set-story-pieces .set-buy.is-in .set-buy-was s::after { transition: transform 700ms 500ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .search-scrim, .search-panel { animation: none; }
  .set-story-hero .split-media .shot::after { animation: none; display: none; }
  .story-shot { transition: none; }
}

/* ------------------------------------------------------------------ guides */
/* The hub (guides.html) and the five articles (src/guides.py). The article
   is a reading column with its contents beside it on a wide screen. */

.guide-grid { display: grid; gap: var(--space-4); }
.guide-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4) 2.5rem var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.guide-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.guide-title { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); margin: 0; line-height: 1.2; }
.guide-go { position: absolute; right: 0.875rem; bottom: var(--space-4); color: var(--accent); transition: transform var(--dur-2) var(--ease); }
.guide-sum { display: none; margin: 0; font-size: 0.9375rem; line-height: 1.6; }
/* From tablet width up there's room for the summary, and the arrow goes
   back below it; on a phone the card is just the time and the title. */
@media (min-width: 40rem) {
  .guide-card { min-height: 8.5rem; padding: var(--space-5); gap: var(--space-3); }
  .guide-sum { display: block; flex: 1; }
  .guide-go { position: static; align-self: flex-end; margin-top: var(--space-1); }
}
.guide-card:hover .guide-go { transform: translateX(3px); }
.guide-meta {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-ink);
}
html[lang^="zh"] .guide-meta { letter-spacing: 0.06em; font-size: 0.8125rem; }
@media (min-width: 40rem) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) and (max-width: 71.99rem) {
  .guide-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 72rem) {
  .guide-grid { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
}
/* Five in a row is too narrow (2 Nov 2026, the diamonds group): three, then
   two wider ones, so both rows end at the same edge. */
@media (min-width: 72rem) {
  .guide-grid.is-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .guide-grid.is-five > * { grid-column: span 2; }
  .guide-grid.is-five > :nth-child(n+4) { grid-column: span 3; }
}

/* The hub in four groups (29 Oct 2026), with a row of links to jump to one. */
.guide-jump { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.guide-jump-row { display: grid; gap: var(--space-2); }
.guide-jump-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 40rem) {
  .guide-jump-row { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; gap: var(--space-3); }
}
.guide-jump-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
}
html[lang^="zh"] .guide-jump-label { letter-spacing: 0.06em; font-size: 0.8125rem; }
/* The two parts of the hub, Guides and Knowledge (19 Nov 2026). */
.guide-part { display: grid; gap: var(--space-7); scroll-margin-top: calc(var(--header-h) + 1rem); }
.guide-part-head { display: grid; gap: var(--space-2); padding-top: var(--space-6); border-top: 1px solid var(--border-strong); }
.guide-part-head h2, .guide-part-head p { margin: 0; }
.guide-part-head p { max-width: 60ch; }
@media (min-width: 56rem) {
  .guide-part-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; gap: var(--space-6); }
}
.guide-groups { display: grid; gap: var(--space-8); }
.guide-group { scroll-margin-top: calc(var(--header-h) + 1rem); }
.guide-group-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.guide-group-head h2, .guide-group-head h3 { margin: 0; }
.guide-group-head p { margin: 0; max-width: 60ch; }
@media (min-width: 56rem) {
  .guide-group-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; gap: var(--space-6); }
}

.crumbs {
  margin: 0 0 var(--space-4); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
html[lang^="zh"] .crumbs { letter-spacing: 0.06em; font-size: 0.8125rem; }

.article-layout { display: grid; gap: var(--space-6); }
.article { min-width: 0; max-width: 46rem; }
.article > h2 { margin: var(--space-8) 0 var(--space-4); scroll-margin-top: calc(var(--header-h) + 1rem); }
.article > h2:first-child { margin-top: 0; }
.article > p, .g-list li { color: var(--text-2); font-size: 1.0625rem; line-height: 1.78; }
.article > p { margin: 0 0 var(--space-4); }
.article strong { color: var(--text); font-weight: 600; }
.article a:not(.guide-step):not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.g-list { margin: 0 0 var(--space-5); padding-left: 1.25rem; }
.g-list li + li { margin-top: var(--space-3); }
.g-list li::marker { color: var(--gold); }

.toc {
  align-self: start; padding: var(--space-5); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--paper);
}
.toc-title { margin: 0 0 var(--space-3); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
html[lang^="zh"] .toc-title { letter-spacing: 0.06em; font-size: 0.8125rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-2); font-size: 0.9375rem; }
.toc ol.is-plain { list-style: none; padding-left: 0; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.g-fact, .g-bench { margin: var(--space-6) 0; padding: var(--space-5); border-radius: var(--radius-lg); }
.g-fact p, .g-bench p { margin: 0; color: var(--text-2); line-height: 1.7; }
.g-fact p + p, .g-bench p + p { margin-top: var(--space-2); }
.g-fact { background: var(--accent-wash); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.g-fact-label, .g-bench-label {
  display: flex; align-items: center; gap: 0.5em;
  font-size: 0.6875rem !important; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
html[lang^="zh"] .g-fact-label, html[lang^="zh"] .g-bench-label { letter-spacing: 0.06em; font-size: 0.8125rem !important; }
.g-fact-label { color: var(--accent) !important; }
.g-fact-label svg { color: var(--gold); }
.g-bench { background: var(--paper-2); border: 1px solid var(--border); }
.g-bench-label { color: var(--gold-ink) !important; }

.g-figure { margin: var(--space-6) 0; }
.g-figure figcaption { margin-top: var(--space-3); font-size: 0.8125rem; color: var(--text-3); line-height: 1.6; }

.g-table-wrap { margin: var(--space-6) 0; container-type: inline-size; }
.g-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.g-table caption { text-align: left; font-size: 0.8125rem; color: var(--text-3); padding-bottom: var(--space-2); }
.g-table th, .g-table td { padding: var(--space-3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.g-table thead th { background: var(--paper-2); font-weight: 600; color: var(--text); }
.g-table tbody th { font-weight: 600; color: var(--text); }
.g-table td { color: var(--text-2); }
.g-table.is-wide { font-size: 0.8125rem; }
.g-table.is-wide th, .g-table.is-wide td { padding: var(--space-3) var(--space-2); }
.g-table tr.is-ours { background: var(--accent-wash); }
.g-table tr.is-ours th, .g-table tr.is-ours td { color: var(--accent-deep); }

/* Never a sideways scroll (owner, 28 Oct 2026). Where the column is too
   narrow for the table, each row becomes a card of "column: value" lines:
   wide tables (five columns or more) below 44rem of column, the rest below
   38rem (Malay is long: the four-column table overflowed at 600px). */
@container (max-width: 44rem) {
  .g-table.is-wide, .g-table.is-wide tbody, .g-table.is-wide tr,
  .g-table.is-wide th, .g-table.is-wide td { display: block; }
  .g-table.is-wide thead { display: none; }
  .g-table.is-wide tr { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  .g-table.is-wide tr + tr { margin-top: var(--space-3); }
  .g-table.is-wide tbody th { padding: 0 0 var(--space-2); border: 0; font-size: 1rem; }
  .g-table.is-wide td { display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: var(--space-3); padding: var(--space-1) 0; border: 0; font-size: 0.875rem; }
  .g-table.is-wide td::before { content: attr(data-label); font-weight: 600; color: var(--text); }
}
@container (max-width: 38rem) {
  .g-table:not(.is-compact), .g-table:not(.is-compact) tbody, .g-table:not(.is-compact) tr, .g-table:not(.is-compact) th, .g-table:not(.is-compact) td { display: block; }
  .g-table:not(.is-compact) thead { display: none; }
  .g-table:not(.is-compact) tr { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  .g-table:not(.is-compact) tr + tr { margin-top: var(--space-3); }
  .g-table:not(.is-compact) tbody th { padding: 0 0 var(--space-2); border: 0; font-size: 1rem; }
  .g-table:not(.is-compact) td { display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: var(--space-3); padding: var(--space-1) 0; border: 0; font-size: 0.875rem; }
  .g-table:not(.is-compact) td::before { content: attr(data-label); font-weight: 600; color: var(--text); }
}
/* On the smallest phones the value column is narrower than a long Malay
   word ("membezakannya" pushed out of its card at 320px), so the label
   sits above the value instead of beside it. */
@container (max-width: 21rem) {
  .g-table:not(.is-compact) td, .g-table.is-wide td { grid-template-columns: minmax(0, 1fr); gap: 0; padding: var(--space-2) 0 0; }
}

/* Gold content by karat, and the weight units: a label, a bar, a value. */
.purity, .weights { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.purity-row, .weights li { display: grid; grid-template-columns: 5.5rem 1fr 6.5rem; gap: var(--space-3); align-items: center; font-size: 0.875rem; }
.weights li { grid-template-columns: 9.5rem 1fr 5.5rem; }
.purity-k, .weights-name { font-weight: 600; color: var(--text); }
.purity-k em { display: block; font-style: normal; font-size: 0.6875rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.purity-bar, .weights-bar { height: 14px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.purity-bar span, .weights-bar span, .key-gold { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d8b46a, var(--gold)); }
.purity-v, .weights-v { font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; }
.purity-v small { color: var(--text-3); margin-left: 0.25em; }
.purity-row.is-ours { padding: var(--space-2) var(--space-3); margin-inline: calc(var(--space-3) * -1); background: var(--accent-wash); border-radius: var(--radius); }
.fig-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-4) 0 0; font-size: 0.8125rem; color: var(--text-3); }
.key { display: inline-block; width: 1.5rem; height: 10px; border-radius: 99px; margin-right: -0.5rem; }
.key-other { background: var(--paper-3); }
@media (max-width: 30rem) {
  .purity-row { grid-template-columns: 3.5rem 1fr 5.5rem; }
  .weights li { grid-template-columns: 1fr 4.5rem; }
  .weights-name { grid-column: 1 / -1; }
}

.gold-colours { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 36rem) { .gold-colours { grid-template-columns: repeat(3, 1fr); } }
.gold-colours li { display: grid; gap: var(--space-2); font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }
.gold-colours strong { color: var(--text); }
.gold-swatch { width: 3.5rem; height: 3.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), var(--shadow-card); }
.tone-yellow { background: radial-gradient(circle at 32% 28%, #fbe7a6, #d9ad52 55%, #a27a2c); }
.tone-white { background: radial-gradient(circle at 32% 28%, #ffffff, #dfe1e3 55%, #b4b8bc); }
.tone-rose { background: radial-gradient(circle at 32% 28%, #fbd9c6, #dc9f80 55%, #a8664c); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-5); border-left: 1px solid var(--border-strong); display: grid; gap: var(--space-5); }
.timeline li { position: relative; display: grid; gap: var(--space-1); }
.timeline li::before { content: ""; position: absolute; left: calc(var(--space-5) * -1 - 5px); top: 0.35em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.timeline-when { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.timeline-what { color: var(--text-2); line-height: 1.65; }

.growth { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 36rem) { .growth { grid-template-columns: repeat(3, 1fr); } }
.growth li { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }
.growth strong { color: var(--text); font-size: 1rem; }
.growth svg { width: 3rem; height: 3rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.growth svg .fill { fill: var(--gold); stroke: none; }
.growth svg .glow { fill: var(--accent-soft); stroke: none; opacity: 0.7; }

.colour-scale { display: grid; gap: var(--space-3); }
.scale-row, .scale-groups { display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); gap: 2px; }
.scale-cell {
  aspect-ratio: 1 / 1.25; display: grid; place-items: center; border-radius: 3px;
  font-size: 0.6875rem; font-weight: 600; color: var(--text-2);
  background: hsl(46 85% calc(99% - var(--tint) * 30%));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05);
}
.scale-group { grid-column: span var(--span); border-top: 2px solid var(--accent-soft); padding-top: var(--space-2); font-size: 0.75rem; color: var(--text-3); line-height: 1.35; }
.scale-group strong { display: block; color: var(--text); }
@media (max-width: 40rem) {
  .scale-row { gap: 1px; }
  .scale-cell { font-size: 0.5rem; border-radius: 2px; }
  .scale-groups { display: grid; grid-template-columns: 1fr; gap: var(--space-1); }
  .scale-group { grid-column: auto; border-top: 0; padding-top: 0; display: flex; gap: var(--space-2); }
}

.clarity { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-radius: var(--radius-lg); overflow: hidden; }
.clarity li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--paper-2); font-size: 0.875rem; color: var(--text-2); line-height: 1.55; }
.clarity li:nth-child(-n+2) { background: var(--accent-wash); }
.clarity-grade { font-weight: 600; color: var(--text); white-space: nowrap; }
@media (max-width: 30rem) { .clarity li { grid-template-columns: 1fr; gap: var(--space-1); } }

.carat-sizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-5) var(--space-6); }
.carat-sizes li { display: grid; justify-items: center; gap: var(--space-1); font-size: 0.75rem; color: var(--text-3); }
.carat-sizes strong { color: var(--text); font-size: 0.875rem; }
/* Diamonds drawn from the geometry of the cut (facets.py, 29 Oct 2026). */
.facets { display: block; fill: none; stroke: var(--text-3); stroke-width: 0.7; stroke-linejoin: round; overflow: visible; }
.facets .girdle { fill: #fff; stroke: var(--accent); stroke-width: 1.2; }
.facets .table { fill: var(--paper-2); stroke: var(--accent); stroke-width: 0.9; }
.facets .step { stroke: var(--text-3); }
.facets .culet { fill: var(--accent); stroke: none; }

.anatomy { display: block; width: 100%; max-width: 36rem; height: auto; }
.anatomy .body { fill: var(--paper-2); }
.anatomy .edges line { stroke: var(--accent-soft); stroke-width: 1; }
.anatomy .outline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.anatomy .lead line { stroke: var(--text-3); stroke-width: 1; }
.anatomy .lead text { fill: var(--text-2); font-size: 15px; font-family: var(--font-body); }
.anatomy-views { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 30rem) { .anatomy-views { grid-template-columns: 1fr 1fr; } }
.anatomy-view { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.anatomy-view svg { width: 9.5rem; height: 9.5rem; }
.anatomy-view p { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--text-3); max-width: 18rem; }
.anatomy-view strong { display: block; color: var(--text); font-size: 0.875rem; }

.g-photo .shot { border-radius: var(--radius-lg); background: var(--paper-2); }
.g-photo.is-tall { text-align: center; }
.g-photo.is-tall .shot { max-width: 26rem; margin-inline: auto; }
.g-credit { display: block; margin-top: var(--space-1); font-size: 0.75rem; }
.g-credit a { color: inherit; }
.g-certificate .shot { background: #fff; box-shadow: var(--shadow-card); }

/* Ring sizes: short numbers, so the table stays a table on a phone. */
.g-table.is-compact th, .g-table.is-compact td { text-align: center; font-variant-numeric: tabular-nums; padding: var(--space-2) var(--space-1); }
.g-table.is-compact tbody th { color: var(--accent-deep); }

/* Numbered steps. */
.g-steps { list-style: none; padding-left: 0; counter-reset: step; }
.g-steps li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.g-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.15em;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-deep); font-size: 0.875rem; font-weight: 600;
}

/* The cuts, drawn. */
.shape-guide { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 30rem) { .shape-guide { grid-template-columns: repeat(2, 1fr); } }
.shape-guide li { display: grid; grid-template-columns: 4.75rem 1fr; grid-template-rows: auto 1fr; column-gap: var(--space-4); row-gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper); font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }
.shape-guide svg { grid-row: span 2; width: 4.75rem; height: 4.75rem; }
.shape-guide strong { color: var(--text); font-size: 1rem; }

/* The bow-tie: the same oval with and without it. */
.bowtie-fig { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.bowtie-fig > div { display: grid; justify-items: center; gap: var(--space-2); }
.bowtie-fig svg { width: 9rem; height: 9rem; }
.bowtie-fig p { margin: 0; font-size: 0.875rem; color: var(--text-2); }
.facets .bowtie { fill: #2b3530; opacity: 0.62; stroke: none; }

/* Necklace lengths: the drawing, and a numbered key beside or below it. */
.necklace { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 40rem) { .necklace { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.necklace-fig { display: block; width: 100%; max-width: 22rem; height: auto; margin-inline: auto; }
.necklace-fig .body { fill: var(--paper-2); stroke: var(--border-strong); stroke-width: 1.5; }
.necklace-fig .bone { fill: none; stroke: var(--border-strong); stroke-width: 1.2; }
.necklace-fig .chain path { fill: none; stroke: var(--gold); stroke-width: 2.2; }
.necklace-fig .badge circle { fill: var(--accent); }
.necklace-fig .badge text { fill: #fff; font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.necklace-key { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.necklace-key li { display: grid; grid-template-columns: 1.75rem 1fr; column-gap: var(--space-3); font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }
.necklace-key strong { color: var(--text); }
.necklace-key li > span:last-child { grid-column: 2; }
.necklace-n { grid-row: span 2; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; }

/* Coloured diamonds: a swatch per colour. */
.fancy-swatch { background: radial-gradient(circle at 32% 28%, #fff 0, var(--c) 58%, color-mix(in srgb, var(--c) 70%, #000)); }
@media (min-width: 22rem) { .fancy-colours { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 36rem) { .fancy-colours { grid-template-columns: repeat(3, 1fr); } }

/* Pieces from the shop that show what the text is about. */
.pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--space-4); }
.pieces a { display: grid; gap: var(--space-1); color: inherit; text-decoration: none; font-size: 0.8125rem; line-height: 1.45; }
.pieces .shot { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); margin-bottom: var(--space-2); }
.pieces img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3, 400ms) var(--ease); }
.pieces a:hover img { transform: scale(1.04); }
.pieces strong { color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.pieces span { color: var(--text-3); }
.article .pieces a { color: inherit; }

/* The glossary: a row of letters, then the words under each. */
.glossary-index { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0 0 var(--space-6); }
.glossary-index a { min-width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.article .glossary-index a { color: var(--accent); }
.glossary-index a:hover { background: var(--accent-wash); }
.glossary-group { scroll-margin-top: calc(var(--header-h) + 1rem); }
.glossary-group + .glossary-group { margin-top: var(--space-6); }
.glossary-letter { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1; color: var(--gold); }
.glossary dl { margin: 0; display: grid; gap: var(--space-4); }
.glossary dl > div { scroll-margin-top: calc(var(--header-h) + 1rem); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.glossary dt { font-weight: 600; color: var(--text); margin-bottom: var(--space-1); }
.glossary dd { margin: 0; color: var(--text-2); line-height: 1.65; }

/* Terms and Privacy: the short version in a box beside the heading. */
.legal-head { align-items: start; }
.legal-key { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper-2); }
.legal-key-title { margin: 0 0 var(--space-4); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
html[lang^="zh"] .legal-key-title { letter-spacing: 0.06em; font-size: 0.8125rem; }
.legal-body > h2 { margin: var(--space-7) 0 var(--space-3); }
.legal-body > h2:first-child { margin-top: 0; }

/* A sheet to download inside a guide (the ring sizer, 22 Nov 2026). */
.g-download { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-block: var(--space-5); }
.g-download .btn { flex: none; max-width: 100%; white-space: normal; text-align: center; }
.g-download-note { flex: 1 1 16rem; font-size: 0.875rem; color: var(--text-2); }

/* Who wrote the guide, above its dates (22 Nov 2026). */
.guide-byline { margin: 0 0 var(--space-1); font-size: 0.875rem; color: var(--text-2); }

/* Questions and answers at the foot of a guide (21 Nov 2026), in the same
   rows as the FAQ page. */
.g-faq { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.g-faq h2 { font-size: 1.375rem; margin: 0 0 var(--space-2); }
.g-faq + .g-sources { margin-top: var(--space-6); }
.g-sources { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.g-sources h2 { font-size: 1.375rem; margin: 0 0 var(--space-3); }
.g-sources ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--space-2); font-size: 0.8125rem; color: var(--text-3); line-height: 1.6; }
.g-sources a { color: var(--text-2); }

.guide-steps { display: grid; gap: var(--space-4); margin-top: var(--space-7); }
@media (min-width: 36rem) { .guide-steps { grid-template-columns: 1fr 1fr; } }
.guide-step {
  display: grid; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: inherit; text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.guide-step:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.guide-step strong { font-size: 1.375rem; font-weight: 400; line-height: 1.2; }
.guide-step.is-next { text-align: right; }
.guide-steps > span:empty { display: none; }
@media (min-width: 36rem) { .guide-steps > span:empty { display: block; } }

.promise { display: grid; gap: var(--space-6); align-items: start; }
.promise .lede { max-width: 52ch; }
.promise-list { margin: 0; }
.promise-list li { font-size: 1rem; color: var(--text-2); line-height: 1.65; }
@media (min-width: 56rem) { .promise { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

@media (min-width: 56rem) {
  /* The contents ride along on the right while the article scrolls, so the
     right side of a wide screen is never left empty. */
  .article-layout { grid-template-columns: minmax(0, 46rem) 15rem; justify-content: center; gap: var(--space-7); }
  .toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .article { grid-column: 1; grid-row: 1; }
}
@media (min-width: 88rem) {
  .article-layout { grid-template-columns: minmax(0, 46rem) 17rem; gap: var(--space-8); }
}
/* On a very wide screen (29 Oct 2026: the owner saw both sides empty) the
   text and the contents grow, so together they fill most of the width. */
@media (min-width: 100rem) {
  .article-layout { grid-template-columns: minmax(0, 54rem) 21rem; gap: var(--space-9); }
  .article { max-width: 54rem; }
  .article > p, .article .g-list li { font-size: 1.1875rem; }
  .toc ol { font-size: 1rem; }
}

/* --------------------------------------------------------------- true size
   The guide to diamond sizes (2 Nov 2026): a real stone at real size once
   the box matches a bank card. --mm is pixels per millimetre, set by
   initTrueSize; --d is each stone's width in millimetres. */

.ts { --mm: 3.7795px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--paper-2); overflow-x: clip; }
.ts-fit { display: none; }
.js .ts-fit { display: grid; gap: var(--space-3); justify-items: start; padding-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.ts-how { margin: 0; font-size: 0.9375rem; color: var(--text-2); max-width: 40rem; }
.ts-card {
  width: calc(var(--w) * var(--mm)); height: calc(18 * var(--mm)); box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(2.5 * var(--mm));
  border: 2px solid var(--accent); border-top: 0;
  border-radius: 0 0 calc(3.18 * var(--mm)) calc(3.18 * var(--mm));
  background: linear-gradient(to bottom, transparent, var(--accent-wash));
  font-size: 0.75rem; color: var(--accent); letter-spacing: 0.04em; white-space: nowrap;
}
.ts-controls { display: flex; align-items: center; gap: var(--space-3); width: min(100%, 26rem); }
.ts-slider { flex: 1; min-width: 0; accent-color: var(--accent); }
.ts-nudge {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--paper); color: var(--text); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.ts-nudge:hover { border-color: var(--accent); color: var(--accent); }
.ts-label { margin: var(--space-2) 0 0; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.ts-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-5) var(--space-5); }
.ts-row li { display: grid; justify-items: center; gap: var(--space-1); font-size: 0.75rem; color: var(--text-3); min-width: 3rem; }
.ts-row strong { color: var(--text); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.ts-stone { display: block; width: calc(var(--d) * var(--mm)); height: calc(var(--d) * var(--mm)); border-radius: 50%; box-shadow: 0 1px 3px rgb(27 26 22 / 0.25); }
.ts-stone img { display: block; width: 100%; height: 100%; }
.ts-melee { gap: var(--space-4); }
/* A card's short side is most of a phone's width, so on a phone the figure
   runs edge to edge and the box sits in the middle. */
@media (max-width: 40rem) {
  .g-figure-true-size { margin-inline: calc(50% - 50vw); }
  .g-figure-true-size figcaption { padding-inline: 4vw; }
  .ts { border-radius: 0; padding: var(--space-5) 8px; }
  .js .ts-fit { justify-items: center; }
  .ts-how { padding-inline: calc(4vw - 8px); }
  .ts-row { padding-inline: calc(4vw - 8px); }
}
.pdp-size-guide { margin-top: var(--space-3); }

/* ---------------------------------------- ready by, hint, questions, 404
   3 Nov 2026, after Cullen. */
.pdp-ready { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); font-size: 0.9375rem; color: var(--text-2); }
.pdp-ready svg { flex: none; margin-top: 2px; color: var(--accent); }
.pdp-hint {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-6);
  padding: var(--space-1) 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
html[lang^="zh"] .pdp-hint { letter-spacing: 0.04em; text-transform: none; }
.pdp-hint:hover { color: var(--accent-deep); text-decoration: underline; }
.faq { display: grid; gap: var(--space-6); }
.faq h2 { margin-bottom: var(--space-3); }
.faq-intro { margin: 0 0 var(--space-5); color: var(--text-2); max-width: 32rem; }
.faq-photo { display: none; }
.faq-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.faq-actions .btn svg { margin-right: 0.4rem; }
@media (min-width: 62rem) {
  .faq { grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h, 4.5rem) + 2rem); }
  .faq-photo { display: block; margin-bottom: var(--space-5); }
  .faq-photo picture, .faq-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; border-radius: 10px; }
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.3; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; color: var(--accent); transition: transform 200ms var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0 0 var(--space-5); max-width: 52rem; color: var(--text-2); }
.faq-more { margin-top: var(--space-4); }

/* ------------------------------------------------------------- mega menus
   Under Collections, Our Diamonds and Education (3 Nov 2026, after Cullen):
   opens when the pointer rests on the link or the keyboard reaches it, on a
   computer only. It sits across the full width of the header, and is not in
   the page at all until it opens, so its pictures cost nothing before that. */
.nav-item { display: contents; }
.mega { display: none; }
@media (min-width: 62rem) and (hover: hover) and (pointer: fine) {
  .nav-item { display: flex; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -28px rgb(27 26 22 / 0.35);
  }
  /* A bridge over the gap between the link and the panel, so the pointer
     can travel down without the panel closing. */
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5rem; height: 1.5rem; }
  .nav-item:hover .mega, .nav-item:focus-within .mega { display: block; animation: mega-in 180ms var(--ease-out-soft); }
  .nav-item:hover > .nav-link::after, .nav-item:focus-within > .nav-link::after { transform: scaleX(1); }
  .nav-item:hover > .nav-link { color: var(--text); }
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mega { animation: none !important; } }
.mega-inner {
  display: grid; grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr)) minmax(12rem, 17rem);
  gap: var(--space-6) var(--space-6); padding-block: var(--space-6) var(--space-7); align-items: start;
}
/* The picture always sits on the right, across every row of links. */
.mega-inner > .mega-feature, .mega-inner > .mega-side { grid-column: -2 / -1; grid-row: 1 / span 2; justify-self: end; width: 100%; }
/* Education: two rows, Guides over Knowledge, each under its own name, the
   groups of a row side by side (19 Nov 2026). */
.mega-rows { display: grid; gap: var(--space-5); min-width: 0; }
.mega-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--space-3) var(--space-6); }
.mega-row-title {
  grid-column: 1 / -1; margin: 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; color: var(--text);
}
.mega-row-title a { color: inherit; text-decoration: none; }
.mega-row-title a:hover { color: var(--accent); }
/* Every group lists all its guides, with nothing scrolling inside a group
   and no line fading out (owner, 19 Nov 2026, after trying four, five and
   "as many as fit": "show them all, no more scrolling"). If the window is
   too short for the whole panel, the panel itself scrolls, once, so the last
   links can still be reached. The words are a size up from the other menus.
   "View more" sits on one line across a row. The picture's column spans two
   grid rows in the other menus; here there is one, or an empty second row
   leaves a blank band at the bottom. */
.mega-inner:has(.mega-rows) > .mega-side { grid-row: 1; }
.mega-inner:has(.mega-rows) {
  padding-block: var(--space-5) var(--space-6);
  max-height: calc(100vh - 11.5rem); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.mega-row .mega-col { display: flex; flex-direction: column; }
.mega-inner:has(.mega-rows) .mega-col ul.mega-scroll { height: auto; max-height: none; overflow: visible; padding-right: 0; }
/* The exception (owner, 19 Nov 2026): each row shows a set number of lines
   (--cap, from src/pages.py: Guides as many as "Buying and owning" has,
   Knowledge five), and a group with more guides than that shows that many
   whole lines and scrolls, so a row stays even as guides are added. No line
   is ever cut or faded ("don't let any title go faint"); the thin bar says
   there is more. */
.mega-inner:has(.mega-rows) { --mega-line: calc(0.9375rem * 1.35 + 0.68rem + 2px); }
.mega-inner .mega-row .mega-col ul.mega-scroll.is-capped {
  max-height: calc(var(--mega-line) * var(--cap, 5) - 2px); overflow-y: auto; padding-right: var(--space-2);
}
.mega-inner:has(.mega-rows) .mega-col ul.mega-scroll.has-more { -webkit-mask-image: none; mask-image: none; }
.mega-inner:has(.mega-rows) .mega-col .mega-scroll a { font-size: 0.9375rem; padding-block: 0.34rem; }
/* The group names (About diamonds, Gold and metals…) a size up (owner, 23 Nov 2026). */
.mega-inner:has(.mega-rows) .mega-title { font-size: 0.875rem; margin-bottom: var(--space-2); }
html[lang^="zh"] .mega-inner:has(.mega-rows) .mega-title { font-size: 1rem; }
.mega-row .mega-col a.mega-more { margin-top: auto; padding-top: var(--space-2); align-self: flex-start; }
/* A laptop screen: tighter spacing, so more of the panel shows before it
   has to scroll. */
@media (max-height: 960px) {
  .mega-inner:has(.mega-rows) { padding-block: var(--space-4) var(--space-5); }
  .mega-inner:has(.mega-rows) .mega-col .mega-scroll a { padding-block: 0.24rem; }
  .mega-inner:has(.mega-rows) { --mega-line: calc(0.9375rem * 1.35 + 0.48rem + 2px); }
  .mega-row .mega-col a.mega-more { padding-top: var(--space-1); }
}
@media (max-height: 820px) {
  .mega-rows { gap: var(--space-4); }
  .mega-row-title { font-size: 1.375rem; padding-bottom: var(--space-1); }
}
/* A narrow computer window: the picture's column gives way, so four groups
   across still have room for their names. */
@media (max-width: 75rem) {
  .mega-inner:has(.mega-rows) { grid-template-columns: minmax(0, 1fr) minmax(9rem, 12rem); column-gap: var(--space-5); }
  .mega-row { column-gap: var(--space-4); }
}
/* Education: the picture with its own group of links under it. */
.mega-side { display: grid; gap: var(--space-4); max-width: 18rem; }
.mega-side .mega-feature { max-width: none; }
.mega-title {
  margin: 0 0 var(--space-3); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
}
html[lang^="zh"] .mega-title { letter-spacing: 0.06em; font-size: 0.8125rem; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col a {
  display: flex; align-items: center; gap: var(--space-2); min-height: 34px;
  color: var(--text-2); text-decoration: none; font-size: 0.875rem;
}
.mega-col a:hover { color: var(--accent); }
.mega-col a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.mega-col a.mega-more {
  display: inline-flex; gap: 0.3em; min-height: 0; margin-top: var(--space-3); font-size: 0.6875rem;
  font-weight: 500; letter-spacing: 0.03em; color: var(--accent);
}
/* Education: each group lists all its guides in a box about four lines
   tall that scrolls, with a thin, short scroll bar (owner, 5 Nov 2026). */
.mega-col ul.mega-scroll {
  height: 8.75rem; overflow-y: auto; overscroll-behavior: contain; padding-right: var(--space-2);
}
/* While there is more below, the last line fades out, so a cut line reads as
   "more", and the thin bar stays drawn (Safari and Chrome hide an unstyled
   one until you scroll). */
.mega-col ul.mega-scroll.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.25rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.25rem), transparent);
}
@supports not selector(::-webkit-scrollbar) {
  .mega-col ul.mega-scroll { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
}
.mega-scroll::-webkit-scrollbar { width: 3px; -webkit-appearance: none; }
.mega-scroll::-webkit-scrollbar-track { background: transparent; }
.mega-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.mega-col .mega-scroll a { line-height: 1.35; padding-block: 0.3rem; min-height: 0; }
.mega-col a.mega-more .mega-more-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mega-col a.mega-more .mega-more-arrow { display: inline-block; text-decoration: none; transition: transform 160ms var(--ease-out-soft); }
.mega-col a.mega-more:hover .mega-more-arrow { transform: translateX(3px); }
.mega-thumb { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.mega-thumb picture, .mega-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mega-shape { flex: none; display: inline-flex; width: 1.5rem; justify-content: center; color: var(--accent); }
.mega-swatch { flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--border-strong); }
.mega-swatch-white { background: linear-gradient(135deg, #f7f7f5, #c9ccd1); }
.mega-swatch-yellow { background: linear-gradient(135deg, #f6e2a8, #c99a3e); }
.mega-swatch-rose { background: linear-gradient(135deg, #f6d4c6, #c98a74); }
.mega-feature { display: grid; gap: var(--space-1); text-decoration: none; color: var(--text); max-width: 18rem; }
.mega-feature picture, .mega-feature img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.mega-feature picture { background: var(--paper-2); border-radius: 8px; }
.mega-feature-eyebrow { margin-top: var(--space-2); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mega-feature-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.mega-feature:hover .mega-feature-title { color: var(--accent); }

/* ------------------------------------------------- Cullen details (3 Nov 2026)
   Which stone the photographs show; the tiles among the rings; the line for
   the next date to order by. */
.pdp-pictured {
  position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 2; margin: 0;
  padding: 0.3rem 0.7rem; border-radius: 999px; background: rgb(255 255 255 / 0.86);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2); pointer-events: none;
}
.promo-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--paper-2); border-radius: 10px; overflow: hidden;
}
.promo-tile[hidden] { display: none; }
.promo-media { display: block; aspect-ratio: 1; overflow: hidden; }
.promo-media picture, .promo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-body { display: grid; gap: var(--space-1); padding: var(--space-4); }
.promo-title { font-size: 1.375rem; line-height: 1.2; }
.promo-text { font-size: 0.875rem; color: var(--text-2); }
.promo-go {
  display: inline-flex; align-items: center; gap: 0.35em; margin-top: var(--space-2);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.promo-tile:hover .promo-title { color: var(--accent); }
.announce { background: var(--accent); color: #fff; font-size: 0.75rem; letter-spacing: 0.04em; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 2.25rem; position: relative; }
.announce p { margin: 0; text-align: center; padding-inline: 1.75rem; }
.announce a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce-close {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: inherit; font-size: 1.125rem; line-height: 1; padding: 0.4rem 0.6rem; cursor: pointer;
}
/* The shop's own photographs in a guide: cropped to a landscape frame so a
   square product shot doesn't fill a whole screen. The crop comes mostly off
   the top, so the shop's name in the bottom-right corner stays in the
   picture (owner, 23 Nov 2026: the Ukir photo had lost it). */
.g-own picture, .g-own .shot { display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 8px; }
.g-own img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; }

/* ------------------------------------------ booking by service (4 Nov 2026)
   What the visit is for, as cards with how long it takes, after Cullen. */
.svc-picker { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-4); }
.svc-picker > legend { margin-bottom: var(--space-3); padding: 0; }
.svc-group { display: grid; gap: var(--space-2); }
.svc-group-title {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
html[lang^="zh"] .svc-group-title { letter-spacing: 0.05em; text-transform: none; font-size: 0.8125rem; }
.svc-grid { display: grid; gap: var(--space-2); }
@media (min-width: 40rem) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc { position: relative; display: block; cursor: pointer; }
.svc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.svc-face {
  display: grid; gap: var(--space-1); height: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--paper);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.svc:hover .svc-face { border-color: var(--accent); }
.svc input:checked + .svc-face { border-color: var(--accent); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--accent); }
.svc input:focus-visible + .svc-face { box-shadow: 0 0 0 3px rgb(35 80 52 / 0.25); }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.svc-title { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.svc-mins { flex: none; font-size: 0.75rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.svc-body { font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }
.svc-note { margin-top: var(--space-1); }
.field[hidden] { display: none; }

/* Finger size on a ring's page, with "Not sure yet" (4 Nov 2026). */
.pdp-fsize { display: grid; gap: var(--space-2); margin: var(--space-5) 0 var(--space-2); }
.pdp-fsize .pdp-label { margin: 0; }
.pdp-fsize-row { display: flex; gap: var(--space-2); }
.pdp-fsize-row .select { flex: 1 1 auto; min-width: 0; }
.pdp-fsize-row .btn { flex: none; }
.pdp-fsize-row .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pdp-fsize-note { color: var(--text-2); }

/* "Tell me when you open", while the shop's address is to come. */
.notify-row { display: flex; gap: var(--space-2); align-items: flex-start; }
.notify-row .field { flex: 1 1 auto; min-width: 0; }
.notify-row .btn { flex: none; }
.notify .send-error { margin-top: var(--space-3); }
.notify[hidden] { display: none; }
.notify-done { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--ok); font-weight: 500; }
.notify-done[hidden] { display: none; }
/* On a phone ten cards make a long column: only the chosen one explains itself. */
@media (max-width: 39.99rem) {
  .svc-face { padding: var(--space-3); }
  .svc-body { display: none; }
  .svc input:checked + .svc-face .svc-body { display: block; }
}

/* Order-by countdown beside the price (4 Nov 2026, after Cullen). */
.cutoff { margin: var(--space-4) 0 var(--space-2); padding: var(--space-3) var(--space-4);
  background: var(--paper-2); border-radius: var(--radius); font-size: 0.875rem; color: var(--text-2); }
.cutoff[hidden] { display: none; }
.cutoff-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.cutoff-timer { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cutoff-all { margin-top: var(--space-2); }
.cutoff-all summary { cursor: pointer; font-size: 0.8125rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.cutoff-all ul { margin: var(--space-2) 0 0; padding-left: 1.1rem; display: grid; gap: var(--space-1); font-size: 0.8125rem; }
.split .cutoff { max-width: 34rem; }

/* Send a hint panel (4 Nov 2026, after Cullen). */
.hint-panel { display: grid; gap: var(--space-3); margin: calc(var(--space-6) * -1 + var(--space-2)) 0 var(--space-6);
  padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper-2); }
.hint-panel[hidden] { display: none; }
.hint-intro { margin: 0; font-size: 0.875rem; color: var(--text-2); }
.hint-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hint-actions .btn { flex: 1 1 auto; }
.hint-actions .btn[hidden] { display: none; }

/* A piece's video in the gallery (4 Nov 2026). Its own dark ground, not
   multiplied into the page like the photos on white. */
.pdp-video { background: #111; border-radius: inherit; overflow: hidden; }
.pdp-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdp-video:not(.is-active) { pointer-events: none; }
.pdp-media.has-zoom:has(.pdp-video.is-active) { cursor: default; }
.pdp-thumb.is-video { position: relative; }
.pdp-thumb.is-video img { mix-blend-mode: normal; }
.pdp-thumb.is-video svg { position: absolute; inset: 0; margin: auto; color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.pdp-thumb[hidden] { display: none; }

/* Ring builder step three: size and engraving (4 Nov 2026, after Cullen). */
.pz { display: grid; gap: var(--space-5); }
.pz-empty, .pz-sofar { margin: 0; padding: var(--space-3) var(--space-4); background: var(--paper-2); border-radius: var(--radius); }
.pz-sofar p:last-child { margin: 0; }
.pz-grid { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .pz-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.pz-card { display: grid; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); }
.pz-card h2 { margin: 0; }
.pz-intro, .pz-count { margin: 0; }
.pz-fonts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.pz-fonts legend { width: 100%; margin-bottom: var(--space-2); }
.pz-font { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.pz-font:has(input:checked) { border-color: var(--accent); background: var(--paper-2); }
.is-script { font-family: var(--font-display, Georgia, serif); font-style: italic; letter-spacing: 0.02em; }
.pz-preview { padding: var(--space-4); border-radius: var(--radius);
  background: linear-gradient(180deg, #f3e3c6, #e2c48f 55%, #f1dcb4); }
.pz-preview .ring-part-label { color: #6b5328; }
.pz-band { margin: 0; min-height: 2.2em; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #5a4320; text-shadow: 0 1px 0 rgba(255,255,255,.55); overflow-wrap: anywhere; text-align: center; }
.pz-band .is-empty { font-size: 0.95rem; opacity: 0.6; }
.pz-band span:not(.is-script):not(.is-empty) { letter-spacing: 0.12em; text-transform: uppercase; font-size: 1.1rem; }
.pz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.ring-ready { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.ring-ready p:last-child { margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.ring-engrave { display: block; font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }

/* Guides hub (4 Nov 2026): a picture on every card, and never more than four
   cards a row, so a group of eight is two rows of four, not eight slivers. */
.guide-card { padding: 0; overflow: hidden; gap: 0; }
.guide-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground); }
.guide-thumb picture, .guide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-thumb img { transition: transform var(--dur-3, 600ms) var(--ease); }
.guide-card:hover .guide-thumb img { transform: scale(1.04); }
.guide-body { position: relative; display: flex; flex-direction: column; gap: var(--space-2); flex: 1;
  padding: var(--space-4) 2.5rem var(--space-4) var(--space-5); }
@media (min-width: 40rem) {
  .guide-card { min-height: 0; padding: 0; }
  .guide-body { padding: var(--space-5); gap: var(--space-3); }
}
@media (min-width: 72rem) {
  .guide-grid { grid-template-columns: repeat(min(var(--n, 3), 4), minmax(0, 1fr)); }
  .guide-grid[style*="--n:5"], .guide-grid[style*="--n:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid[style*="--n:7"], .guide-grid[style*="--n:8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Two photographs side by side, the usual cut and the new (De Beers guide, 4 Nov 2026). */
.pair-fig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.pair-cell { display: grid; gap: var(--space-2); align-content: start; }
.pair-cell .shot { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.pair-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pair-name { margin: var(--space-1) 0 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.pair-text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.pair-credit { margin: var(--space-3) 0 0; }

/* Guides hub, 3 a row (owner, 4 Nov 2026: "mỗi hàng 3 khung thôi"). Six
   columns, each card two; a row left with one card gives it the whole row,
   laid sideways, and a row of two gives each half, so no row ends in a gap. */
@media (min-width: 72rem) {
  .guide-grid, .guide-grid[style*="--n:5"], .guide-grid[style*="--n:6"],
  .guide-grid[style*="--n:7"], .guide-grid[style*="--n:8"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .guide-grid > * { grid-column: span 2; }
  .guide-grid > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; flex-direction: row; }
  .guide-grid > :last-child:nth-child(3n + 1) .guide-thumb { flex: 0 0 calc((100% - 2 * var(--space-4)) / 3); aspect-ratio: auto; min-height: 15rem; }
  .guide-grid > :nth-last-child(2):nth-child(3n + 1),
  .guide-grid > :last-child:nth-child(3n + 2) { grid-column: span 3; }
}

/* Site check (4 Nov 2026): between about 1150 and 1300 px the piece's
   column is narrow and "Save to selection" was cut short. The buttons now
   share the row only when both fit, and a long label may wrap. */
.pdp-actions .btn { flex: 1 1 15rem; min-width: 0; padding-inline: var(--space-4); white-space: normal; text-align: center; line-height: 1.35; }
/* The lone sideways card: as tall as its text, its picture filling the left
   third (the picture is laid over its box, so it never sets the height). */
@media (min-width: 72rem) {
  .guide-grid > :last-child:nth-child(3n + 1) { min-height: 15rem; }
  .guide-grid > :last-child:nth-child(3n + 1) .guide-thumb { position: relative; min-height: 0; align-self: stretch; }
  .guide-grid > :last-child:nth-child(3n + 1) .guide-thumb picture,
  .guide-grid > :last-child:nth-child(3n + 1) .guide-thumb img { position: absolute; inset: 0; }
  .guide-grid > :last-child:nth-child(3n + 1) .guide-body { justify-content: center; padding: var(--space-6); }
  .guide-grid > :last-child:nth-child(3n + 1) .guide-sum { flex: 0 0 auto; max-width: 40rem; }
}

/* A video slide is taken out of the picture when not shown, not just made
   transparent: Safari on iPhone left an un-painted video layer when its
   slide faded back in (site check, 5 Nov 2026). */
.pdp-video:not(.is-active) { visibility: hidden; }
.pdp-video.is-active { visibility: visible; }


/* ---------------------------------------------------- smooth header (desktop)
   6 Nov 2026: the logo used to grow back with a 0.42 s height animation that
   reflowed the whole page and pushed it down, so on a fast swipe it lagged
   behind. Now, on a computer, the header floats (the spacer below it holds
   its full height in the page) and site.js sets --p from 0 at the top to 1
   after 110 px of scroll: the logo shrinks by transform, in step with the
   scroll. At --p 1 the .is-scrolled sizes take over, matching the scaled
   size, so the hand-over doesn't show. */
.header-spacer { display: none; }
@media (min-width: 62rem) {
  .header { position: fixed; left: 0; right: 0; top: 0; }
  .header-spacer { display: block; height: var(--hdr-full, 9.5rem); }
  .logo-mark, .logo-word, .logo-text, .header-inner { transition: none; }
  .header:not(.is-scrolled) .header-inner { padding-top: calc(var(--space-4) * (1 - var(--p, 0))); }
  .header:not(.is-scrolled) .logo {
    transform: scale(calc(1 - 0.357 * var(--p, 0))); transform-origin: 50% 0;
    margin-bottom: calc(-3.5rem * 0.357 * var(--p, 0));
    will-change: transform;
  }
  .header:not(.is-scrolled) .nav-desktop {
    margin-top: calc(var(--space-4) * (1 - var(--p, 0)));
    padding-top: calc(var(--space-1) * (1 - var(--p, 0)));
  }
  .header.is-scrolled .logo-word { height: 1.03rem; }
  .header.is-scrolled .logo { gap: 0.418rem; }   /* 0.65rem scaled, so the hand-over doesn't move */
}
/* Wide screens fold the same way as laptops (logo centred, links beneath),
   so the shrink is one continuous movement everywhere; the one-row layout
   they used to jump to is gone (6 Nov 2026). */
@media (min-width: 96rem) {
  .header.is-scrolled .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "lead  brand   actions"
      "nav   nav     nav";
  }
  .header.is-scrolled .logo { justify-self: center; }
  .header.is-scrolled .nav-desktop { border-top: 1px solid var(--border); }
}
@media (min-width: 62rem) and (prefers-reduced-motion: reduce) {
  .header:not(.is-scrolled) .logo { will-change: auto; }
}
