:root {
    --minerals-bg-deep: #1A0530;
    --minerals-bg-royal: #3F0973;
    --minerals-brand: #6B1E74;
    --minerals-brand-bright: #AC1AC1;
    --minerals-gold: #C9A227;
    --minerals-gold-pale: #E8D9A0;
    --minerals-lilac: #F5EEF7;
    --minerals-off-white: #EDF0F3;
    --minerals-muted: rgba(237, 240, 243, .68);
    --minerals-serif: "Spectral", Georgia, "Times New Roman", serif;
    --minerals-sans: "Public Sans", Arial, sans-serif;
}

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

html {
    background: var(--minerals-bg-deep);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--minerals-bg-deep);
    color: var(--minerals-off-white);
    font-family: var(--minerals-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
img { display: block; max-width: 100%; }

.minerals-page {
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--minerals-bg-deep);
    background-image:
        linear-gradient(rgba(18, 3, 31, .13), rgba(18, 3, 31, .4)),
        url("/images/minerals/violet-silk.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.site-shell {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-topbar { padding-top: 22px; }

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    display: block;
    height: 30px;
    width: auto;
}

.brand-suffix {
    /* Solid fallback color for browsers without background-clip: text
       support — the gradient fill below replaces this where supported. */
    color: var(--minerals-gold-pale);
    font-family: var(--minerals-serif);
    font-style: italic;
    font-size: 29px;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .brand-suffix {
        background: linear-gradient(100deg,
            #b8862c 0%,
            #e8cf85 28%,
            #fff3d0 50%,
            #e8cf85 72%,
            #b8862c 100%);
        background-size: 220% 100%;
        background-position: 0% 50%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        transition: background-position 450ms ease;
    }
    .brand-suffix:hover { background-position: 100% 50%; }
}

.hero {
    position: relative;
    /* The gem cluster is meant to bleed down past the hero into the top of
       the bento grid below — that's the intended composition. Without an
       explicit z-index here, that bleed reads backwards: .hero and
       .collection are plain DOM siblings, neither establishing a raised
       stacking context, so the later .collection paints over .hero
       wherever they overlap regardless of the still-life pieces' own
       (locally-scoped) z-index. This raises the whole hero, gems included,
       above the section that follows it. */
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    min-height: 660px;
    padding-block: 92px 70px;
}

.hero-copy {
    position: relative;
    z-index: 4;
    align-self: center;
    padding-bottom: 34px;
    /* Establishes a query container so the headline can size itself off
       this element's own rendered width, not the viewport's. .hero-copy
       shares a CSS Grid row with the gemstone image (minmax(0, .9fr)),
       so its real width is often much narrower than the viewport — sizing
       off `vw` was the root cause of "rare" clipping at several widths. */
    container-type: inline-size;
}

h1, h2, p { text-wrap: pretty; }

.hero h1 {
    max-width: none;
    margin: 0;
    color: var(--minerals-off-white);
    font-family: var(--minerals-serif);
    /* 13cqi keeps "Something rare" (the longer of the two lines) within
       roughly 85% of the container's own width at any size, so nowrap
       below can never need to clip or overflow. */
    font-size: clamp(2rem, 13cqi, 6rem);
    font-weight: 400;
    letter-spacing: -.048em;
    line-height: .98;
}

.hero h1 .line {
    display: block;
    white-space: nowrap;
}

.hero h1 em,
.promise h2 em {
    font-weight: 400;
}

.hero-intro {
    margin: 34px 0 26px;
    color: rgba(237, 240, 243, .85);
    font-family: var(--minerals-serif);
    font-size: clamp(19px, 1.75vw, 24px);
    line-height: 1.35;
}

.waitlist-wrap { width: min(100%, 500px); }

.waitlist-form {
    display: flex;
    min-height: 58px;
    padding: 3px;
    border: 1px solid rgba(232, 217, 160, .42);
    border-radius: 999px;
    background: rgba(26, 5, 48, .44);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    backdrop-filter: blur(7px);
}

.waitlist-form:focus-within {
    border-color: var(--minerals-gold-pale);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .15);
}

.waitlist-form input[type="email"] {
    min-width: 0;
    flex: 1;
    padding: 0 22px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--minerals-off-white);
    font-size: 14px;
}

