/* Magdalenallure · redesign layer for inner pages (work, about, collaboration)
   Loaded after each page's inline <style>, so it only refines — colors stay original. */

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- header ---- */
.logo { font-family: 'Inter', sans-serif; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); }
.logo:hover { color: var(--text-charcoal); }
.header-content { padding-top: 1rem; padding-bottom: 1rem; }
nav a:last-child { border-radius: 2px; }

/* ---- never wider than the screen ---- */
html, body { max-width: 100%; overflow-x: hidden; }
main { overflow-x: hidden; overflow-x: clip; }
.concept-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.concept-img, .concept-meta { min-width: 0; }

/* ---- anchor targets clear the fixed header ---- */
#inquirySection { scroll-margin-top: 90px; }

/* ---- footer meta row ---- */
.footer-meta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ---- ambient gold glow behind the page intro ---- */
main::before {
    content: ''; position: absolute; top: -60px; right: -15vmax;
    width: 70vmax; height: 70vmax; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(197,160,89,0.12) 0%, rgba(197,160,89,0.03) 40%, transparent 70%);
}

/* ---- typography ---- */
h1 { letter-spacing: -0.01em; }
.section-label { display: flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; flex: 0 0 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
[style*="text-align: center"] > .section-label,
.text-center > .section-label { justify-content: center; }
[style*="text-align: center"] > .section-label::after,
.text-center > .section-label::after { content: ''; flex: 0 0 40px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---- buttons: solid gold primary, outline secondary ---- */
.cta-button, form .btn {
    background: var(--gold); color: var(--bg-cream); border-color: var(--gold);
    border-radius: 2px; font-weight: 700; padding: 1rem 2.4rem;
}
.cta-button:hover, form .btn:hover { background: var(--text-charcoal); border-color: var(--text-charcoal); color: var(--bg-cream); }
a.btn[href^="mailto"] { border-radius: 9999px; border-color: var(--glass-border); }
a.btn[href^="mailto"]:hover { background: rgba(197,160,89,0.08); color: var(--gold); border-color: var(--gold); box-shadow: none; }
.sticky-cta a { border-radius: 2px; font-weight: 700; }

/* ---- cards: sharper corners + gold top rule ---- */
.glass-card, .price-card, .standard-item, form, .fit-note { border-radius: 4px; }
.glass-card, .price-card { position: relative; }
.glass-card::after, .price-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.55; transition: opacity 0.3s ease;
}
.glass-card:hover::after, .price-card:hover::after { opacity: 1; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -15px rgba(197,160,89,0.25); }
.price-label { font-weight: 600; }
form { border-top: 2px solid var(--gold); }

/* gold diamond bullets (echo of the book cover ornament) */
.specialty-list li::before {
    content: ''; width: 6px; height: 6px; top: 50%; left: 0.25rem;
    transform: translateY(-50%) rotate(45deg); background: var(--gold); font-size: 0;
}

/* ---- work: floating project cards ---- */
.concept-grid { counter-reset: concept; perspective: 1400px; }
.concept-card { counter-increment: concept; }
.concept-img {
    border-radius: 4px; transform-style: preserve-3d;
    box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8);
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.concept-img::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.concept-img::after {
    content: '↗ View Live'; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem;
    font-size: 8px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
    background: linear-gradient(180deg, transparent 55%, rgba(26,5,8,0.8) 100%);
    transition: color 0.3s ease;
}
.concept-img:hover { transform: none; }
.concept-img::after { color: transparent; }
.concept-card:hover .concept-img::after { color: var(--gold); }
.concept-img img { transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.concept-card:hover .concept-img img { transform: scale(1.05); }
.concept-meta::before {
    content: counter(concept, decimal-leading-zero);
    display: block; margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.6rem; line-height: 1;
    color: var(--gold); opacity: 0.5;
}
.concept-title { font-size: 1.75rem; line-height: 1.15; }

/* ---- about: quote as a panel ---- */
blockquote { line-height: 1.4; }

/* ---- case studies ---- */
.case-hero .category { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.case-hero .category::before, .case-hero .category::after { content: ''; flex: 0 0 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.case-hero .category::after { transform: scaleX(-1); }
.case-hero h1 { letter-spacing: -0.01em; }
.container { counter-reset: chapter; }
.case-section { counter-increment: chapter; }
.case-section h2::before {
    content: counter(chapter, decimal-leading-zero);
    display: block; margin-bottom: 0.6rem;
    font-family: 'Inter', sans-serif; font-style: normal; font-size: 10px; font-weight: 600;
    letter-spacing: 0.35em; color: var(--gold); opacity: 0.6;
}
.case-section ul li::before {
    content: ''; width: 6px; height: 6px; top: 0.6rem; left: 0.25rem;
    transform: rotate(45deg); background: var(--gold); font-size: 0;
}
.tech-tag { border-radius: 2px; }
.project-visual { border-radius: 4px; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8); }
.project-visual::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-section .btn { background: var(--gold); color: var(--bg-cream); border-radius: 2px; font-weight: 700; }
.cta-section .btn:hover { background: var(--text-charcoal); border-color: var(--text-charcoal); color: var(--bg-cream); }

/* ---- chapter dots (built by redesign.js) ---- */
.chapter-dots {
    position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
    z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.chapter-dots a { position: relative; display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(253,251,247,0.25); transition: all 0.3s ease; }
.chapter-dots a::after {
    content: attr(data-label); position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 8px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--gold); white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.chapter-dots a:hover::after, .chapter-dots a.active::after { opacity: 1; }
.chapter-dots a.active { background: var(--gold); transform: scale(1.6); box-shadow: 0 0 10px rgba(197,160,89,0.6); }
.chapter-dots .line { width: 1px; height: 16px; background: rgba(253,251,247,0.15); }
@media (max-width: 1100px) { .chapter-dots { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .concept-img, .concept-img img { transition: none; }
}
