/* Theme Base CSS */
main.site-main {
	display: block;
}

.mhsb-default-content {
	max-width: var(--mhsb-content-width, 72rem);
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
}

.mhsb-page-title {
	margin: 0 0 1.25rem;
	line-height: 1.1;
}

.mhsb-entry-content > *:first-child {
	margin-top: 0;
}

.mhsb-entry-content > *:last-child {
	margin-bottom: 0;
}


/* Global CSS */
/* ═══════════════════════════════════════════════════════════════════════════
   PIXELHAFEN DIGITAL — GLOBAL CSS
   Variables, reset, typography, layout, utilities, shared animations,
   cursor, grain texture, and site-wide floating elements.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FONT LOADING ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── FOUT PREVENTION ─────────────────────────────────────────────────────
   Headings start invisible and fade in once .ph-fonts-loaded is on <html>.
   Fallback: 3s max wait (handled by global.js).
   ──────────────────────────────────────────────────────────────────────── */
html:not(.ph-fonts-loaded) h1,
html:not(.ph-fonts-loaded) h2,
html:not(.ph-fonts-loaded) h3,
html:not(.ph-fonts-loaded) h4,
html:not(.ph-fonts-loaded) h5,
html:not(.ph-fonts-loaded) h6,
html:not(.ph-fonts-loaded) .ph-heading,
html:not(.ph-fonts-loaded) .ph-nav-links a,
html:not(.ph-fonts-loaded) .ph-nav-cta,
html:not(.ph-fonts-loaded) .ph-btn,
html:not(.ph-fonts-loaded) .ph-btn-supreme {
    opacity: 0;
}
.ph-fonts-loaded h1,
.ph-fonts-loaded h2,
.ph-fonts-loaded h3,
.ph-fonts-loaded h4,
.ph-fonts-loaded h5,
.ph-fonts-loaded h6,
.ph-fonts-loaded .ph-heading,
.ph-fonts-loaded .ph-nav-links a,
.ph-fonts-loaded .ph-nav-cta,
.ph-fonts-loaded .ph-btn,
.ph-fonts-loaded .ph-btn-supreme {
    transition: opacity 0.3s ease;
}


/* ══════════════════════════════════════════════════════════════════════════
   BASE DOCUMENT
   ══════════════════════════════════════════════════════════════════════════ */