.waitlist-form input::placeholder { color: rgba(237, 240, 243, .55); }

.waitlist-form button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 170px;
    padding: 0 25px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(155deg,
        #8a6a1f 0%,
        #d9b64f 22%,
        #f6e7b0 42%,
        #eccd6e 58%,
        #c89a34 78%,
        #90701f 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .5),
        inset 0 -2px 3px rgba(0, 0, 0, .25),
        0 2px 8px rgba(0, 0, 0, .3);
    color: #2a1a08;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    transition: background-position 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.waitlist-form button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(75deg,
        transparent 0%,
        rgba(255, 255, 255, .55) 50%,
        transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.waitlist-form button:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        inset 0 -2px 3px rgba(0, 0, 0, .25),
        0 4px 12px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: no-preference) {
    .waitlist-form button:hover::after { animation: shimmer-sweep 750ms ease-out; }
}

@keyframes shimmer-sweep {
    from { left: -60%; }
    to   { left: 140%; }
}

.waitlist-form button:disabled { cursor: wait; opacity: .72; }
.waitlist-form button:disabled:hover::after { animation: none; }

.waitlist-note {
    margin: 15px 0 0 3px;
    color: rgba(237, 240, 243, .72);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.form-error {
    min-height: 20px;
    margin: 8px 0 -4px 20px;
    color: #f2d7e8;
    font-size: 12px;
}

.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }

.waitlist-success {
    align-items: center;
    gap: 14px;
    width: min(100%, 500px);
    min-height: 62px;
    padding: 12px 18px;
    border: 1px solid rgba(232, 217, 160, .5);
    background: rgba(26, 5, 48, .62);
    color: rgba(237, 240, 243, .86);
    font-size: 14px;
    backdrop-filter: blur(7px);
}

.waitlist-success:not([hidden]) { display: flex; }
.waitlist-success strong { color: var(--minerals-off-white); font-weight: 600; }
.success-mark { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border: 1px solid var(--minerals-gold); border-radius: 50%; color: var(--minerals-gold-pale); }

.hero-still-life {
    position: absolute;
    z-index: 2;
    top: 34px;
    right: -36px;
    width: 61%;
    height: 610px;
    pointer-events: none;
}

.hero-piece { position: absolute; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(5, 0, 12, .52)); }
.hero-emerald-amethyst { z-index: 2; top: -10px; right: 0; width: 62%; }
.hero-gold { z-index: 1; top: 160px; right: 20px; width: 58%; transform: rotate(-7deg); }
.hero-topaz { z-index: 3; top: 210px; left: 0; width: 43%; }
.hero-mixed { z-index: 4; right: 10px; bottom: 18px; width: 69%; }

.js .hero-piece { opacity: 0; will-change: transform, opacity; }

/* Belt-and-suspenders for the settled state: JS adds this class once each
   piece's fall animation finishes (see minerals-coming-soon.js). It locks
   the final visible state with a normal, non-animation rule at higher
   specificity than the base opacity:0 above, so the piece stays visible
   even if the browser's animation-fill-mode "forwards" hold gets undone
   by a later repaint — it no longer depends on the animation at all once
   this class lands. */
.js .hero-piece.is-settled {
    opacity: 1;
    /* Fully detaching the keyframe animation (not just overriding its
       values) is what actually stops the brief "replay" some browsers
       showed: leaving `animation` attached but visually overridden left
       the still-finished animation open to being re-evaluated whenever a
       repaint touched the element, which read as it firing a second time. */
    animation: none;
}
.js .hero-gold.is-settled { transform: rotate(-7deg); }
.js .hero-emerald-amethyst.is-settled,
.js .hero-topaz.is-settled,
.js .hero-mixed.is-settled { transform: none; }
/* Heaviest piece (the gold bar) lands first, as if placed into the vault;
   the lighter stones settle around it. Each falls straight down from above
   and lands with a small single overshoot-and-settle, rather than sliding
   in diagonally — reads as weight and gravity, not a generic fade-in. */
