/* ============================================
   HHASSL.com - Victorian Ornate Design
   ============================================ */

/* CSS Custom Properties */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A0F0A;
    --surface-parchment: #F5ECD7;
    --accent-gold: #D4AF37;
    --accent-brass: #C9A84C;
    --accent-garnet: #6B1D2A;
    --text-ivory: #F0E6D3;
    --text-ink: #1C1410;
    --muted-bronze: #8B7355;
    --highlight-amber: #E8C76A;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-ivory);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-ivory);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.06em;
}

/* Drop Cap */
.drop-cap {
    float: left;
    font-family: 'Cinzel Decorative', 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 0.15em;
    padding-top: 0.05em;
    color: var(--accent-gold);
    opacity: 0;
    transition: opacity 600ms ease;
}

.drop-cap.visible {
    opacity: 1;
}

/* Small Caps */
.small-caps {
    font-variant: small-caps;
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   Title Cartouche - Full Viewport
   ============================================ */
.cartouche-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cartouche-frame {
    position: relative;
    width: min(90vw, 800px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cartouche-svg {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* SVG frame strokes */
.frame-outer {
    fill: none;
    stroke: var(--accent-brass);
    stroke-width: 2;
    stroke-dasharray: 2320;
    stroke-dashoffset: 2320;
    animation: drawFrame 2.5s ease-out forwards;
}

.frame-inner {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 1;
    stroke-dasharray: 2160;
    stroke-dashoffset: 2160;
    animation: drawFrame 2.5s 0.3s ease-out forwards;
}

.corner-flourish {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawFrame 2s 0.5s ease-out forwards;
}

.scroll-accent {
    fill: none;
    stroke: var(--accent-brass);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: drawFrame 1.8s 0.8s ease-out forwards;
}

.side-ornament {
    fill: none;
    stroke: var(--accent-brass);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawFrame 1.5s 1s ease-out forwards;
}

.rosette {
    fill: var(--accent-gold);
    opacity: 0;
    animation: fadeIn 0.5s 2s ease-out forwards;
}

.inner-dot {
    fill: var(--accent-brass);
    opacity: 0;
    animation: fadeIn 0.5s 2.2s ease-out forwards;
}

@keyframes drawFrame {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Cartouche Title */
.cartouche-title {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0;
    animation: titleFadeIn 800ms 2.5s ease-out forwards;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cartouche-monogram {
    display: block;
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--accent-gold);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.cartouche-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--text-ivory);
    letter-spacing: 0.15em;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.cartouche-subtitle {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted-bronze);
    letter-spacing: 0.4em;
    margin-top: 0.5rem;
    font-variant: small-caps;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 3.5s ease-out forwards, bobScroll 2s 4s ease-in-out infinite;
}

@keyframes bobScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-arrow-svg {
    display: block;
}

/* ============================================
   Radial Navigation
   ============================================ */
.radial-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.radial-nav.visible {
    opacity: 1;
}

.monogram-trigger {
    width: 48px;
    height: 48px;
    border: 1px solid var(--accent-brass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(2px);
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 auto;
}

.monogram-trigger:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.monogram-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    user-select: none;
}

.radial-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.radial-nav.active .radial-menu {
    pointer-events: auto;
    opacity: 1;
}

.radial-link {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-ivory);
    font-family: 'Cormorant Garamond', serif;
    font-variant: small-caps;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(201, 168, 76, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: scale(0.5);
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.radial-nav.active .radial-link {
    opacity: 1;
    transform: scale(1);
}

.radial-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

.radial-link:hover .nav-icon path,
.radial-link:hover .nav-icon line,
.radial-link:hover .nav-icon circle {
    stroke: var(--accent-gold);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   Parallax Decorative Layer
   ============================================ */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.leaf-decoration,
.filigree-decoration {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.leaf-1 {
    width: 60px;
    top: 15%;
    left: 5%;
}

.leaf-2 {
    width: 50px;
    top: 35%;
    right: 6%;
}

.leaf-3 {
    width: 80px;
    top: 55%;
    left: 3%;
}

.leaf-4 {
    width: 55px;
    top: 75%;
    right: 4%;
}

.filigree-1 {
    width: 100px;
    top: 45%;
    left: 8%;
}

.parallax-layer.visible .leaf-decoration,
.parallax-layer.visible .filigree-decoration {
    opacity: 1;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-panel {
    position: relative;
    background: var(--surface-parchment);
    color: var(--text-ink);
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--accent-brass);
    border-radius: 2px;
    box-shadow:
        0 0 0 4px var(--bg-primary),
        0 0 0 5px rgba(201, 168, 76, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.section-panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 1px;
    pointer-events: none;
}

/* Gaslight glow behind headings */
.gaslight-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section-heading {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-ink);
    margin-bottom: 1rem;
}

/* Gold Rule Divider */
.gold-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.rule-line {
    display: block;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-brass), transparent);
    transition: width 1s ease;
}

.rule-line.visible {
    width: 80px;
}

.fleuron {
    font-size: 1.2rem;
    color: var(--accent-gold);
    line-height: 1;
}

/* Section Body */
.section-body {
    position: relative;
    z-index: 1;
}

.section-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
    color: var(--text-ink);
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Fade Section Animation
   ============================================ */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Section Spacing
   ============================================ */
.content-section {
    padding-top: clamp(4rem, 8vw, 10rem);
    padding-bottom: clamp(2rem, 4vw, 4rem);
}

/* ============================================
   Decorative Dividers
   ============================================ */
.section-divider {
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) 0;
    position: relative;
    z-index: 1;
}

.divider-svg {
    width: min(400px, 80vw);
    height: auto;
}

.divider-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease;
}

.section-divider.visible .divider-path {
    stroke-dashoffset: 0;
}

/* ============================================
   Image Frame
   ============================================ */
.image-frame {
    margin: 2.5rem auto;
    max-width: 500px;
}

.frame-border {
    position: relative;
    border: 2px solid var(--accent-brass);
    padding: 6px;
    background: var(--bg-secondary);
}

.frame-border::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    pointer-events: none;
}

/* Corner Rosettes */
.frame-rosette {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 2;
}

.frame-rosette::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    background: var(--accent-gold);
}

.frame-rosette-tl { top: -6px; left: -6px; }
.frame-rosette-tr { top: -6px; right: -6px; }
.frame-rosette-bl { bottom: -6px; left: -6px; }
.frame-rosette-br { bottom: -6px; right: -6px; }

/* Vintage Filter */
.vintage-filter {
    filter: sepia(40%) contrast(1.1) brightness(0.9);
}

.image-placeholder {
    width: 100%;
    overflow: hidden;
}

.placeholder-art {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: var(--muted-bronze);
    font-size: 0.95rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

/* ============================================
   Gallery Grid
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.gallery-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-frame {
    overflow: hidden;
}

.gallery-art {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(40%) contrast(1.1) brightness(0.9);
    transition: filter 300ms ease;
}

.gallery-card:hover .gallery-art {
    filter: sepia(20%) contrast(1.15) brightness(0.95);
}

.card-title {
    padding: 1rem 1rem 0.3rem;
    font-size: 1rem;
    color: var(--accent-gold);
}

.card-description {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-ivory);
    line-height: 1.6;
}

/* Hover Lift */
.hover-lift {
    transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.25);
}

/* ============================================
   Pull Quote
   ============================================ */
.pull-quote-section {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6rem) 1.5rem;
    position: relative;
    z-index: 1;
}

