/* ============================================================
   AXIOM — Redesign element system, SCOPED under .ax-rd.
   Ported from the redesign's axiom.css + per-component <style> blocks,
   with every rule scoped to the .ax-rd wrapper so it is safe to load on
   the Bootstrap storefront layout WITHOUT a global reset leaking into
   shop pages. Editorial pages (Home/Bespoke/Partners/Contact) wrap their
   content in <div class="ax-rd"> and get the full redesign look; the
   shared header/footer/functionality (layouts/web) are untouched.
   Tokens come from the shared axiom-vars.css.
   ============================================================ */

/* Base — the wrapper is the redesign "canvas" */
.ax-rd { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400; line-height: 1.55; }
.ax-rd *, .ax-rd *::before, .ax-rd *::after { box-sizing: border-box; }
.ax-rd img { display: block; max-width: 100%; }
.ax-rd a { color: inherit; text-decoration: none; }
.ax-rd h1, .ax-rd h2, .ax-rd h3, .ax-rd h4 { font-weight: 500; margin: 0; }
.ax-rd p { margin: 0; }
.ax-rd ::selection { background: var(--accent); color: var(--accent-ink); }
.ax-rd button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.ax-rd .shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); width: 100%; }
.ax-rd .section-pad { padding: clamp(70px, 11vh, 150px) 0; }
.ax-rd .scrim { position: absolute; inset: 0; }

