/* Carat & Grace — home sections. Geometry from Figma 5:2 / 7:443. */

/* ---------------------------------------------------------------- hero (820px) */
.cg-hero { position: relative; height: 820px; background: var(--cg-night); overflow: hidden; color: var(--cg-inverse); }
.cg-hero__media { position: absolute; inset: 0; }
.cg-hero__ph { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.cg-hero__ph.is-on { opacity: 1; }
.cg-hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.cg-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,15,26,.85) 0%, rgba(23,15,26,.35) 45%, rgba(23,15,26,0) 70%);
}
.cg-hero__in { position: relative; height: 100%; max-width: var(--cg-max); margin-inline: auto; padding: 0 96px; }
.cg-hero__copy {
  position: absolute; top: 200px; left: 96px; width: min(846px, calc(100% - 192px));
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease, visibility .8s;
}
.cg-hero__copy.is-on { opacity: 1; visibility: visible; transform: none; }
.cg-hero__eb { font-weight: 500; font-size: 11px; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cg-champagne); }
.cg-hero__h { margin-top: 40px; font-family: var(--cg-display); font-weight: 400; }
.cg-hero__h1, .cg-hero__h2 { display: block; }
.cg-hero__h1 { font-size: clamp(46px, 7.22vw, 104px); line-height: 1; letter-spacing: -0.02em; }
.cg-hero__h2 { font-size: clamp(42px, 6.67vw, 96px); line-height: 1.04; letter-spacing: -0.02em; font-style: italic; color: var(--cg-champagne); }
.cg-hero__t { margin-top: 36px; max-width: 470px; font-size: 18px; font-weight: 300; line-height: 1.6; }
.cg-hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.cg-hbtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 32px; border-radius: 2px; background: var(--cg-pearl); color: var(--cg-text);
  font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .2s ease;
}
.cg-hbtn:hover { background: var(--cg-champagne); }
.cg-hlink {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--cg-inverse); color: var(--cg-inverse);
  font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
}
.cg-hlink:hover { border-color: var(--cg-champagne); color: var(--cg-champagne); }

.cg-hero__ui { position: absolute; left: 96px; bottom: 40px; display: flex; align-items: center; gap: 10px; }
.cg-hero__n { font-weight: 500; font-size: 11px; letter-spacing: 0.18em; }
.cg-hero__track { position: relative; display: block; width: 120px; height: 1px; background: rgba(255,255,255,.3); }
.cg-hero__bar { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--cg-champagne); width: 0; transition: width .4s linear; }
.cg-hero__dots { display: flex; gap: 8px; margin-left: 14px; }
.cg-hero__dot { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.35); }
.cg-hero__dot[aria-current='true'] { background: var(--cg-champagne); }