.js .hero-gold { animation: settle-gold 900ms cubic-bezier(.16, 1, .3, 1) 120ms forwards; }
.js .hero-emerald-amethyst { animation: settle-ea 850ms cubic-bezier(.16, 1, .3, 1) 250ms forwards; }
.js .hero-topaz { animation: settle-topaz 780ms cubic-bezier(.16, 1, .3, 1) 380ms forwards; }
.js .hero-mixed { animation: settle-mixed 840ms cubic-bezier(.16, 1, .3, 1) 510ms forwards; }

/* The base JS state is opacity:0. Keep opacity:1 at the final keyframe as
   well as the landing keyframe; otherwise the browser interpolates the last
   30% back toward the hidden base state before animationend adds is-settled. */
@keyframes settle-gold {
    0%   { opacity: 0; transform: translateY(-100px) rotate(-7deg) scale(.9); }
    70%  { opacity: 1; transform: translateY(8px) rotate(-7deg) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) rotate(-7deg) scale(1); }
}
@keyframes settle-ea {
    0%   { opacity: 0; transform: translateY(-80px) scale(.92); }
    70%  { opacity: 1; transform: translateY(6px) scale(1.015); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes settle-topaz {
    0%   { opacity: 0; transform: translateY(-90px) scale(.92); }
    70%  { opacity: 1; transform: translateY(7px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes settle-mixed {
    0%   { opacity: 0; transform: translateY(-70px) scale(.93); }
    70%  { opacity: 1; transform: translateY(5px) scale(1.015); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-glint { position: absolute; z-index: 8; width: 28px; height: 28px; }
.hero-glint::before, .hero-glint::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--minerals-gold-pale); transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--minerals-gold); }
.hero-glint::before { width: 1px; height: 100%; }
.hero-glint::after { width: 100%; height: 1px; }
.glint-one { top: 156px; left: 28%; transform: scale(.7); }
.glint-two { right: 8%; bottom: 32px; transform: scale(.45); }

.collection {
    display: grid;
    grid-template-columns: 1.38fr .96fr 1.56fr;
    grid-template-rows: 315px 285px;
    grid-template-areas:
        "topaz bullion bullion"
        "topaz how nature";
    gap: 16px;
    /* Generous top padding on purpose — the gem cluster bleeds down out of
       the hero and rests in this space above the cards, so the overlap
       reads as one deliberate composition instead of the two sections
       crowding each other. */
    padding-block: 170px 38px;
}

.feature-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(232, 217, 160, .27);
    border-radius: 14px;
    background: rgba(26, 5, 48, .7);
}

.feature-card > img { width: 100%; height: 100%; object-fit: cover; }
.feature-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 35px rgba(17, 2, 28, .08); }

.topaz-card { grid-area: topaz; background: var(--minerals-lilac); }
.topaz-card > img { object-position: 52% center; }
.bullion-card { grid-area: bullion; }
.bullion-card > img { object-position: center; }
.vault-card { grid-area: how; background: rgba(107, 30, 116, .92); }
.nature-card { grid-area: nature; background: var(--minerals-lilac); }
.nature-card > img { object-position: center; }

.card-copy {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: 34px 36px;
    color: var(--minerals-off-white);
}

.card-copy-dark { color: #2d1640; }
.card-copy h2 {
    margin: 0;
    font-family: var(--minerals-serif);
    font-size: clamp(34px, 3.2vw, 49px);
    font-weight: 400;
    letter-spacing: -.036em;
    line-height: .98;
}

.card-copy > p:last-child {
    margin: 18px 0 0;
    color: rgba(237, 240, 243, .69);
    font-size: 15px;
    line-height: 1.45;
}

.card-copy-dark > p:last-child { color: rgba(45, 22, 64, .74); }
.topaz-card .card-copy { right: 0; bottom: auto; padding-right: 22px; }
.bullion-card .card-copy { width: 50%; }
.bullion-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(22, 4, 37, .82) 0%, rgba(22, 4, 37, .32) 48%, transparent 70%); }
.vault-card .card-copy { inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.vault-card .card-copy h2 { max-width: 100%; font-size: 45px; }
.vault-card .card-copy > p:last-child { max-width: 19ch; margin-top: auto; }
.nature-card .card-copy { padding: 30px 30px; }
.nature-card .card-copy h2 { font-size: 36px; }
.nature-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(110deg, rgba(245, 238, 247, .97) 0%, rgba(245, 238, 247, .82) 42%, transparent 70%); }

.promise {
    display: grid;
    grid-template-columns: 255px 1fr 255px;
    align-items: center;
    gap: 50px;
    padding-block: 42px 58px;
}

.promise-image { aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid rgba(232, 217, 160, .34); border-radius: 12px; }
.promise-image img { width: 100%; height: 100%; object-fit: cover; }
.promise-copy { text-align: center; }

.promise-rule { width: 100%; height: 1px; background: var(--minerals-gold); }

.promise h2 {
    margin: 38px 0 0;
    font-family: var(--minerals-serif);
    font-size: clamp(52px, 6vw, 78px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1;
}

.promise-copy > p:last-child {
    margin: 24px 0 0;
    color: rgba(237, 240, 243, .86);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .27em;
    text-transform: uppercase;
}

.questions {
    border-top: 1px solid rgba(232, 217, 160, .18);
    background: rgba(20, 4, 35, .76);
    backdrop-filter: blur(4px);
}

.questions-inner { padding-block: 52px 48px; }

.questions h2 {
    margin: 0 0 32px;
    text-align: center;
    font-family: var(--minerals-serif);
    font-size: clamp(42px, 4.6vw, 58px);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
}

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 75px; margin: 0; }
.faq-grid div { min-width: 0; }
.faq-item { padding-top: 17px; border-top: 1px solid rgba(232, 217, 160, .2); }
.faq-item:nth-child(-n + 2) { padding-top: 0; border-top: 0; }
.faq-grid dt { margin: 0; font-family: var(--minerals-serif); font-size: 19px; }
.faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 0; border: 0; background: transparent; color: var(--minerals-off-white); cursor: pointer; font: inherit; text-align: left; }
.faq-trigger > span:first-child { max-width: 52ch; }
.faq-trigger:focus-visible { outline: 2px solid var(--minerals-gold-pale); outline-offset: 6px; }
.faq-icon { position: relative; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid rgba(232, 217, 160, .72); border-radius: 50%; }
.faq-icon i { position: absolute; top: 50%; left: 50%; width: 8px; height: 1px; background: var(--minerals-gold-pale); transform: translate(-50%, -50%); transition: transform 220ms cubic-bezier(.23, 1, .32, 1), opacity 180ms ease; }
.faq-icon i:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon i:last-child { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(.5); }
.faq-answer-wrap { margin: 0; }
.no-js .faq-answer-wrap { display: block; }
.js .faq-answer-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 230ms cubic-bezier(.23, 1, .32, 1), opacity 180ms ease; }
.js .faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; opacity: 1; }
.faq-answer { min-height: 0; overflow: hidden; }
.faq-answer p { margin: 12px 48px 0 0; color: rgba(237, 240, 243, .55); font-family: var(--minerals-serif); font-size: 16px; font-style: italic; }