html,
body {
    background-color: #0d0d0d;
    background: #0d0d0d;
    color: #f2f2f2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --ph-bg:               #0d0d0d;
    --ph-bg-deep:          #050505;
    --ph-bg-surface:       #111111;
    --ph-bg-elevated:      #161616;
    --ph-bg-card:          rgba(255,255,255,0.02);
    --ph-bg-card-hover:    rgba(255,255,255,0.045);

    --ph-text:             #f2f2f2;
    --ph-text-secondary:   rgba(255,255,255,0.82);
    --ph-text-muted:       rgba(255,255,255,0.5);
    --ph-text-faint:       rgba(255,255,255,0.3);

    --ph-gold:             #BF953F;
    --ph-gold-light:       #FCF6BA;
    --ph-gold-mid:         #B38728;
    --ph-gold-dark:        #AA771C;
    --ph-gold-glow-sm:     rgba(191,149,63,0.35);
    --ph-gold-glow-md:     rgba(191,149,63,0.2);
    --ph-gold-glow-lg:     rgba(191,149,63,0.1);
    --ph-gold-gradient:    linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --ph-gold-gradient-h:  linear-gradient(90deg, #BF953F 0%, #FCF6BA 30%, #B38728 60%, #FBF5B7 80%, #AA771C 100%);
    --ph-section-space:    clamp(56px, 6vw, 78px);
    --ph-premium-surface:  linear-gradient(180deg, rgba(20,20,28,0.92) 0%, rgba(12,12,16,0.98) 100%);
    --ph-premium-surface-soft: linear-gradient(180deg, rgba(14,14,18,0.74) 0%, rgba(6,6,8,0.92) 100%);
    --ph-premium-outline:  rgba(191,149,63,0.22);

    --ph-border:           rgba(255,255,255,0.06);
    --ph-border-subtle:    rgba(255,255,255,0.04);
    --ph-border-gold:      rgba(191,149,63,0.2);
    --ph-border-gold-mid:  rgba(191,149,63,0.4);
    --ph-border-gold-strong: rgba(191,149,63,0.6);

    --ph-font-heading:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ph-font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ph-font-number:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    --ph-text-xs:    0.75rem;
    --ph-text-sm:    0.875rem;
    --ph-text-base:  1rem;
    --ph-text-lg:    1.125rem;
    --ph-text-xl:    1.25rem;
    --ph-text-2xl:   clamp(1.33rem, 2.4vw, 1.66rem);
    --ph-text-3xl:   clamp(1.66rem, 3.3vw, 2.14rem);
    --ph-text-4xl:   clamp(1.9rem, 4.3vw, 2.85rem);
    --ph-text-5xl:   clamp(2.38rem, 5.7vw, 3.8rem);
    --ph-text-6xl:   clamp(2.85rem, 7.6vw, 4.75rem);
    --ph-text-hero:  clamp(2.85rem, 9.5vw, 5.23rem);

    --ph-space-1: 4px;    --ph-space-2: 8px;
    --ph-space-3: 12px;   --ph-space-4: 16px;
    --ph-space-5: 20px;   --ph-space-6: 24px;
    --ph-space-8: 32px;   --ph-space-10: 40px;
    --ph-space-12: 48px;  --ph-space-16: 64px;
    --ph-space-20: 80px;  --ph-space-24: 96px;

    --ph-container:    1140px;
    --ph-container-sm: 860px;
    --ph-gutter:       clamp(18px, 4vw, 40px);

    --ph-radius-sm:   6px;
    --ph-radius-md:   10px;
    --ph-radius-lg:   14px;
    --ph-radius-xl:   20px;
    --ph-radius-pill:  9999px;

    --ph-ease:         cubic-bezier(0.19, 1, 0.22, 1);
    --ph-ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}


/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL RESET
   ══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    outline-offset: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

::selection {
    background: rgba(191,149,63,0.3);
    color: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: #BF953F; }
ul, ol { list-style: none; margin: 0; padding: 0; }


/* ══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6,
.ph-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #f2f2f2;
    margin: 0 0 24px 0;
    text-transform: none;
    background-color: transparent;
}

h1, .ph-h1 { font-size: var(--ph-text-hero); }
h2, .ph-h2 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); }
h3, .ph-h3 { font-size: var(--ph-text-5xl); }
h4, .ph-h4 { font-size: var(--ph-text-4xl); }
h5, .ph-h5 { font-size: var(--ph-text-3xl); }
h6, .ph-h6 { font-size: var(--ph-text-2xl); }

p,
.ph-body {
    color: rgba(255,255,255,0.82);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 24px 0;
    font-weight: 400;
    background-color: transparent;
}

.ph-lead {
    font-size: var(--ph-text-xl);
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
}

.ph-small {
    font-size: var(--ph-text-sm);
    color: rgba(255,255,255,0.5);
}

.ph-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #BF953F;
    margin-bottom: 24px;
    position: relative;
    background-color: transparent;
}
.ph-eyebrow::before {
    display: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   GOLD TEXT EFFECTS
   ══════════════════════════════════════════════════════════════════════════ */

.ph-gold-text,
.text-golden-gradient {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.ph-gold-glow {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    filter: drop-shadow(0 0 12px rgba(191,149,63,0.35)) drop-shadow(0 0 25px rgba(191,149,63,0.2)) drop-shadow(0 0 50px rgba(191,149,63,0.1));
}

.ph-gold-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #BF953F, #FCF6BA, #B38728);
    border: none;
    opacity: 0.5;
}
.ph-gold-divider-wide { width: 120px; }


/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */

.ph-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
}
.ph-container-sm {
    max-width: 860px;
    margin: 0 auto;
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
}

.ph-section {
    padding-top: var(--ph-section-space);
    padding-bottom: var(--ph-section-space);
    position: relative;
    background-color: #0d0d0d;
}
.ph-section-sm {
    padding-top: calc(var(--ph-section-space) * 0.7);
    padding-bottom: calc(var(--ph-section-space) * 0.7);
}
.ph-section-dark {
    background-color: #050505;
}


/* ══════════════════════════════════════════════════════════════════════════
   SEPARATORS
   ══════════════════════════════════════════════════════════════════════════ */

.ph-separator {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
    border: none; margin: 0;
}
.ph-separator-gold {
    background: linear-gradient(to right, transparent, rgba(191,149,63,0.15), transparent);
}


/* ══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL (Intersection Observer)
   ══════════════════════════════════════════════════════════════════════════ */

[data-ph-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
[data-ph-animate="up"]    { transform: translateY(35px); }
[data-ph-animate="fade"]  { transform: none; }
[data-ph-animate="left"]  { transform: translateX(-40px); }
[data-ph-animate="right"] { transform: translateX(40px); }
[data-ph-animate="scale"] { transform: scale(0.92); }

[data-ph-animate].ph-visible {
    opacity: 1;
    transform: none;
}

[data-ph-delay="1"] { transition-delay: 0.08s; }
[data-ph-delay="2"] { transition-delay: 0.16s; }
[data-ph-delay="3"] { transition-delay: 0.24s; }
[data-ph-delay="4"] { transition-delay: 0.32s; }
[data-ph-delay="5"] { transition-delay: 0.4s; }
[data-ph-delay="6"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    [data-ph-animate] { opacity: 1; transform: none; transition: none; }
}


/* ══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */

.ph-text-center { text-align: center; }
.ph-text-left   { text-align: left; }
.ph-mx-auto     { margin-left: auto; margin-right: auto; }
.ph-max-w-sm    { max-width: 520px; }
.ph-max-w-md    { max-width: 680px; }
.ph-max-w-lg    { max-width: 800px; }
.ph-mb-0  { margin-bottom: 0; }
.ph-mb-4  { margin-bottom: 16px; }
.ph-mb-6  { margin-bottom: 24px; }
.ph-mb-8  { margin-bottom: 32px; }
.ph-mb-10 { margin-bottom: 40px; }
.ph-mb-12 { margin-bottom: 48px; }
.ph-mb-16 { margin-bottom: 64px; }
.ph-mt-8  { margin-top: 32px; }
.ph-mt-10 { margin-top: 40px; }
.ph-mt-16 { margin-top: 64px; }


/* ══════════════════════════════════════════════════════════════════════════
   COMPACT SECTION PADDING
   ══════════════════════════════════════════════════════════════════════════ */

.ph-section-compact {
    padding-top: var(--ph-section-space);
    padding-bottom: var(--ph-section-space);
}


/* ══════════════════════════════════════════════════════════════════════════
   FULL-BLEED WRAPPER
   ══════════════════════════════════════════════════════════════════════════ */

.ph-fullbleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.ph-relative { position: relative; }


/* ══════════════════════════════════════════════════════════════════════════
   FONT-NUMBER VARIANT NUMERIC
   ══════════════════════════════════════════════════════════════════════════ */

#variant-counter,
.ph-step-marker-number,
.ph-usp-number,
.ph-stat-number,
a[href^="tel:"] {
    font-family: var(--ph-font-number);
    font-variant-numeric: lining-nums tabular-nums;
}


/* ══════════════════════════════════════════════════════════════════════════
   GRAIN TEXTURE
   ══════════════════════════════════════════════════════════════════════════ */

body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 99990;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}


/* ══════════════════════════════════════════════════════════════════════════
   ICON ANIMATION KEYFRAMES (shared)
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes ph-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes ph-pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(191,149,63,0.15), 0 0 30px rgba(191,149,63,0.05); }
    50%      { box-shadow: 0 0 20px rgba(191,149,63,0.3), 0 0 50px rgba(191,149,63,0.1); }
}

@keyframes ph-solution-ripple {
    0% {
        transform: scale(0.88);
        opacity: 0.96;
    }
    58% {
        opacity: 0.42;
    }
    100% {
        transform: scale(1.42);
        opacity: 0;
    }
}

@keyframes ph-icon-spin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(8deg) scale(1.08); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes ph-shimmer-sweep {
    0%   { left: -80%; }
    100% { left: 130%; }
}

@keyframes ph-breathe {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════════════
   ALL KEYFRAME ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes ph-btn-breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(191,149,63,0.1), 0 0 50px rgba(191,149,63,0.04); }
    50%      { box-shadow: 0 0 30px rgba(191,149,63,0.18), 0 0 60px rgba(191,149,63,0.07); }
}

@keyframes ph-cursor-pulse {
    0%, 100% { box-shadow: 0 0 22px rgba(191,149,63,1), 0 0 55px rgba(191,149,63,0.7), 0 0 110px rgba(191,149,63,0.3); }
    50%      { box-shadow: 0 0 32px rgba(191,149,63,1), 0 0 75px rgba(191,149,63,0.75), 0 0 140px rgba(191,149,63,0.35); }
}

@keyframes ph-marker-pulse {
    0%, 100% {
        box-shadow: 0 0 44px rgba(191,149,63,0.46), 0 0 108px rgba(191,149,63,0.22), 0 0 180px rgba(191,149,63,0.12);
    }
    50% {
        box-shadow: 0 0 68px rgba(191,149,63,0.78), 0 0 154px rgba(191,149,63,0.42), 0 0 230px rgba(191,149,63,0.2);
    }
}

@keyframes ph-ring-expand {
    0% { transform: scale(0.88); opacity: 0.22; }
    48% { opacity: 1; }
    100% { transform: scale(1.34); opacity: 0; }
}

@keyframes ph-typing-cursor {
    0%, 100% { border-color: #BF953F; }
    50%      { border-color: transparent; }
}

@keyframes ph-stat-border-glow {
    0%, 100% { border-color: rgba(191,149,63,0.2); box-shadow: 0 0 0 rgba(191,149,63,0); }
    50%      { border-color: rgba(191,149,63,0.45); box-shadow: 0 0 25px rgba(191,149,63,0.06); }
}

/* ph-marquee-scroll keyframes injected by JS with pixel values for Safari compat */

@keyframes ph-trust-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes ph-gold-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ph-card-entrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ph-glow-rotate {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    50%  { filter: hue-rotate(8deg) brightness(1.1); }
    100% { filter: hue-rotate(0deg) brightness(1); }
}

@keyframes ph-nav-slide-down {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes ph-footer-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ph-typewrite-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM GLOBAL MICRO-ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */

/* Gold gradient line that draws in on scroll */
.ph-gold-divider[data-ph-animate].ph-visible {
    animation: phDrawLine 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes phDrawLine {
    from { width: 0; opacity: 0; }
    to   { width: 60px; opacity: 0.5; }
}

/* Section headers get extra entrance drama */
.ph-section h2[data-ph-animate="up"].ph-visible,
.ph-section-compact h2[data-ph-animate="up"].ph-visible {
    animation: ph-heading-entrance 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes ph-heading-entrance {
    from {
        opacity: 0;
        transform: translateY(50px);
        letter-spacing: 0.1em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: -0.02em;
    }
}

/* Parallax depth layers for section backgrounds */
.ph-section-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}
.ph-section-glow-tl {
    top: -10%; left: -5%;
    width: 40%; height: 50%;
    background: radial-gradient(circle, rgba(191,149,63,0.04) 0%, transparent 60%);
}
.ph-section-glow-br {
    bottom: -10%; right: -5%;
    width: 40%; height: 50%;
    background: radial-gradient(circle, rgba(191,149,63,0.03) 0%, transparent 60%);
}

/* Smooth appearance for all ph-visible elements */
.ph-visible {
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}


/* ══════════════════════════════════════════════════════════════════════════
   CUSTOM CURSOR (Gold Glow)
   ══════════════════════════════════════════════════════════════════════════ */

.ph-cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 7px; height: 7px;
    background: #BF953F;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 18px rgba(191,149,63,0.95), 0 0 42px rgba(191,149,63,0.58), 0 0 82px rgba(191,149,63,0.22);
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1), height 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
    will-change: transform;
    animation: ph-cursor-pulse 2.5s ease-in-out infinite;
}
.ph-cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 760px; height: 760px;
    background: radial-gradient(circle, rgba(191,149,63,0.32) 0%, rgba(191,149,63,0.18) 15%, rgba(191,149,63,0.09) 30%, rgba(191,149,63,0.03) 50%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99996;
    filter: blur(5px);
    opacity: 1;
    will-change: transform;
    transition: width 0.6s cubic-bezier(0.19,1,0.22,1), height 0.6s cubic-bezier(0.19,1,0.22,1), opacity 0.4s;
}
.ph-cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 48px; height: 48px;
    border: 1px solid rgba(191,149,63,0.24);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1), height 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s;
    will-change: transform;
    background: transparent;
    box-shadow: 0 0 16px rgba(191,149,63,0.08);
}
.ph-cursor-dot.ph-hover {
    width: 14px; height: 14px;
    box-shadow: 0 0 24px rgba(191,149,63,1), 0 0 58px rgba(191,149,63,0.55), 0 0 112px rgba(191,149,63,0.22);
    animation: none;
}
.ph-cursor-ring.ph-hover {
    width: 64px; height: 64px;
    border-color: rgba(191,149,63,0.48);
    box-shadow: 0 0 18px rgba(191,149,63,0.12);
}
.ph-cursor-glow.ph-hover {
    width: 980px; height: 980px;
    opacity: 1;
}

