/* =============================================================
   Aurelian Gallery — Artist Personal Site Styles
   ============================================================= */

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

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: #0e0e0e;
}

/* ─── Film grain overlay ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #c4783c; border-radius: 2px; }

/* ─── Text selection ─── */
::selection {
    background-color: rgba(196, 120, 60, 0.25);
    color: #fcf9f8;
}

/* ─── Material Symbols ─── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* ─── Links ─── */
a { text-decoration: none; }

/* ─── Navigation — active link glow ─── */
nav a.border-b {
    text-shadow: 0 0 20px rgba(196, 120, 60, 0.4);
}

/* ─── Gallery card shadow ─── */
.gallery-card-shadow {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* ─── Gallery card hover ─── */
.gallery-card-hover {
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-card-hover:hover {
    transform: translateY(-5px);
}
.gallery-card-hover:hover img {
    filter: saturate(1.08) brightness(1.04);
}
.gallery-card-hover:hover .details-overlay {
    opacity: 1;
}

/* ─── Image warm vignette ─── */
.img-vignette {
    position: relative;
}
.img-vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(180, 60, 20, 0.08) 100%);
    pointer-events: none;
}

/* ─── Primary button glow pulse ─── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(196, 120, 60, 0.10); }
    50%       { box-shadow: 0 0 38px rgba(196, 120, 60, 0.28); }
}
.btn-glow {
    animation: glow-pulse 3.5s ease-in-out infinite;
}

/* ─── Section heading accent bar ─── */
.accent-bar {
    display: block;
    width: 36px;
    height: 1px;
    background: linear-gradient(to right, #c4783c, transparent);
    margin-bottom: 1rem;
}

/* ─── Ornamental divider ─── */
.ornamental-divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: rgba(196, 120, 60, 0.35);
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}
.ornamental-divider::before,
.ornamental-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196, 120, 60, 0.25), transparent);
}

/* ─── Artist quote ─── */
.artist-quote {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.65;
    color: rgba(252, 249, 248, 0.65);
    border-left: 1.5px solid #c4783c;
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* ─── Hero overlay fade ─── */
.hero-fade {
    background: linear-gradient(
        to right,
        #0e0e0e 28%,
        rgba(14, 14, 14, 0.72) 58%,
        transparent 100%
    );
}

/* ─── Hover underline slide ─── */
.underline-slide {
    position: relative;
}
.underline-slide::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c4783c;
    transition: width 0.3s ease;
}
.underline-slide:hover::after {
    width: 100%;
}

/* ─── Surface card glow on hover ─── */
.card-hover-glow {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.card-hover-glow:hover {
    box-shadow: 0 0 40px rgba(196, 120, 60, 0.07), 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* ─── Masonry grid (Collection page) ─── */
.masonry-grid {
    column-count: 1;
    column-gap: 2rem;
}
@media (min-width: 768px)  { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* ─── Inquiry form underline inputs ─── */
.form-input-underline {
    border: none;
    border-bottom: 1px solid rgba(196, 120, 60, 0.22);
    background: transparent !important;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    color: #fcf9f8;
    transition: border-color 0.3s ease;
}
.form-input-underline:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #c4783c;
}

/* ─── Footer italic signature ─── */
.footer-signature {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    opacity: 0.45;
    letter-spacing: 0.04em;
}

/* ─── Marquee ticker strip ─── */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 28s linear infinite;
    align-items: center;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* ─── Fade-in on scroll (add .visible via JS if needed) ─── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── Image grayscale-to-color reveal on hover ─── */
.img-reveal {
    filter: grayscale(0.25) brightness(0.9);
    transition: filter 0.6s ease;
}
.img-reveal:hover {
    filter: grayscale(0) brightness(1);
}

/* ─── Typewriter / monospace body text ─── */
.typewriter {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}