.minerals-footer { position: relative; border-top: 1px solid var(--minerals-gold); background: rgba(14, 2, 25, .74); }
.minerals-footer::after { content: ""; position: absolute; right: -100px; bottom: -190px; width: 430px; height: 430px; border-radius: 46% 54% 44% 56%; background: url("/images/minerals/amethyst-macro.webp") center / cover; opacity: .09; transform: rotate(19deg); }
.footer-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; min-height: 168px; padding-block: 32px 26px; }
.footer-inner .brand-logo { height: 27px; }
.footer-inner .brand-suffix { font-size: 20px; }
.footer-tagline, .vault-product, .copyright { font-size: 10px; letter-spacing: .19em; text-transform: uppercase; }
.footer-tagline { margin: 13px 0 17px; color: rgba(237, 240, 243, .56); }
.copyright { margin: 0; color: rgba(237, 240, 243, .68); letter-spacing: .08em; text-transform: none; }
.vault-product { margin: 0; color: rgba(237, 240, 243, .7); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
    .hero { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); }
    .hero-still-life { right: -90px; width: 66%; transform: scale(.91); transform-origin: right center; }
    .promise { grid-template-columns: 210px 1fr 210px; gap: 28px; }
}

@media (max-width: 820px) {
    .site-shell { width: min(100% - 40px, 680px); }
    .site-topbar { padding-top: 20px; }
    .brand-logo { height: 25px; }
    .brand-suffix { font-size: 24px; }
    .hero { display: block; min-height: 950px; padding-block: 70px 30px; }
    .hero-copy { padding-bottom: 0; }
    .hero-still-life { top: 430px; right: -10%; width: 112%; height: 540px; transform: none; }
    .collection { grid-template-columns: 1fr 1fr; grid-template-rows: 600px 310px 300px; grid-template-areas: "topaz topaz" "bullion bullion" "how nature"; }
    .topaz-card .card-copy { padding-right: 36px; }
    .promise { grid-template-columns: 150px 1fr 150px; gap: 24px; }
    .promise h2 { margin-top: 28px; }
}