/* Typography */
.ax-rd .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.ax-rd .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.6; }
.ax-rd .eyebrow.solo::before { display: none; }
.ax-rd .eyebrow.center { justify-content: center; }
.ax-rd .eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.6; }
.ax-rd .display { font-family: var(--display); font-weight: 500; line-height: 1.0; letter-spacing: -0.02em; }
.ax-rd .serif { font-family: var(--serif); }
.ax-rd .section-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.ax-rd .section-title em { font-style: normal; color: var(--accent-2); }
.ax-rd em, .ax-rd .hx-em, .ax-rd h1 em, .ax-rd h2 em, .ax-rd h3 em { font-style: normal !important; }
.ax-rd .lede { font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.62; color: var(--text-2); font-weight: 400; max-width: 58ch; }
.ax-rd .muted { color: var(--muted); }
.ax-rd .tnum { font-variant-numeric: tabular-nums; }
.ax-rd .metal-text { background: linear-gradient(180deg, #fff, var(--accent-2) 45%, var(--accent) 70%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons — including the signature diamond pill */
.ax-rd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-size: 13px; font-weight: 500; letter-spacing: 0.03em; padding: 16px 30px; min-height: 46px; border-radius: 100px; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .25s var(--ease); position: relative; overflow: hidden; font-family: var(--sans); }
.ax-rd .btn .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; transition: transform .5s var(--ease); }
.ax-rd .btn:hover .dot { transform: translateX(4px) scale(1.4); }
.ax-rd .btn:active { transform: scale(0.97); }
.ax-rd .btn-accent { background: linear-gradient(176deg, rgba(255,255,255,0.96) 0%, rgba(223,230,237,0.78) 46%, rgba(198,206,215,0.9) 100%); color: #16140f; border: 1px solid rgba(255,255,255,0.85); isolation: isolate; box-shadow: inset 0 1.5px 1px rgba(255,255,255,1), inset 0 -3px 7px rgba(110,126,144,0.28), inset 16px 0 20px -16px rgba(150,205,255,0.65), inset -16px 0 20px -16px rgba(255,170,205,0.6), 0 16px 36px -16px rgba(218,230,244,0.5), 0 2px 6px rgba(0,0,0,0.32); }
.ax-rd .btn-accent::before { content: ''; position: absolute; inset: -40%; border-radius: 50%; z-index: -1; pointer-events: none; background: conic-gradient(from 0deg, rgba(120,180,255,0) 0%, rgba(120,180,255,0.5) 12%, rgba(255,255,255,0) 25%, rgba(255,210,130,0.45) 42%, rgba(255,255,255,0) 55%, rgba(255,150,200,0.5) 72%, rgba(255,255,255,0) 85%, rgba(120,180,255,0) 100%); opacity: 0.5; filter: blur(4px); animation: axBtnFire 11s linear infinite; transition: opacity .6s var(--ease-out); }
.ax-rd .btn-accent:hover::before { opacity: 0.8; animation-duration: 4.5s; }
@keyframes axBtnFire { to { transform: rotate(360deg); } }
.ax-rd .btn-accent::after { content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,0.95), transparent); transform: skewX(-18deg); transition: transform 1.1s var(--ease-out); pointer-events: none; }
.ax-rd .btn-accent:hover::after { transform: translateX(430%) skewX(-18deg); }
.ax-rd .btn-accent:hover { background: linear-gradient(176deg, #ffffff 0%, #eef3f7 46%, #d4dce4 100%); }
.ax-rd .btn-light { background: var(--text); color: var(--bg); }
.ax-rd .btn-light:hover { background: var(--accent-2); }
.ax-rd .btn-ghost { border: 1px solid var(--line); color: var(--text); }
.ax-rd .btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.ax-rd .btn-dark { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.ax-rd .btn-dark:hover { border-color: var(--accent); color: var(--accent-2); }
.ax-rd .btn-block { width: 100%; }
.ax-rd .alink { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: all .4s var(--ease); }
.ax-rd .alink:hover { color: var(--accent-2); border-color: var(--accent); gap: 16px; }

/* On-paper (light) sections */
.ax-rd .on-paper { background: var(--paper); color: var(--paper-ink); }
.ax-rd .on-paper .lede, .ax-rd .on-paper .muted { color: #4c4d50; }
.ax-rd .on-paper .eyebrow { color: #6a6e74; }
.ax-rd .on-paper .eyebrow::before, .ax-rd .on-paper .eyebrow.center::after { background: #6a6e74; }
.ax-rd .on-paper .section-title em { color: #4a4e54; }

/* Scroll reveals (driven by axiom-redesign.js). Hidden states only apply under
   html.ax-js, so if the script never runs the content stays fully visible. */
.ax-rd .rv { transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); }
:where(html.ax-js) .ax-rd .rv { opacity: 0; transform: translateY(16px); filter: blur(5px); }
.ax-rd .rv.rv-in { opacity: 1; transform: none; filter: blur(0); }
.ax-rd .uv { transition: clip-path 1.35s var(--ease-out), opacity 1.35s var(--ease-out), transform 1.35s var(--ease-out); }
:where(html.ax-js) .ax-rd .uv { clip-path: inset(8% 0 100% 0); opacity: 0.35; transform: scale(1.04); }
.ax-rd .uv.uv-in { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
.ax-rd .wd { display: inline; }
.ax-rd .wd .wd-w { display: inline-block; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); will-change: transform, opacity; }
:where(html.ax-js) .ax-rd .wd .wd-w { opacity: 0; transform: translateY(0.5em); }
.ax-rd .wd.wd-in .wd-w { opacity: 1; transform: none; }

/* Grain overlay + CSS "gem" glow (stands in for the three.js diamonds; perf-safe, no CLS) */
.ax-rd .grain { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0.04; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ax-gem { position: relative; display: grid; place-items: center; aspect-ratio: 1/1; width: 100%; }
.ax-gem::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.9), rgba(200,220,255,0.35) 32%, rgba(120,150,210,0.12) 55%, transparent 70%); filter: blur(6px); animation: axGemPulse 6s var(--ease-in-out) infinite; }
.ax-gem__facet { position: relative; width: 46%; aspect-ratio: 1/1; background: linear-gradient(135deg, #ffffff, var(--accent) 40%, var(--silver) 62%, #ffffff); clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%); box-shadow: 0 30px 60px -24px rgba(190,215,245,0.55); animation: axGemFloat 7s var(--ease-in-out) infinite; }
@keyframes axGemPulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes axGemFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* three.js mount: canvas fills an aspect-ratio box; a CSS-gem placeholder shows
   until the real 3D is live (then fades), and is the reduced-motion/no-WebGL fallback. */
.ax-rd .ax3d { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.ax-rd .ax3d > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ax-rd .ax3d__ph { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s var(--ease-out); }
.ax-rd .ax3d--live .ax3d__ph { opacity: 0; }
.ax-rd .ax3d--fallback .ax3d__ph { opacity: 1; }

/* Kinetic marquee */
.ax-rd .marquee { overflow: hidden; white-space: nowrap; }
.ax-rd .marquee__track { display: inline-flex; gap: 3vw; padding: 0 1.5vw; animation: axMarquee 34s linear infinite; }
.ax-rd .marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes axMarquee { to { transform: translateX(-50%); } }

/* Product card (redesign) — used by <x-ax.product-card> */
.ax-rd .pc-reveal { transition: opacity 1s var(--ease-out), filter 1s var(--ease-out); }
:where(html.ax-js) .ax-rd .pc-reveal { opacity: 0; filter: blur(6px); }
.ax-rd .pc-reveal.in, .ax-rd .pc-reveal.rv-in { opacity: 1; filter: blur(0); }
.ax-rd .pc { transition: transform .6s var(--ease); }
.ax-rd .pc:hover { transform: translateY(-6px); }
.ax-rd .pc-media { position: relative; display: block; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; padding: 6px; background: linear-gradient(160deg, rgba(243,241,236,0.07), rgba(243,241,236,0.015) 38%, rgba(0,0,0,0.18)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 26px 50px -28px rgba(0,0,0,0.9); transition: box-shadow .6s var(--ease); }
.ax-rd .pc:hover .pc-media { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 40px 70px -30px rgba(0,0,0,0.95); }
.ax-rd .pc-unveil { position: absolute; inset: 0; display: block; will-change: clip-path; }
.ax-rd .pc-shine { position: absolute; inset: 6px; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 4; }
.ax-rd .pc-shine::after { content: ''; position: absolute; top: -20%; left: -60%; width: 45%; height: 140%; background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), rgba(190,225,255,0.25), transparent); transform: skewX(-16deg) translateX(0); opacity: 0; transition: transform 0s, opacity 0s; }
.ax-rd .pc:hover .pc-shine::after { opacity: 1; transform: skewX(-16deg) translateX(360%); transition: transform 1.1s var(--ease-out), opacity .2s var(--ease-out); }
.ax-rd .pc-media::after { content: ''; position: absolute; inset: 6px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 60px rgba(5,5,6,0.55); pointer-events: none; z-index: 3; }
.ax-rd .pc-media img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 12px; object-fit: cover; background: #08080a; filter: contrast(1.07) brightness(1.02) saturate(1.03); transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.ax-rd .pc-media .pc-alt { opacity: 0; }
.ax-rd .pc-media:hover .pc-alt { opacity: 1; }
.ax-rd .pc-media:hover img { transform: scale(1.04); }
.ax-rd .pc-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px; background: rgba(14,14,16,0.7); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 2px; color: var(--text); font-size: 12px; letter-spacing: 0.06em; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); text-align: center; }
.ax-rd .pc-media:hover .pc-quick { opacity: 1; transform: translateY(0); }
.ax-rd .pc-quick:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ax-rd .pc-body { padding: 16px 2px 0; }
.ax-rd .pc-cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d); }
.ax-rd .pc-name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.32rem); margin: 7px 0 10px; line-height: 1.15; }
.ax-rd .pc-name a:hover { color: var(--accent-strong); }
.ax-rd .pc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ax-rd .pc-price { font-size: 0.95rem; color: var(--text); font-variant-numeric: tabular-nums; }
.ax-rd .pc-stone { font-size: 0.78rem; color: var(--muted-d); text-align: right; }

