/* ==========================================================================
   TAUKEMAS – luxury layer: shimmer, spotlight cards, ticker, calculator, ambient effects
   Loaded after site.css, so rules here refine or override it.
   ========================================================================== */

/* ---------- Film-grain texture over the whole page ---------- */
body::before {
    content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05; 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: absolute; left: 0; top: 0; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
    background: var(--gold-grad); box-shadow: 0 0 12px rgba(212, 175, 55, .8); z-index: 3;
}

/* ---------- Shimmering gold headlines ---------- */
.hero h1, .page-hero h1 {
    background: linear-gradient(105deg, #b8902a 0%, #d4af37 28%, #fff6d6 44%, #d4af37 60%, #b8902a 100%);
    background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 8s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- Ambient hero effects ---------- */
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after {
    content: ""; position: absolute; right: 6%; top: 18%; width: 540px; height: 540px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(212, 175, 55, .22), transparent 65%); filter: blur(30px);
    animation: orb 14s ease-in-out infinite alternate;
}
@keyframes orb { to { transform: translate3d(-70px, 50px, 0) scale(1.18); } }

/* ---------- Gold button shine ---------- */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .7s;
}
.btn-gold:hover::after { left: 140%; }

/* ---------- Spotlight cards (glow follows the pointer; tilt is added by JS) ---------- */
.feature-card, .team-card, .purity-card, .value-card, .news-card, .rate-card { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.feature-card::after, .team-card::after, .purity-card::after, .value-card::after, .news-card::after, .rate-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 2; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(246, 226, 122, .15), transparent 60%);
}
.feature-card:hover::after, .team-card:hover::after, .purity-card:hover::after, .value-card:hover::after, .news-card:hover::after, .rate-card:hover::after { opacity: 1; }

