/* Signets category page (signets.html). Same palette as the rest of the site: navy dark-room, cream type, Inter Tight / Instrument Serif. */
.sg { font-family: "Inter Tight", system-ui, sans-serif; color: var(--brand); background: var(--cream); }
.sg h1, .sg h2, .sg h3 { font-family: inherit; text-transform: none; margin: 0; }
.sg em.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.sg .lab { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5b6774; }
.sg-gut { padding-left: clamp(20px, 3.4vw, 48px); padding-right: clamp(20px, 3.4vw, 48px); }

/* ---------- 1. hero: the signet, turnable ---------- */
.sg-hero { min-height: calc(100vh - 58px); min-height: calc(100svh - 58px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; color: #f0e6cd; padding-top: 40px; padding-bottom: 40px; }
.sg-hero__copy { display: flex; flex-direction: column; gap: 26px; max-width: 520px; }
.sg-hero__eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: rgba(216,195,145,.72); }
.sg-hero h1 { font-weight: 300; font-size: clamp(48px, 7vw, 112px); line-height: .94; letter-spacing: -0.05em; }
.sg-hero h1 em { display: block; font-size: 1.06em; }
.sg-hero p.sg-hero__lede { margin: 0; max-width: 380px; font-weight: 300; font-size: 13px; line-height: 1.7; color: rgba(240,230,205,.78); }
.sg-hero__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: #f0e6cd; color: var(--brand); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: transform .2s, background .2s; }
.sg-hero__cta:hover { background: #fff7e6; transform: translateY(-1px); }

.sg-turn { position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; user-select: none; }
.sg-turn:active { cursor: grabbing; }
.sg-turn__halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,230,205,.16), rgba(240,230,205,0) 72%); pointer-events: none; }
.sg-turn__orbit { position: absolute; inset: 2%; border-radius: 50%; border: 1px solid rgba(240,230,205,.12); pointer-events: none; }
.sg-turn__orbit::after { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #d8c391; transform-origin: 3px calc(50% * 1 + 3px); }
.sg-turn__ring { position: relative; width: 74%; aspect-ratio: 528 / 551; background-size: 600% 400%; background-repeat: no-repeat; filter: drop-shadow(10px 18px 14px rgba(0,0,0,.35)) drop-shadow(30px 50px 40px rgba(0,0,0,.25)); }
.sg-turn__hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(240,230,205,.6); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.sg-turn.used .sg-turn__hint { opacity: 0; }
.sg-turn__deg { position: absolute; right: 6%; top: 8%; font-size: 10px; letter-spacing: .14em; color: rgba(216,195,145,.72); font-variant-numeric: tabular-nums; pointer-events: none; }
.sg-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(240,230,205,.5); }