/* Trust bar */
.ax-rd .tb { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ax-rd .tb-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; padding: 18px var(--gut); }
.ax-rd .tb-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ax-rd .tb-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Intro "unboxing" + Floating commission CTA (JS-injected to <body>, so global) */
.ax-intro { position: fixed; inset: 0; z-index: 9990; pointer-events: none; overflow: hidden; }
.ax-intro__half { position: absolute; left: 0; right: 0; height: 50.5%; background: linear-gradient(180deg, #100e0b, #0b0a09); transition: transform 1.15s var(--ease-drawer); will-change: transform; }
.ax-intro__top { top: 0; box-shadow: 0 1px 0 rgba(203,174,124,0.18); }
.ax-intro__bottom { bottom: 0; box-shadow: 0 -1px 0 rgba(203,174,124,0.18); }
.ax-intro.open .ax-intro__top { transform: translateY(-100%); }
.ax-intro.open .ax-intro__bottom { transform: translateY(100%); }
.ax-intro__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; opacity: 1; transition: opacity .6s var(--ease-out); }
.ax-intro.open .ax-intro__center { opacity: 0; }
.ax-intro__line { display: block; width: 170px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.ax-intro__cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }

.ax-fcta { position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 30px); z-index: 900; display: inline-flex; align-items: center; gap: 12px; padding: 11px 11px 11px 22px; border-radius: 100px; background: linear-gradient(176deg, rgba(255,255,255,0.97), rgba(214,221,228,0.9)); color: #16140f; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; border: 1px solid rgba(255,255,255,0.7); box-shadow: inset 0 1px 1px rgba(255,255,255,1), 0 16px 38px -16px rgba(220,230,240,0.5), 0 2px 6px rgba(0,0,0,0.3); font-family: var(--sans); opacity: 0; transform: translateY(80px); pointer-events: none; transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
.ax-fcta.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ax-fcta:hover { transform: translateY(-2px); text-decoration: none; }
.ax-fcta span { text-decoration: none; }
.ax-fcta i { width: 30px; height: 30px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-style: normal; transition: transform .4s var(--ease-out); }
.ax-fcta i svg { fill: currentColor; }
.ax-fcta:hover i { transform: translate(2px, -2px); }
@media (max-width: 600px) { .ax-fcta span { display: none; } .ax-fcta { padding: 12px; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ax-rd .rv, .ax-rd .uv { transition: opacity .3s; transform: none; filter: none; clip-path: none; opacity: 1; }
  .ax-rd .wd .wd-w { transition: opacity .3s; transform: none; opacity: 1; }
  .ax-rd .btn-accent::before, .ax-rd .pc-shine, .ax-gem::before, .ax-gem__facet, .ax-rd .marquee__track { animation: none !important; }
  .ax-intro { display: none; }
}

/* ============================================================
   INDEX PAGES — Collections & Categories listing (Bucket B).
   Redesign-native hero + card grid, scoped under .ax-rd so it inherits the
   home page's tokens (fonts, palette, motion). Content/markup carry the real
   DB data; this is style only.
   ============================================================ */
.ax-rd .ax-ix-in { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* Hero — full-bleed image banner under the nav (matches About / partners / detail pages). */
.ax-rd .ax-ix-hero { position: relative; min-height: clamp(360px, 48vh, 520px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--bg); }
.ax-rd .ax-ix-hero__media { position: absolute; inset: 0; z-index: 0; }
.ax-rd .ax-ix-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-rd .ax-ix-hero__scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 100% at 50% 34%, rgba(5,5,6,0.26), rgba(5,5,6,0.72) 78%), linear-gradient(to bottom, rgba(5,5,6,0.74) 0%, rgba(5,5,6,0.12) 38%, rgba(5,5,6,0.9) 100%); }
.ax-rd .ax-ix-hero__in { position: relative; z-index: 3; width: 100%; max-width: 860px; padding: calc(var(--nav-h) + 20px) var(--gut) clamp(30px, 5vh, 60px); }
.ax-rd .ax-ix-title { font-family: var(--serif); font-weight: 500; font-size: var(--fluid-banner); line-height: 1.04; letter-spacing: -0.015em; margin: 16px 0 0; }
.ax-rd .ax-ix-title em { font-style: normal; }
.ax-rd .ax-ix-lede { font-size: var(--lede-size); color: var(--text-2); line-height: 1.6; margin: 20px auto 0; max-width: 620px; }
.ax-rd .ax-ix-lede a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.ax-rd .ax-ix-lede a:hover { border-color: var(--accent); }

/* Grid section */
.ax-rd .ax-ix-sec { padding: clamp(24px, 4vh, 48px) 0 clamp(80px, 12vh, 140px); }
.ax-rd .ax-ix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px) clamp(18px, 2.2vw, 32px); }