/* ---------- Section heading ornament ---------- */
.section-head h2::after {
    content: ""; display: block; width: 90px; height: 1px; margin: 20px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Image reveal ---------- */
@keyframes imgReveal {
    from { clip-path: inset(0 0 100% 0 round 18px); scale: 1.12; }
    to { clip-path: inset(0 0 0 0 round 18px); scale: 1; }
}
.js .split-media.in img { animation: imgReveal 1.3s cubic-bezier(.2, .7, .2, 1) backwards; }

/* ---------- Cursor glow (desktop only, added by JS) ---------- */
.cursor-glow {
    position: fixed; left: 0; top: 0; width: 500px; height: 500px; border-radius: 50%; pointer-events: none; z-index: 5;
    background: radial-gradient(circle, rgba(212, 175, 55, .10), transparent 65%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
}
.cursor-glow.on { opacity: 1; }

/* ---------- Live indicator ---------- */
.live-dot {
    display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; flex-shrink: 0;
    background: #4cd964; box-shadow: 0 0 0 0 rgba(76, 217, 100, .6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(76, 217, 100, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0); } }
.gold-status.is-stale .live-dot { background: #ffb74d; animation: none; }
.gold-status.is-off .live-dot { background: #ff6b5e; animation: none; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { color: var(--gold-light); text-shadow: 0 0 18px rgba(246, 226, 122, .95); } 100% { text-shadow: 0 0 0 transparent; } }

/* ---------- Price ticker ---------- */
.ticker { position: relative; overflow: hidden; background: linear-gradient(90deg, #0d0a05, #171108, #0d0a05); border-block: 1px solid var(--line); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; font-size: .88rem; white-space: nowrap; color: var(--muted); }
.tick b { padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; font: 700 .78rem var(--font-body); letter-spacing: .12em; color: var(--gold); }
.tick-price { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tick small { color: var(--muted); }
.tick-label { color: var(--gold-light); letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; font-weight: 600; }
.tick-label .live-dot { margin-right: 0; }
.tick-sep { padding: 0 14px; color: var(--gold); opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Gold rates + calculator ---------- */
.gold-tools {
    background:
        radial-gradient(800px 420px at 12% 15%, rgba(212, 175, 55, .13), transparent 70%),
        radial-gradient(700px 420px at 92% 95%, rgba(212, 175, 55, .09), transparent 70%),
        var(--bg);
}
.calc-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: stretch; }
.rates-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start; }
.rate-card {
    padding: 28px 14px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--surface-2), var(--surface)); transition: transform .35s, border-color .35s, box-shadow .35s;
}
.rate-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.rate-purity { display: block; font: 700 1.6rem var(--font-head); color: var(--gold-light); }
.rate-purity small { font: 500 .78rem var(--font-body); color: var(--muted); letter-spacing: .1em; }
.rate-price { display: block; margin: 12px 0 2px; font: 600 1.25rem var(--font-body); font-variant-numeric: tabular-nums; color: var(--text); }
.rate-unit { font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.rate-meta { grid-column: 1 / -1; padding: 20px 24px; border: 1px dashed var(--line); border-radius: 14px; }
.gold-status { display: flex; align-items: center; margin: 0 0 8px; color: var(--text); font-size: .88rem; }
.gold-spot { margin: 0; font-size: .82rem; }
.gold-spot b { display: block; margin-top: 2px; color: var(--gold-light); font-weight: 600; }

/* ---------- Screenshot-Accurate Gold Prices Showcase ---------- */
.rates-hero-header { text-align: center; margin-bottom: 34px; }
.rates-hero-title {
    font-family: var(--font-head); font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500;
    color: var(--text); margin: 0 0 10px; letter-spacing: -0.01em;
}
.rates-hero-sub {
    font-size: clamp(0.88rem, 1.2vw, 1.05rem); color: var(--muted); max-width: 620px; margin: 0 auto;
}

.rates-showcase-container { max-width: 920px; margin: 0 auto 48px; }
.rates-showcase-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px;
}
.rates-column { display: flex; flex-direction: column; }
.rates-pill-header {
    display: inline-flex; align-items: center; width: fit-content; padding: 12px 28px; margin-bottom: 14px;
    background-image: linear-gradient(180deg, #31291E 0%, #0C0C0C 100%);
    border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.rates-pill-text {
    font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500;
    color: #C5A059; letter-spacing: 0.01em;
}
.rates-classic-card {
    border: 1px solid #D4AF37; border-radius: 16px; padding: 24px 28px;
    background: rgba(12, 12, 12, 0.65); backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.rates-classic-card:hover {
    transform: translateY(-3px); box-shadow: 0 12px 36px rgba(212, 175, 55, 0.15); border-color: #f3cf65;
}
.rates-classic-list {
    margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.rates-classic-line {
    font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500;
    color: #ffffff; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.65;
    white-space: nowrap; display: flex; align-items: baseline; gap: 8px;
}
.rates-classic-line .rate-label { color: #ffffff; }
.rates-classic-line .price-val {
    color: #ffffff; font-weight: 500; font-variant-numeric: tabular-nums;
}

/* CTA & Sync Meta below cards */
.rates-cta-row {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 16px 24px; border-radius: 16px; border: 1px dashed rgba(212, 175, 55, 0.35);
    background: rgba(16, 13, 9, 0.7);
}
.btn-portal-showcase {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-weight: 700;
    letter-spacing: 0.1em; font-size: 0.88rem; text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35); white-space: nowrap;
}
.btn-portal-showcase svg { transition: transform 0.25s ease; }
.btn-portal-showcase:hover svg { transform: translateX(4px); }
.rates-meta-info {
    text-align: right; display: flex; flex-direction: column; gap: 4px;
}

/* Calculator Companion Wrapper */
.rates-calc-wrapper {
    max-width: 860px; margin: 0 auto;
}

/* Calculator Panel & Mode Switch */
.calc-panel {
    padding: 36px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow);
    background: linear-gradient(160deg, rgba(29, 24, 16, .9), rgba(16, 13, 9, .9)); backdrop-filter: blur(10px);
}
.calc-head { margin-bottom: 18px; }
.calc-head h3 { margin: 0 0 6px; font: 700 1.45rem var(--font-head); color: var(--gold-light); }
.calc-sub { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.calc-mode-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: 14px;
    background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 22px;
}
.calc-mode-opt { position: relative; cursor: pointer; }
.calc-mode-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.calc-mode-opt span {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px;
    border-radius: 10px; font-size: 0.82rem; font-weight: 600; color: var(--muted); transition: all 0.25s ease; user-select: none;
}
.calc-mode-opt:hover span { color: var(--text); }
.calc-mode-opt input:checked + span { background: var(--gold-grad); color: #1a1405; font-weight: 700; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28); }
.calc-mode-opt input:checked[value="buyback"] + span { background: linear-gradient(135deg, #4ade80, #16a34a); color: #052e16; }

.calc-field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.calc-field label, .calc-field legend {
    display: block; padding: 0; margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.calc-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calc-label-row label { margin-bottom: 0; }
.calc-weight-quick { display: flex; gap: 5px; }
.btn-quick-weight {
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--gold-light);
    font-size: 0.72rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.btn-quick-weight:hover, .btn-quick-weight.is-active { background: rgba(212, 175, 55, 0.25); border-color: var(--gold); color: #fff; }
.calc-weight { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
#calcWeight {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, .3); background: rgba(0, 0, 0, .4);
    color: var(--text); font: 600 1.05rem var(--font-body); transition: border-color .25s, box-shadow .25s;
}
#calcWeight:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .15); }
#calcRange {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; cursor: pointer;
    background: linear-gradient(90deg, var(--gold) var(--fill, 2%), rgba(255, 255, 255, .12) var(--fill, 2%));
}
#calcRange::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 0;
    background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(212, 175, 55, .2), 0 4px 12px rgba(0, 0, 0, .5);
}
#calcRange::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(212, 175, 55, .2); }
#calcRange:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; }

.purity-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.purity-options.five-tiers { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.purity-opt { position: relative; cursor: pointer; }
.purity-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.purity-opt span {
    display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px;
    font: 700 1.15rem var(--font-head); color: var(--text); transition: all .3s;
}
.purity-opt small { font: 500 .7rem var(--font-body); letter-spacing: .12em; color: var(--muted); }
.purity-opt:hover span { border-color: var(--gold); }
.purity-opt input:checked + span { background: var(--gold-grad); color: #1a1405; border-color: transparent; box-shadow: 0 8px 22px rgba(212, 175, 55, .3); }
.purity-opt input:checked + span small { color: rgba(26, 20, 5, .7); }
.purity-opt input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.calc-result { margin-bottom: 18px; padding: 22px; text-align: center; border-radius: 16px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.calc-result-label { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.calc-result strong {
    display: block; margin: 6px 0; font: 700 clamp(2rem, 4.5vw, 2.8rem) var(--font-head); font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff6d6, #d4af37 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-result.is-buyback strong {
    background: linear-gradient(180deg, #dcfce7, #4ade80 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-note { display: block; min-height: 1.4em; font-size: .8rem; color: var(--muted); }
.calc-disclaimer { margin: 0; font-size: .76rem; line-height: 1.55; }
.calc-disclaimer a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Team Leadership Portraits ---------- */
.team-card {
    padding: 24px 20px 28px; border-radius: 20px;
    background: linear-gradient(160deg, rgba(29, 24, 16, 0.85), rgba(15, 12, 8, 0.95));
    border: 1px solid var(--line);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
}
.team-card:hover {
    transform: translateY(-8px); border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}
.team-photo-wrap {
    width: 100%; max-width: 260px; aspect-ratio: 5 / 6; margin: 0 auto 18px;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, #2b2216 0%, #120e0a 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex; align-items: flex-end; justify-content: center;
}
.team-photo {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.team-card:hover .team-photo { transform: scale(1.04); }
.team-card h3 {
    margin: 10px 0 4px; font: 700 1.35rem var(--font-head);
    color: var(--text); letter-spacing: 0.02em;
}
.team-card p {
    margin: 0; color: var(--gold-light); font-size: 0.92rem;
    letter-spacing: 0.05em; font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .calc-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
    .rates-showcase-grid { grid-template-columns: 1fr; gap: 22px; }
    .rates-cta-row { flex-direction: column; align-items: stretch; text-align: center; }
    .rates-meta-info { text-align: center; }
    .rates-classic-card { padding: 20px 20px; }
    .rates-pill-header { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
    .purity-options.five-tiers { grid-template-columns: repeat(3, 1fr); }
    .calc-panel { padding: 26px 18px; }
    .calc-weight { grid-template-columns: 1fr; }
    .calc-label-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tick { padding: 14px 16px; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ticker-track, .hero h1, .page-hero h1, .hero::after, .live-dot, .flash, .btn-gold::after { animation: none; transition: none; }
    .js .split-media.in img { animation: none; }
    .cursor-glow { display: none; }
}