.ph-fav-ribbon-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99995;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
}

body.ph-fav-ribbon-active .ph-fav-ribbon-canvas {
    opacity: 1;
}
/* Native cursor hidden ONLY after JS adds .ph-cursor-active to body */
@media (pointer: fine) and (min-width: 1024px) {
    body.ph-cursor-active { cursor: none; }
    body.ph-cursor-active a,
    body.ph-cursor-active button,
    body.ph-cursor-active input,
    body.ph-cursor-active select,
    body.ph-cursor-active textarea,
    body.ph-cursor-active label,
    body.ph-cursor-active img { cursor: none; }
}
@media (pointer: coarse), (max-width: 1023px) {
    .ph-cursor-dot, .ph-cursor-glow, .ph-cursor-ring, .ph-fav-ribbon-canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-cursor-dot, .ph-cursor-glow, .ph-cursor-ring, .ph-fav-ribbon-canvas { display: none; }
    body, a, button { cursor: auto; }
}


/* ══════════════════════════════════════════════════════════════════════════
   SITE-WIDE FLOATING ELEMENTS
   Ambient particles, cubes, and favicon floaters.
   ══════════════════════════════════════════════════════════════════════════ */

/* Ambient floating particles (far edges, very subtle) */
.ph-site-particles {
    position: fixed !important;
    inset: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 9988 !important;
}
.ph-site-particle-el {
    position: absolute !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: clamp(9px, 0.75vw, 11px) !important;
    font-weight: 700 !important;
    color: rgba(191, 149, 63, 0.65) !important;
    pointer-events: none !important;
    will-change: transform, opacity !important;
    z-index: 9988 !important;
    white-space: nowrap !important;
    letter-spacing: -0.03em !important;
    text-shadow: 0 0 8px rgba(191, 149, 63, 0.22) !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
@media (max-width: 768px) {
    .ph-site-particles { display: none !important; }
}

/* Floating code blurbs (premium glass rectangles) */
.ph-site-cubes {
    position: fixed;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 9989;
}
.ph-site-code-blurb {
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(10px, 1vw, 14px);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(201, 165, 75, 0.7);
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    pointer-events: none;
    will-change: transform, opacity;
    white-space: nowrap;
    transition: opacity 0.4s ease;
    z-index: 9989;
    text-shadow: 0 0 10px rgba(191, 149, 63, 0.3), 0 0 20px rgba(191, 149, 63, 0.12);
}
.ph-site-code-blurb:nth-child(even) {
    color: rgba(218, 195, 110, 0.65);
}
@media (max-width: 900px) {
    .ph-site-code-blurb { opacity: 0.15; }
}
@media (max-width: 560px) {
    .ph-site-cubes { display: none; }
}

/* Floating favicon icons */
.ph-site-floaters {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 9990;
}
.ph-site-float-el {
    position: absolute;
    width: clamp(28px, 3vw, 44px);
    aspect-ratio: 1;
    pointer-events: none;
    will-change: transform, opacity, filter;
    transition:
        opacity 0.3s ease,
        filter 0.45s ease;
    z-index: 9990;
}
.ph-site-float-el img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 0.55;
    filter: drop-shadow(0 0 16px rgba(191,149,63,0.35));
    pointer-events: none;
}
.ph-site-float-el.is-near img {
    opacity: 0.82;
    filter:
        drop-shadow(0 0 18px rgba(191,149,63,0.42))
        drop-shadow(0 0 30px rgba(191,149,63,0.16));
}
.ph-site-float-el.is-colliding img {
    opacity: 0.96;
    filter:
        drop-shadow(0 0 20px rgba(87,170,255,0.46))
        drop-shadow(0 0 44px rgba(87,170,255,0.26));
}