/* Card */
.ax-rd .ax-ix-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.ax-rd .ax-ix-card:hover { text-decoration: none; color: var(--text); }
.ax-rd .ax-ix-media { position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); aspect-ratio: var(--ix-ratio, 4 / 5); background: var(--bg-2); }
.ax-rd .ax-ix-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sheen sweep on hover (replaces the old zoom) — matches the product cards. */
.ax-rd .ax-ix-media::after { content: ""; position: absolute; top: 0; left: -85%; width: 45%; height: 100%; z-index: 4; pointer-events: none; background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), rgba(190,225,255,0.25), transparent); transform: skewX(-18deg); opacity: 0; transition: transform 0s, opacity 0s; }
.ax-rd .ax-ix-card:hover .ax-ix-media::after { opacity: 1; transform: translateX(360%) skewX(-18deg); transition: transform 1.1s var(--ease-out), opacity .2s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .ax-rd .ax-ix-media::after { display: none; } }
.ax-rd .ax-ix-body { padding: 16px 2px 0; }
.ax-rd .ax-ix-name { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 1.5vw, 1.55rem); line-height: 1.12; letter-spacing: 0; transition: color .35s var(--ease); }
.ax-rd .ax-ix-card:hover .ax-ix-name { color: var(--accent-2); }
.ax-rd .ax-ix-meta { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ax-rd .ax-ix-desc { display: block; margin-top: 9px; font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }
.ax-rd .ax-ix-empty { color: var(--muted); padding: 40px 0; }

@media (max-width: 900px) { .ax-rd .ax-ix-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ax-rd .ax-ix-grid { grid-template-columns: 1fr; } }