@media (max-width: 600px) {
    .site-shell { width: calc(100% - 32px); }
    .brand-logo { height: 21px; }
    .brand-suffix { font-size: 20px; }
    .hero { min-height: 900px; padding-top: 62px; }
    .hero-intro { max-width: 330px; margin-top: 25px; font-size: 18px; }
    .waitlist-form { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px; border-radius: 14px; }
    .waitlist-form input[type="email"] { width: 100%; min-height: 49px; }
    .waitlist-form button { width: 100%; min-height: 50px; }
    .waitlist-note { margin-left: 2px; }
    .hero-still-life { top: 475px; right: -23%; width: 140%; height: 400px; }
    .hero-emerald-amethyst { top: -10px; width: 60%; }
    .hero-gold { top: 102px; right: 20px; width: 58%; }
    .hero-topaz { top: 135px; width: 43%; }
    .hero-mixed { bottom: 15px; width: 68%; }
    .collection { grid-template-columns: 1fr; grid-template-rows: 560px 290px 230px 280px; grid-template-areas: "topaz" "bullion" "how" "nature"; gap: 12px; }
    .feature-card { border-radius: 11px; }
    .card-copy { padding: 27px 25px; }
    .card-copy h2 { font-size: 39px; }
    .bullion-card .card-copy { width: 70%; }
    .bullion-card::before { background: linear-gradient(90deg, rgba(22, 4, 37, .88), rgba(22, 4, 37, .22) 74%, transparent); }
    .nature-card .card-copy { padding: 24px; }
    .nature-card .card-copy h2 { font-size: 34px; }
    .promise { grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 38px 46px; }
    .promise-copy { grid-column: 1 / -1; grid-row: 1; padding-bottom: 12px; }
    .promise h2 { margin-top: 22px; font-size: 58px; }
    .promise-amethyst { grid-column: 1; grid-row: 2; }
    .promise-emerald { grid-column: 2; grid-row: 2; }
    .questions-inner { padding-block: 44px 41px; }
    .questions h2 { margin-bottom: 31px; font-size: 44px; }
    .faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .faq-grid dt { font-size: 18px; }
    .footer-inner { display: block; min-height: 195px; padding-top: 30px; }
    .vault-product { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .hero-piece, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
    .waitlist-form button, .faq-icon i, .js .faq-answer-wrap { transition: none; }
}