/* ══════════════════════════════════════════════════════════════════════════
   MOBILE UX POLISH
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --ph-section-space: clamp(44px, 5vw, 60px);
    }

    .ph-section,
    .ph-section-compact {
        overflow-x: clip;
    }

    .ph-lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .ph-eyebrow {
        font-size: 10px;
        letter-spacing: 0.2em;
        margin-bottom: 18px;
    }

    h2, .ph-h2 {
        font-size: clamp(1.8rem, 6.5vw, 2.8rem);
        margin-bottom: 18px;
    }

    .ph-fullbleed {
        overflow-x: clip;
    }
}

@media (max-width: 480px) {
    .ph-container,
    .ph-container-sm {
        padding-left: 20px;
        padding-right: 20px;
    }

    h2, .ph-h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    p, .ph-body {
        font-size: 0.92rem;
        line-height: 1.7;
    }
}

/* ── WHATSAPP STICKY BUTTON ──────────────────────────────────────────────── */
#ph-whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0d1117 0%, #111827 100%);
    border: 1.5px solid rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9900;
    color: #25d366;
    text-decoration: none;
    box-shadow:
        0 0 0 0 rgba(37, 211, 102, 0.35),
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: ph-wa-pulse 2.8s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}
#ph-whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(37, 211, 102, 0.35);
    border-bottom-color: rgba(37, 211, 102, 0.15);
    animation: ph-wa-ring-spin 3.5s linear infinite;
    pointer-events: none;
}
#ph-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    border-color: rgba(37, 211, 102, 0.75);
    box-shadow:
        0 0 0 8px rgba(37, 211, 102, 0.08),
        0 14px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(37, 211, 102, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #25d366;
}
#ph-whatsapp-btn svg {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
}
@keyframes ph-wa-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    50% {
        box-shadow:
            0 0 0 12px rgba(37, 211, 102, 0),
            0 8px 32px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
}
@keyframes ph-wa-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (max-width: 480px) {
    #ph-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    #ph-whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   COOKIE CONSENT BAR  (slim footer bar — non-blocking)
   z-index 9800 keeps custom cursor (99999) always on top
   ══════════════════════════════════════════════════════════════════════════ */

#ph-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9800;
    background: rgba(10, 10, 13, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(191, 149, 63, 0.15);
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4), 0 -1px 0 rgba(191, 149, 63, 0.06);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    font-family: 'Inter', -apple-system, sans-serif;
}