.pull-quote-block {
    text-align: center;
    position: relative;
    padding: 2rem 3rem;
}

.quote-mark {
    font-family: 'Cinzel Decorative', serif;
    font-size: 6rem;
    color: var(--accent-gold);
    line-height: 1;
    position: absolute;
    opacity: 0.6;
}

.quote-open {
    top: -1rem;
    left: 0;
}

.quote-close {
    bottom: -2.5rem;
    right: 0;
}

.pull-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--text-ivory);
    line-height: 1.6;
    border: none;
    margin: 0;
    padding: 0;
}

.quote-attribution {
    display: block;
    margin-top: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-variant: small-caps;
    font-size: 1.1rem;
    color: var(--muted-bronze);
    letter-spacing: 0.15em;
    font-style: normal;
}

/* ============================================
   Curiosity Cards
   ============================================ */
.curiosity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.curiosity-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(26, 15, 10, 0.5);
}

.curiosity-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.curiosity-icon svg {
    width: 100%;
    height: 100%;
}

.curiosity-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.curiosity-text {
    font-size: 0.95rem;
    color: var(--text-ivory);
    line-height: 1.7;
}

/* ============================================
   Closing Ornament
   ============================================ */
.closing-ornament {
    text-align: center;
    margin-top: 3rem;
}

.closing-svg {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(3rem, 6vw, 6rem) 1.5rem clamp(2rem, 4vw, 4rem);
    background: var(--bg-primary);
}

.footer-ornament {
    margin-bottom: 1.5rem;
}

.footer-ornament svg {
    width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-variant: small-caps;
    font-size: 1rem;
    color: var(--muted-bronze);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: rgba(139, 115, 85, 0.6);
    letter-spacing: 0.05em;
    font-style: italic;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .cartouche-frame {
        width: 95vw;
    }

    .cartouche-title {
        padding: 3rem 1rem;
    }

    .gallery-grid,
    .curiosity-cards {
        grid-template-columns: 1fr;
    }

    .section-panel {
        padding: 2rem 1.5rem;
    }

    .pull-quote-block {
        padding: 2rem 1rem;
    }

    .quote-mark {
        font-size: 4rem;
    }

    .quote-open {
        top: -0.5rem;
        left: -0.5rem;
    }

    .quote-close {
        bottom: -1.5rem;
        right: -0.5rem;
    }

    .radial-link span {
        display: none;
    }

    .radial-link {
        padding: 0.4rem;
    }

    .leaf-decoration,
    .filigree-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .cartouche-heading {
        letter-spacing: 0.08em;
    }

    .image-frame {
        max-width: 100%;
    }

    .gaslight-glow {
        width: 250px;
        height: 250px;
    }
}