.cg-worn {
  position: absolute; right: 56px; bottom: 120px; z-index: 2;
  display: flex; flex-direction: column; gap: 10px; width: 304px;
  padding: 20px 22px; background: var(--cg-pearl); color: var(--cg-text);
  box-shadow: 0 20px 20px rgba(13,8,15,.35);
}
.cg-worn__eb { color: var(--cg-accent); }
.cg-worn__p { display: flex; align-items: baseline; gap: 10px; }
.cg-worn__p strong { font-family: var(--cg-display); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.cg-worn__p s { font-size: 13px; color: var(--cg-text-2); }
.cg-worn__bar { display: block; height: 4px; background: var(--cg-line); }
.cg-worn__bar i { display: block; height: 100%; background: var(--cg-rose); }

@media (max-width: 1023px) {
  .cg-hero { height: 720px; }
  .cg-hero__in { padding-inline: var(--cg-gutter); }
  .cg-hero__copy { left: var(--cg-gutter); top: 140px; width: calc(100% - var(--cg-gutter) * 2); }
  .cg-hero__ui { left: var(--cg-gutter); }
  .cg-worn { display: none; }
}
@media (max-width: 767px) {
  .cg-hero__copy { top: 96px; }
  .cg-hero__h { margin-top: 24px; }
  .cg-hero__t { margin-top: 22px; font-size: 15px; }
  .cg-hero__cta { margin-top: 28px; gap: 18px; flex-direction: column; align-items: stretch; }
  .cg-hbtn { width: 100%; }
  .cg-hlink { align-self: flex-start; }
  .cg-hero__shade { background: linear-gradient(180deg, rgba(23,15,26,.55) 0%, rgba(23,15,26,.2) 35%, rgba(23,15,26,.9) 100%); }
}

/* A stacked band's photo must never exceed its box: height:100% plus an aspect-ratio grew the
   media to 502px at a 375 viewport and the page scrolled sideways. */
.cg-bandx__m img, .cg-salon__m img, .cg-split__m img { max-width: 100%; }

/* ---------------------------------------------------------------- proof strip */
.cg-proof { border-bottom: 1px solid var(--cg-line); }
.cg-proof__in { display: flex; align-items: center; gap: 24px; justify-content: space-between; max-width: var(--cg-max); margin-inline: auto; padding: 22px var(--cg-gutter); }
.cg-proof__r { display: inline-flex; align-items: center; gap: 10px; }
.cg-proof__l { display: flex; flex: 1 1 auto; justify-content: space-around; gap: 20px; }
.cg-proof__l li { color: var(--cg-text-2); white-space: nowrap; }
.cg-proof__m { display: none; color: var(--cg-text-2); }
@media (max-width: 1023px) { .cg-proof__l { justify-content: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; } .cg-proof__l::-webkit-scrollbar { display: none; } }
@media (max-width: 767px) {
  .cg-proof__in { flex-direction: column; gap: 10px; padding: 16px var(--cg-gutter); text-align: center; }
  .cg-proof__l { display: none; }
  .cg-proof__m { display: block; }
}

/* ---------------------------------------------------------------- category tiles */
.cg-tiles__head { text-align: center; margin-bottom: 48px; }
.cg-tiles__head .cg-eyebrow { margin-bottom: 26px; }
.cg-tiles__g { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cg-media--tile { aspect-ratio: 205 / 306; }
.cg-tile { display: block; }
.cg-tile .cg-media { overflow: hidden; }
.cg-tile img { transition: transform .7s ease; }
.cg-tile:hover img { transform: scale(1.045); }
.cg-tile__b { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; text-align: center; }
.cg-tile__t { font-size: 14px; }
.cg-tile:hover .cg-tile__t { color: var(--cg-rose); }
@media (max-width: 1023px) { .cg-tiles__g { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 767px) {
  .cg-tiles__head { text-align: left; margin-bottom: 24px; }
  .cg-tiles__g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .cg-media--tile { aspect-ratio: 174 / 245; }
  .cg-tile__b { text-align: left; padding-top: 10px; }
}

/* ---------------------------------------------------------------- split band */
.cg-split { display: grid; grid-template-columns: 760fr 680fr; align-items: stretch; }
.cg-split--flip { grid-template-columns: 680fr 760fr; }
.cg-split--flip .cg-split__m { order: 2; }
.cg-split__m { aspect-ratio: 1 / 1; }
.cg-split__c { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 60px 80px; }
.cg-split__t { max-width: 520px; }
.cg-split__a { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.cg-steps li { display: flex; gap: 18px; align-items: center; padding: 18px 0; }
.cg-steps__n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--cg-line); border-radius: 99px; color: var(--cg-rose); }
.cg-steps__b { display: flex; flex-direction: column; gap: 3px; }
.cg-steps__b strong { font-weight: 400; font-size: 16px; }
.cg-steps__b em { font-style: normal; font-size: 13px; color: var(--cg-text-2); }
@media (max-width: 1023px) {
  .cg-split, .cg-split--flip { grid-template-columns: 1fr; }
  .cg-split--flip .cg-split__m { order: 0; }
  .cg-split__m { aspect-ratio: 16 / 11; height: auto; width: 100%; }
  .cg-split__c { padding: 40px var(--cg-gutter) 48px; }
}

/* ---------------------------------------------------------------- reviews */
.cg-revs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.cg-revs__head .cg-eyebrow { margin-bottom: 26px; }
.cg-revs__score { display: flex; align-items: flex-end; gap: 22px; }
.cg-revs__n { font-family: var(--cg-display); font-size: 79px; line-height: .9; }
.cg-revs__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cg-rev { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--cg-line); background: var(--cg-white); }
.cg-rev { border-radius: 2px; }
.cg-rev__q { margin: 0; font-size: 15px; line-height: 1.6; }
.cg-rev__who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cg-rev__av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 99px; background: var(--cg-blush); color: var(--cg-accent); font-weight: 500; font-size: 13px; }
.cg-rev__id { display: flex; flex-direction: column; font-style: normal; }
.cg-rev__id em { font-style: normal; }
@media (max-width: 1023px) { .cg-revs__g { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .cg-revs__head { flex-direction: column; align-items: flex-start; }
  .cg-revs__n { font-size: 50px; }
  .cg-revs__g { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cg-revs__g::-webkit-scrollbar { display: none; }
  .cg-revs__g > * { flex: 0 0 290px; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- image band */
.cg-bandx { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--cg-band-h, 640px); }
.cg-bandx--flip .cg-bandx__m { order: 2; }
.cg-bandx__m { height: 100%; }
.cg-bandx__m img { width: 100%; height: 100%; object-fit: cover; }
.cg-bandx__c { display: flex; align-items: center; background: var(--cg-porcelain); }
.cg-bandx__in { display: flex; flex-direction: column; gap: 20px; padding: 60px 96px; max-width: 620px; }
@media (max-width: 1023px) {
  .cg-bandx, .cg-bandx--flip { grid-template-columns: 1fr; min-height: 0; }
  .cg-bandx--flip .cg-bandx__m { order: 0; }
  .cg-bandx__m { aspect-ratio: 16 / 10; height: auto; width: 100%; }
  .cg-bandx__in { padding: 36px var(--cg-gutter) 44px; }
}

/* ---------------------------------------------------------------- wide tiles */
.cg-wide__g { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cg-wtile { position: relative; display: block; }
.cg-wtile__m { aspect-ratio: 652 / 560; overflow: hidden; }
.cg-wtile__m img { transition: transform .7s ease; }
.cg-wtile:hover .cg-wtile__m img { transform: scale(1.04); }
.cg-wtile__b { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.cg-wtile__b em { color: var(--cg-accent); font-style: normal; }
.cg-wtile__b strong { font-weight: 400; }
@media (max-width: 767px) { .cg-wide__g { grid-template-columns: 1fr; gap: 12px; } }

/* ---------------------------------------------------------------- grace price */
.cg-gp { background: var(--cg-porcelain); }
.cg-gp__in { display: grid; grid-template-columns: 592fr 560fr; gap: 96px; align-items: center; }
.cg-gp__c { display: flex; flex-direction: column; gap: 22px; }
.cg-gp__chart { display: flex; flex-direction: column; gap: 22px; }
.cg-gp__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cg-gp__track { display: block; height: 5px; background: var(--cg-line); }
.cg-gp__track i { display: block; height: 100%; background: var(--cg-text-2); }
.cg-gp__bar.is-ours .cg-gp__track { height: 8px; }
.cg-gp__bar.is-ours .cg-gp__track i { background: var(--cg-rose); }
.cg-gp__v { font-family: var(--cg-display); font-size: 30px; line-height: 1; }
@media (max-width: 1023px) { .cg-gp__in { grid-template-columns: 1fr; gap: 40px; } }

/* ---------------------------------------------------------------- salon */
.cg-salon { display: grid; grid-template-columns: 1fr 1fr; min-height: 700px; background: var(--cg-onyx); color: var(--cg-inverse); }
.cg-salon__m img { width: 100%; height: 100%; object-fit: cover; }
.cg-salon__c { display: flex; align-items: center; }
.cg-salon__in { display: flex; flex-direction: column; gap: 20px; padding: 60px 96px; max-width: 620px; }
.cg-salon .cg-eyebrow, .cg-salon .cg-it { color: var(--cg-champagne); }
.cg-salon__a { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cg-salon .cg-btn { background: var(--cg-pearl); color: var(--cg-onyx); border-color: var(--cg-pearl); }
.cg-salon .cg-btn:hover { background: var(--cg-champagne); border-color: var(--cg-champagne); }
.cg-salon .cg-btn--ghost { background: transparent; color: var(--cg-inverse); border-color: rgba(251,248,245,.5); }
.cg-salon .cg-btn--ghost:hover { background: var(--cg-inverse); color: var(--cg-onyx); }
@media (max-width: 1023px) {
  .cg-salon { grid-template-columns: 1fr; min-height: 0; }
  .cg-salon__m { aspect-ratio: 16 / 10; height: auto; width: 100%; }
  .cg-salon__in { padding: 36px var(--cg-gutter) 44px; }
}

/* ---------------------------------------------------------------- trust bar */
.cg-trust__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cg-trust__g li { display: flex; gap: 14px; align-items: flex-start; }
.cg-trust__i { color: var(--cg-rose); flex: 0 0 auto; padding-top: 2px; }
.cg-trust__b { display: flex; flex-direction: column; gap: 4px; }
.cg-trust__b em { font-style: normal; }
@media (max-width: 1023px) { .cg-trust__g { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 767px) { .cg-trust__g { grid-template-columns: 1fr; gap: 16px; } }

/* the hero banners (1916×821) have their jewellery ~69% across: on a screen taller than it is wide only a
   narrow middle strip shows, so that strip is taken further right and the ring / earring / bands stay in it */
@media (max-aspect-ratio: 4/3) { .cg-hero__img { object-position: 74% 50%; } }

/* ---------------------------------------------------------------- hero: follows the mouse (cng.js, user 2026-10-21)
   --mx / --my run -1 … 1 (pointer across / down the hero, eased); the photo is drawn 5% larger so its drift
   never shows an edge. Only for a mouse, never with reduced motion — phones keep the still photo. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cg-hero__ph img { transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0) scale(1.05); will-change: transform; }
  .cg-hero__in { transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 5px), 0); }
  .cg-hero__glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
    background: radial-gradient(520px circle at var(--gx, 60%) var(--gy, 45%), rgba(247, 226, 190, .30), rgba(247, 226, 190, .08) 40%, transparent 65%);
    mix-blend-mode: soft-light;
  }
  .cg-hero.is-follow .cg-hero__glow { opacity: 1; }
}

/* "Shop by style": one column per tile (user, 2026-10-26 removed Men's jewelry — 5 tiles must not leave a gap);
   tablets keep them in one row too; phones 2 a row, an odd last tile centred */
.cg-tiles__g { grid-template-columns: repeat(var(--cg-tiles-n, 6), minmax(0, 1fr)); }
@media (min-width: 768px) and (max-width: 1023px) { .cg-tiles__g { grid-template-columns: repeat(var(--cg-tiles-n, 6), minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 767px) {
  .cg-tiles__g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-tiles__g > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
}

/* ---------------------------------------------------------------- Shop by shape (sections/cng-shape-row, 2026-10-26)
   the ten shapes as real diamonds on white tiles: one row of ten on desktop, five on tablets, a sideways row on phones */
.cg-shrow__head { text-align: center; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.cg-shrow__head .cg-eyebrow { margin-bottom: 26px; }
.cg-shrow__t { max-width: 560px; margin: 18px auto 0; }
.cg-shrow__g { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cg-shrow__a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 8px 18px; border: 1px solid var(--cg-line); background: var(--cg-white); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.cg-shrow__a:hover, .cg-shrow__a:focus-visible { border-color: var(--cg-rose); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30, 22, 32, .08); }
.cg-shrow__m { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; }
.cg-shrow__m img.cg-sh--dia { width: 72px; height: 72px; transition: transform .35s ease; }
.cg-shrow__a:hover .cg-shrow__m img { transform: scale(1.08) rotate(-4deg); }
.cg-shrow__n { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cg-text); }
.cg-shrow__a:hover .cg-shrow__n { color: var(--cg-rose); }
@media (max-width: 1180px) { .cg-shrow__g { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 767px) {
  .cg-shrow__head { text-align: left; align-items: flex-start; margin-bottom: 24px; }
  .cg-shrow__t { margin-left: 0; }
  .cg-shrow__g { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .cg-shrow__g::-webkit-scrollbar { display: none; }
  .cg-shrow__g > li { flex: 0 0 112px; scroll-snap-align: start; }
  .cg-shrow__m, .cg-shrow__m img.cg-sh--dia { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .cg-shrow__a, .cg-shrow__m img { transition: none; } .cg-shrow__a:hover { transform: none; } }
/* the stones on their own studio background (2026-10-26): a 96px photo square, softly rounded, no stretch */
.cg-shrow__m { width: 96px; height: 96px; overflow: hidden; border-radius: 2px; background: #c9cbd0; }
.cg-shrow__m img { display: block; width: 96px; height: 96px; object-fit: cover; transition: transform .35s ease; }
.cg-shrow__a:hover .cg-shrow__m img { transform: scale(1.06); }
@media (max-width: 767px) { .cg-shrow__m, .cg-shrow__m img { width: 84px; height: 84px; } }

/* shop band (sections/cng-salon, user 2026-10-26): what every order comes with, then the collections as a two-column
   list of links on the onyx ground — champagne accents, hairline dividers, an arrow that slides on hover */
.cg-salon__pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.cg-salon__pts li { display: flex; align-items: center; gap: 10px; color: var(--cg-inverse); }
.cg-salon__pts svg { flex: 0 0 auto; color: var(--cg-champagne); }
.cg-salon__shop { margin-top: 14px; padding-top: 22px; border-top: 1px solid rgba(251, 248, 245, .16); }
.cg-salon__sh { margin: 0 0 12px; color: rgba(251, 248, 245, .62); }
.cg-salon__shop ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.cg-salon__shop a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid rgba(251, 248, 245, .12); font-size: 15px; color: var(--cg-inverse); transition: color .18s ease; }
.cg-salon__shop a svg { color: var(--cg-champagne); transition: transform .2s ease; }
.cg-salon__shop a:hover, .cg-salon__shop a:focus-visible { color: var(--cg-champagne); }
.cg-salon__shop a:hover svg { transform: translateX(4px); }
@media (max-width: 767px) {
  .cg-salon__pts { grid-template-columns: 1fr; }
  .cg-salon__shop ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cg-salon__shop a svg { transition: none; } }

/* image edges meet in an exact cross (user, 2026-10-26): every photo / text band on the home page splits 50 : 50, so the
   "Your vision" photo's edge lines up with the tennis photo's below it */
@media (min-width: 1024px) {
  .cg-split, .cg-split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cg-split__m { aspect-ratio: auto; width: 100%; min-width: 0; min-height: 640px; overflow: hidden; }
  .cg-split__m img { width: 100%; height: 100%; object-fit: cover; }
}

/* Shop by shape tiles: a soft shadow in the theme's own rose / plum (user, 2026-10-26 "theme color shadow behind the
   boxes so it looks smooth"); the hairline softens so the shadow does the outlining; deeper on hover */
.cg-shrow__a {
  border-color: rgba(183, 110, 121, .14);
  box-shadow: 0 1px 2px rgba(58, 36, 51, .05), 0 8px 22px -6px rgba(183, 110, 121, .22);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cg-shrow__a:hover, .cg-shrow__a:focus-visible {
  border-color: rgba(183, 110, 121, .4);
  box-shadow: 0 2px 4px rgba(58, 36, 51, .06), 0 16px 34px -8px rgba(183, 110, 121, .36);
}
/* room under the row so the shadows are not clipped (the phone row scrolls sideways inside its own box) */
.cg-shrow__g { padding-bottom: 14px; }
@media (max-width: 767px) { .cg-shrow__g { padding: 4px 4px 18px; margin-inline: -4px; } }

/* phone hero (user, 2026-10-26 "make this text look in bottom so jewelry can be visible"): the copy sits at the
   bottom above the 01—03 counter, the photo stays clear at the top, and the shade darkens only behind the words */
@media (max-width: 767px) {
  .cg-hero { height: min(88svh, 760px); min-height: 600px; }
  .cg-hero__copy { top: auto; bottom: 76px; }
  .cg-hero__h { margin-top: 14px; }
  .cg-hero__t { margin-top: 14px; }
  .cg-hero__cta { margin-top: 20px; gap: 14px; }
  .cg-hero__ui { bottom: 28px; }
  .cg-hero__shade { background: linear-gradient(180deg, rgba(23,15,26,.28) 0%, rgba(23,15,26,0) 22%, rgba(23,15,26,0) 38%, rgba(23,15,26,.55) 58%, rgba(23,15,26,.92) 100%); }
}
@media (max-width: 767px) {
  .cg-hero__eb { font-size: 10px; letter-spacing: .1em; }
  .cg-hero__h1 { font-size: 40px; }
  .cg-hero__h2 { font-size: 37px; }
  .cg-hero__t { font-size: 14px; line-height: 1.5; }
  .cg-hero__cta .cg-hbtn { min-height: 46px; }
}

/* Shop by shape on phones: show that the row scrolls (user, 2026-10-26 "how can anyone know there are more?") —
   the next tile peeks in, the edge with more fades, and a thin rose line under the row tracks the swipe */
.cg-shrow__more { display: none; }
@media (max-width: 767px) {
  .cg-shrow__g > li { flex: 0 0 37%; }
  .cg-shrow__g { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%); }
  .cg-shrow:not(.is-start):not(.is-end) .cg-shrow__g { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 82%, transparent 100%); }
  .cg-shrow.is-end .cg-shrow__g { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
  .cg-shrow.is-fit .cg-shrow__g { -webkit-mask-image: none; mask-image: none; }
  .cg-shrow__more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
  .cg-shrow.is-fit .cg-shrow__more { display: none; }
  .cg-shrow__hint { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cg-text-2); transition: opacity .3s ease; }
  .cg-shrow.is-swiped .cg-shrow__hint { opacity: 0; height: 0; overflow: hidden; }
  .cg-shrow__track { position: relative; display: block; width: 120px; height: 2px; background: var(--cg-line); overflow: hidden; border-radius: 2px; }
  .cg-shrow__track i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--cg-rose); border-radius: 2px; }
}
@media (prefers-reduced-motion: reduce) { .cg-shrow__hint { transition: none; } }

/* Shop by shape without cards (user, 2026-10-26 "remove card, show only the diamond and its name"): no border, fill or
   shadow round each item — the photo and its name; on hover the photo lifts with a soft rose shadow and the name turns rose */
.cg-shrow__a, .cg-shrow__a:hover, .cg-shrow__a:focus-visible { border: 0; background: none; box-shadow: none; transform: none; padding: 0 4px; gap: 12px; }
.cg-shrow__m { transition: transform .25s ease, box-shadow .25s ease; }
.cg-shrow__a:hover .cg-shrow__m, .cg-shrow__a:focus-visible .cg-shrow__m { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(183, 110, 121, .45); }
.cg-shrow__a:focus-visible { outline: 2px solid var(--cg-rose); outline-offset: 4px; }
.cg-shrow__g { gap: 8px; }
@media (prefers-reduced-motion: reduce) { .cg-shrow__m { transition: none; } .cg-shrow__a:hover .cg-shrow__m { transform: none; } }

/* Shop by shape = the user's own diamond renders (2026-10-26): cut-out stones, no grey backdrop behind them */
.cg-shrow__m { background: none; border-radius: 0; width: 104px; height: 104px; }
.cg-shrow__m img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(58, 36, 51, .12)); }
.cg-shrow__a:hover .cg-shrow__m, .cg-shrow__a:focus-visible .cg-shrow__m { box-shadow: none; }
.cg-shrow__a:hover .cg-shrow__m img { filter: drop-shadow(0 10px 14px rgba(183, 110, 121, .3)); }
@media (max-width: 767px) { .cg-shrow__m, .cg-shrow__m img { width: 88px; height: 88px; } }

/* ---------------------------------------------------------------- QA, 19 Nov 2026 */

/* CAG-012 — "Shop by style" has five tiles and the phone grid is two across, so Bracelets sat
   alone in the last row with an empty half on each side. (It was column-width, not smaller, but it
   did read as a leftover.) The odd last tile now runs the full width with a landscape photo, so
   the row is filled and the block ends square. */
@media (max-width: 767px) {
  .cg-tiles__g > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: stretch; width: auto; }
  /* .cg-media is an inline <span> here, so an aspect-ratio on it is ignored until it is a block — the
     first attempt left a 512px-tall tile, the second left the span at its portrait 174/245 with a 16/9
     image inside it. The span is the box (block + 16/9) and the image fills it, which is how
     .cg-media > img { height: 100% } already expects to work. */
  .cg-tiles__g > li:last-child:nth-child(odd) .cg-media { display: block; aspect-ratio: 16 / 9; }
  .cg-tiles__g > li:last-child:nth-child(odd) .cg-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}
