/* ==============================================
   holos.works — Victorian Ornate Stylesheet
   Colors: #F4EDE0, #5A4A3A, #3A5A3A, #A06040,
           #6A7A50, #2A2018, #5A6A7A, #C4A060
   Fonts: Dancing Script, Playfair Display, Crimson Pro
   ============================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 400;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.85;
    color: #2A2018;
    background-color: #F4EDE0;
    overflow-x: hidden;
}

/* --- Typography --- */
.logotype-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 72px;
    fill: #2A2018;
}

.script-heading {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 56px);
    color: #2A2018;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 44px);
    color: #2A2018;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Hero Section --- */
#hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F4EDE0;
    position: relative;
    padding: 2rem;
}

.hero-frame {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ornamental-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ornamental-frame .frame-outer {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 2;
}

.ornamental-frame .frame-inner {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 0.75;
}

.ornamental-frame .corner-ornament {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ornamental-frame .scrollwork {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.ornamental-frame .acanthus {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
}

/* All animated SVG paths start invisible */
.ornamental-frame .frame-outer,
.ornamental-frame .frame-inner,
.ornamental-frame .corner-ornament,
.ornamental-frame .scrollwork,
.ornamental-frame .acanthus {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
}

/* --- Hero Botanicals --- */
.hero-botanicals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.botanical {
    position: absolute;
}

.botanical-oak-left {
    top: 12%;
    left: 8%;
}

.botanical-thistle-right {
    top: 8%;
    right: 8%;
}

.botanical-morning-glory {
    bottom: 12%;
    left: 12%;
}

.botanical-path {
    fill: none;
    stroke: #3A5A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.botanical-stem {
    fill: none;
    stroke: #3A5A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

/* --- Hero Content --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.logotype {
    margin-bottom: 1.5rem;
}

.logotype-svg {
    width: clamp(280px, 50vw, 600px);
    height: auto;
    overflow: visible;
}

.logotype-text {
    stroke: #2A2018;
    stroke-width: 0.5;
    fill: #2A2018;
    paint-order: stroke fill;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #5A4A3A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
}

/* Pulse attention glow on logotype */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 0px #C4A060);
    }
    50% {
        filter: drop-shadow(0 0 20px #C4A060);
    }
}

.logotype-svg.animate-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* --- Portfolio Section --- */
#portfolio {
    padding: 6rem 4% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: flex;
    gap: 2%;
    align-items: stretch;
}

.portfolio-item {
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
}

.portfolio-hero {
    flex: 0 0 50%;
}

.portfolio-second {
    flex: 0 0 30%;
}

.portfolio-third {
    flex: 0 0 18%;
}

.portfolio-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: linear-gradient(145deg, #F4EDE0 0%, #ebe3d4 100%);
    overflow: hidden;
}

.item-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.item-frame .frame-outer {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 1.5;
}

.item-frame .frame-inner {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 0.5;
}

.item-frame .corner-ornament {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.portfolio-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 350px;
}

.category-icon {
    color: #6A7A50;
    margin-bottom: 1rem;
}

.portfolio-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 28px);
    color: #2A2018;
    margin-bottom: 0.75rem;
}

.portfolio-content p {
    font-family: 'Crimson Pro', Georgia, serif;
    color: #5A4A3A;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
}

/* --- Philosophy Section --- */
#philosophy {
    padding: 6rem 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.philosophy-layout {
    display: flex;
    gap: 5%;
}

.philosophy-text {
    flex: 0 0 65%;
}

.philosophy-text .script-heading {
    margin-bottom: 2rem;
    text-align: left;
}

.philosophy-body {
    font-family: 'Crimson Pro', Georgia, serif;
    color: #2A2018;
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.philosophy-body em {
    color: #5A4A3A;
    font-style: italic;
}

.philosophy-botanicals {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding-top: 2rem;
}

.side-botanical {
    opacity: 0;
}

.side-botanical .botanical-path {
    fill: none;
    stroke: #3A5A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.side-botanical .botanical-stem {
    fill: none;
    stroke: #3A5A3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

/* --- Testimonials Section --- */
#testimonials {
    padding: 6rem 4%;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    position: relative;
    background: #F4EDE0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    border: 1px solid #5A4A3A;
    padding: 2.5rem 2rem 2rem;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 2px 3px 12px rgba(42, 32, 24, 0.08);
}

.testimonial-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 4px 6px 20px rgba(42, 32, 24, 0.14);
}

.testimonial-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(15px, 1.3vw, 19px);
    line-height: 1.7;
    color: #2A2018;
    margin-bottom: 1.5rem;
}

.testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-author {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2A2018;
}

.testimonial-role {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.85rem;
    color: #5A4A3A;
}

/* Botanical stamps */
.botanical-stamp {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.testimonial-card:hover .botanical-stamp {
    opacity: 1;
    transform: scale(1.1);
}

.stamp-border {
    fill: none;
    stroke: #A06040;
    stroke-width: 1.5;
}

.stamp-border-inner {
    fill: none;
    stroke: #A06040;
    stroke-width: 0.75;
}

.stamp-motif {
    fill: none;
    stroke: #A06040;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Footer --- */
#site-footer {
    position: relative;
    background-color: #2A2018;
    padding-top: 0;
    margin-top: 4rem;
    overflow: hidden;
}

.footer-ornament {
    width: 100%;
    overflow: hidden;
    background-color: #F4EDE0;
    padding-bottom: 0;
}

.footer-border-svg {
    display: block;
    width: 100%;
    height: 40px;
}

.footer-ornament-path {
    fill: none;
    stroke: #5A4A3A;
    stroke-width: 1.5;
}

.mountain-landscape {
    width: 100%;
    position: relative;
}

.mountain-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 120px;
}

.mountain-bg {
    fill: #5A6A7A;
}

.mountain-trees {
    fill: #3A5A3A;
    stroke: none;
}

.footer-content {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-studio {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(22px, 3vw, 36px);
    color: #F4EDE0;
    margin-bottom: 0.25rem;
}

.footer-address {
    font-family: 'Crimson Pro', Georgia, serif;
    font-variant: small-caps;
    font-size: 0.9rem;
    color: #C4A060;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #F4EDE0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #C4A060;
}

.footer-copy {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.8rem;
    color: #6A7A50;
}

/* --- Scroll Reveal Animations --- */
.portfolio-item.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.side-botanical.revealed {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.hero-tagline.revealed {
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* SVG draw animation helper */
.svg-drawn {
    stroke-dashoffset: 0 !important;
    transition: stroke-dashoffset 2s ease;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .portfolio-grid {
        flex-wrap: wrap;
    }
    .portfolio-hero {
        flex: 0 0 100%;
    }
    .portfolio-second {
        flex: 0 0 48%;
    }
    .portfolio-third {
        flex: 0 0 48%;
    }
    .philosophy-layout {
        flex-direction: column;
    }
    .philosophy-botanicals {
        flex-direction: row;
        justify-content: center;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .portfolio-second,
    .portfolio-third {
        flex: 0 0 100%;
    }
    .hero-botanicals .botanical {
        transform: scale(0.7);
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    #portfolio,
    #philosophy,
    #testimonials {
        padding: 4rem 5%;
    }
}