#ph-cookie-bar.ph-cookie-bar-visible {
    transform: translateY(0);
}

/* ── MAIN ROW ─────────────────────────────────────────────────────────── */

.ph-cookie-bar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(18px, 4vw, 40px);
    max-width: 1140px;
    margin: 0 auto;
}

.ph-cookie-bar-text {
    display: flex;
    align-items: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.ph-cookie-bar-link {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    text-decoration-color: rgba(191, 149, 63, 0.5);
    text-underline-offset: 2px;
    white-space: nowrap;
    font-weight: 600;
}

.ph-cookie-bar-link:hover {
    text-decoration-color: #bf953f;
    filter: brightness(1.1);
}

/* ── BUTTONS ──────────────────────────────────────────────────────────── */

.ph-cookie-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ph-cookie-bar-btn {
    padding: 7px 18px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    transition:
        transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ph-cookie-bar-btn:hover {
    transform: translateY(-1px);
}

.ph-cookie-bar-settings {
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ph-cookie-bar-settings:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.ph-cookie-bar-reject {
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-cookie-bar-reject:hover {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.16);
}

.ph-cookie-bar-accept {
    color: #0d0d0d;
    -webkit-text-fill-color: #0d0d0d;
    background: linear-gradient(110deg, #BF953F 0%, #FCF6BA 22%, #B38728 44%, #FBF5B7 66%, #AA771C 88%, #BF953F 100%);
    background-size: 200% 100%;
    animation: ph-gold-flow 6s ease-in-out infinite;
    box-shadow: 0 2px 16px rgba(191, 149, 63, 0.2);
}

.ph-cookie-bar-accept:hover {
    box-shadow: 0 4px 24px rgba(191, 149, 63, 0.32);
    filter: brightness(1.06);
}

.ph-cookie-bar-save {
    color: #bf953f;
    background: transparent;
    border: 1px solid rgba(191, 149, 63, 0.3);
    margin-left: auto;
}

.ph-cookie-bar-save:hover {
    border-color: rgba(191, 149, 63, 0.55);
    box-shadow: 0 0 16px rgba(191, 149, 63, 0.08);
}

/* ── EXPANDABLE DETAIL PANEL ──────────────────────────────────────────── */

.ph-cookie-bar-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    border-top: 0px solid rgba(191, 149, 63, 0.1);
}

.ph-cookie-bar-detail.ph-cookie-detail-open {
    max-height: 120px;
    border-top-width: 1px;
}

.ph-cookie-bar-detail > * {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(18px, 4vw, 40px);
    max-width: 1140px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.ph-cookie-bar-toggles {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.ph-cookie-bar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.ph-cookie-bar-toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
}

.ph-cookie-bar-toggle input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 36px;
    height: 20px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    outline: none;
}

.ph-cookie-bar-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), background 0.3s ease;
}

.ph-cookie-bar-toggle input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #bf953f 0%, #b38728 100%);
    border-color: rgba(191, 149, 63, 0.5);
}

.ph-cookie-bar-toggle input[type="checkbox"]:checked::after {
    transform: translateX(16px);
    background: #0d0d0d;
}

.ph-cookie-bar-toggle input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 680px) {
    .ph-cookie-bar-main {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 18px;
    }

    .ph-cookie-bar-text {
        font-size: 0.75rem;
        width: 100%;
    }

    .ph-cookie-bar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .ph-cookie-bar-btn {
        padding: 6px 14px;
        font-size: 0.74rem;
    }

    .ph-cookie-bar-detail.ph-cookie-detail-open {
        max-height: 200px;
    }

    .ph-cookie-bar-toggles {
        gap: 12px;
    }
}