/* ---------- 2 + 3. choose by face + the collection ---------- */
.sg-shop { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(88px, 10vw, 144px); align-items: start; }
.sg-pick { position: sticky; top: 82px; display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); }
.sg-face { margin-bottom: 0; }
.sg-pick h2 { font-weight: 300; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.045em; }
.sg-pick h2 em { display: block; }
.sg-pick p { margin: 0; font-weight: 300; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

.sg-face { position: relative; width: 100%; max-width: clamp(150px, calc(100vh - 520px), 300px); aspect-ratio: 1; }
.sg-face svg { width: 100%; height: 100%; overflow: visible; }
.sg-face__fill { fill: url(#sgMetal); }
.sg-face__edge { fill: none; stroke: var(--brand); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sg-face__inner { fill: none; stroke: rgba(14,57,86,.22); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.sg-face__name { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(30px, 3vw, 42px); color: var(--brand); pointer-events: none; }
.sg-face__count { position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; text-align: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5b6774; }

.sg-shapes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sg-shape { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 76px; margin: 0; padding: 10px 4px 8px; border: 1px solid rgba(14,57,86,.16); border-radius: 14px; background: #ffffff; color: var(--brand); font: inherit; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .15s; }
.sg-shape svg { width: 28px; height: 28px; }
.sg-shape svg path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sg-shape:hover { border-color: var(--brand); }
.sg-shape:active { transform: scale(.97); }
.sg-shape[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #f0e6cd; }
.sg-shape:focus-visible, .sg-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.sg-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #e8eaee; color: var(--brand); text-decoration: none; transform-style: preserve-3d; transition: box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.sg-card[hidden] { display: none; }
.sg-card:hover { box-shadow: 0 30px 60px -36px rgba(10,40,57,.55); }
.sg-card__stage { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: radial-gradient(70% 60% at 50% 46%, #f9fafb 0%, rgba(249,250,251,0) 70%), linear-gradient(180deg, #eceef1, #dfe2e7); }
.sg-card__stage img { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -50%) translate(var(--px, 0), var(--py, 0)); opacity: 0; transition: opacity .45s, transform .5s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(8px 14px 10px rgba(10,40,57,.16)); }
.sg-card__stage img.on { opacity: 1; }
.sg-card:hover .sg-card__stage img.on { transform: translate(-50%, -50%) translate(var(--px, 0), var(--py, 0)) scale(1.06); }
.sg-card__badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.sg-card__badge svg { width: 16px; height: 16px; }
.sg-card__badge svg path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sg-card__metals { position: absolute; right: 16px; top: 18px; display: flex; gap: 5px; }
.sg-card__metals i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,40,57,.2); opacity: .45; transition: opacity .3s, transform .3s; }
.sg-card__metals i.on { opacity: 1; transform: scale(1.25); }
.sg-card__body { container-type: inline-size; display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; padding: 18px 20px 20px; background: #f7f8f9; }
.sg-card__body h3 { min-width: 0; }
.sg-card__body h3 { white-space: nowrap; font-weight: 300; font-size: clamp(16px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -0.03em; }
.sg-card__body h3 em { display: block; margin-top: 4px; font-size: .62em; color: var(--ink-soft); }
.sg-card__price { text-align: right; white-space: nowrap; font-size: 12px; }
.sg-card__price b { display: block; font-weight: 300; font-size: 20px; letter-spacing: -0.02em; }
.sg-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.sg-card__go::after { content: "\2192"; transition: transform .25s; }
.sg-card:hover .sg-card__go::after { transform: translateX(4px); }
.sg-empty { grid-column: 1 / -1; margin: 0; padding: 48px 0; font-weight: 300; font-size: 22px; letter-spacing: -0.02em; }

/* entrance: cards rise in as they scroll into view */
.sg-rise { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .9s cubic-bezier(.2,.7,.2,1); }
.sg-rise.in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .sg-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 56px; text-align: left; }
  .sg-turn { order: -1; width: min(100%, 420px); }
  .sg-scroll { display: none; }
  .sg-shop { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 56px; }
  .sg-shop > *, .sg-pick > * { min-width: 0; }
  /* the chooser's pieces join the collection's column, so the shape row can stay pinned for the whole collection */
  .sg-pick { display: contents; }
  /* phones: the shape chooser rides under the nav while the collection scrolls */
  .sg-pick { position: static; gap: 18px; }
  .sg-face { display: none; }
  .sg-shapes-wrap { position: sticky; top: 56px; z-index: 20; margin: 0 -20px; padding: 10px 20px; background: rgba(242,243,245,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(14,57,86,.1); }
  .sg-shapes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .sg-shapes::-webkit-scrollbar { display: none; }
  .sg-shape { flex: none; flex-direction: row; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; }
  .sg-shape svg { width: 20px; height: 20px; }
  .sg-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-rise, .sg-card, .sg-card__stage img, .sg-turn__hint { transition: none; }
  .sg-rise { opacity: 1; transform: none; }
}

/* "All": a square and an octagon stacked behind the round face */
.sg-face__backs path { fill: url(#sgMetal); stroke: var(--brand); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sg-face__backs { opacity: 0; transition: opacity .45s; }
.sg-face__backs.on { opacity: 1; }
.sg-shape { --shape-bg: #ffffff; }
.sg-shape[aria-pressed="true"] { --shape-bg: var(--brand); }
.sg-shape svg path.front { fill: var(--shape-bg); }
@media (prefers-reduced-motion: reduce) { .sg-face__backs { transition: none; } }

.sg-turn--still { cursor: default; touch-action: auto; }

.sg-face__name[hidden] { display: none; }

@supports (container-type: inline-size) { .sg-card__body h3 { font-size: clamp(15px, 5.4cqi, 26px); } }

.sg-face { display: none !important; }
/* card text scales together with the card */
.sg-card__price b { font-size: 1.667em; }
.sg-card__go { font-size: .833em; }
@supports (container-type: inline-size) { .sg-card__price { font-size: clamp(9px, 2.5cqi, 12px); } }
.sg-card__price .lab { font-size: max(8.5px, .833em); }
.sg-card__go { font-size: max(8.5px, .833em); }
/* card info: top-aligned; the name sits vertically centred against the From/price pair, Design yours below */
.sg-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name lab" "name price" ". go"; align-items: start; column-gap: 16px; row-gap: 0; }
.sg-card__body h3 { grid-area: name; align-self: center; }
.sg-card__price { display: contents; }
.sg-card__price .lab { grid-area: lab; justify-self: end; }
.sg-card__price b { grid-area: price; justify-self: end; }
.sg-card__go { grid-area: go; justify-self: end; margin-top: 8px; }
@supports (container-type: inline-size) { .sg-card__body h3 { font-size: clamp(16px, 6.2cqi, 30px); } }

/* ---------- Ring Bands page (ring-bands.html) reuses this file ---------- */
.sg--bands .sg-shop { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.bd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.bd-head h2 { font-weight: 300; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.045em; }
.bd-head h2 em { display: block; }
.bd-head p { margin: 0; max-width: 340px; font-weight: 300; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.sg-turn__ring--img { background-size: contain; background-position: center; }

/* hero as a film (same treatment as the home page's opening film): the video fills the section in black and white,
   lifted onto the navy with a screen blend, a navy gradient at the top and bottom, copy bottom-left over it */
.sg-hero.sg-film { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(100vh, 920px); min-height: min(100svh, 920px); box-sizing: border-box; overflow: hidden; padding: 0; background: #061e2c; color: #f0e6cd; grid-template-columns: none; }
.sg-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(1) contrast(1.6) brightness(.7); mix-blend-mode: screen; opacity: .85; }
.sg-film__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,44,.55) 0%, rgba(6,30,44,0) 26%, rgba(6,30,44,0) 48%, rgba(6,30,44,.78) 100%); pointer-events: none; }
.sg-film__copy { position: relative; max-width: 560px; padding: 120px clamp(20px, 3.4vw, 48px) 64px; }
@media (max-width: 899px) { .sg-hero.sg-film { min-height: min(100svh, 760px); padding: 0; } .sg-film__copy { padding: 120px 20px 72px; } }
/* the dark-room rule lifts every child into the flow (position: relative); the film's video and shade must stay
   layered behind the copy, and the copy sits bottom-left like the home page */
.sg-hero.sg-film > .sg-film__video, .sg-hero.sg-film > .sg-film__shade { position: absolute !important; inset: 0; z-index: 0; }
.sg-hero.sg-film > .sg-film__copy { z-index: 1; }
.sg-hero.sg-film { align-items: flex-start; }
/* desktop: the hero fits exactly in the first screen under the 58px nav, like the home page's opening film; the ring
   (about 35% down the portrait film) sits in the middle of the space */
@media (min-width: 900px) {
  .sg-hero.sg-film { min-height: 0; height: calc(100vh - 58px); height: calc(100svh - 58px); max-height: 920px; }
  .sg-hero.sg-film > .sg-film__copy { padding-top: 56px; }
}
.sg-hero.sg-film > .sg-film__video { object-position: 50% 22%; }
/* Ring Bands film (square, ring ~62% across / 44% down): centred in the space on desktop (vertical) and on phones (horizontal) */
.sg-hero.sg-film > .sg-film__video--bands { object-position: 50% 35%; }
@media (max-width: 899px) { .sg-hero.sg-film > .sg-film__video--bands { object-position: 75% 50%; } }
/* Men's Wedding Bands film (square, ring ~66% across / 42% down): centred in the space on desktop and on phones */
.sg-hero.sg-film > .sg-film__video--wedding { object-position: 50% 31%; }
@media (max-width: 899px) { .sg-hero.sg-film > .sg-film__video--wedding { object-position: 82% 50%; } }

/* phones, band category pages: two cards to a row. Each card stacks the name (wrapping if it needs to) over a single
   "From $950" line; the "Design yours" link is dropped (the whole card is the link) */
@media (max-width: 599px) {
  .sg--bands .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sg--bands .sg-card { border-radius: 14px; }
  .sg--bands .sg-card__stage { aspect-ratio: 1; }
  .sg--bands .sg-card__stage img { width: 76%; }
  .sg--bands .sg-card__metals { right: 10px; top: 11px; gap: 4px; }
  .sg--bands .sg-card__metals i { width: 7px; height: 7px; }
  .sg--bands .sg-card__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 12px 12px 14px; }
  .sg--bands .sg-card__body h3 { white-space: normal; font-size: 16px !important; line-height: 1.15; letter-spacing: -0.02em; align-self: auto; }
  .sg--bands .sg-card__price { display: flex; align-items: baseline; gap: 6px; text-align: left; font-size: 11px !important; }
  .sg--bands .sg-card__price .lab { font-size: 10px !important; }
  .sg--bands .sg-card__price b { display: inline; font-size: 15px !important; }
  .sg--bands .sg-card__go { display: none !important; }
}
/* phones, band pages: both cards in a row share the taller text area; the name stays at the top and "From $..." sits
   at the bottom, so prices line up across the row */
@media (max-width: 599px) {
  .sg--bands .sg-card__body { flex: 1 1 auto; }
  .sg--bands .sg-card__price { margin-top: auto !important; padding-top: 4px; }
}
