/* ══════════════════════════════════════════
   RESET & TOKENS
══════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --ivory: #F7F5F1;
    --ivory-2: #EFECE7;
    --beige: #E8E3DD;
    --teal: #1E3C3A;
    --teal-mid: #274D4B;
    --teal-light: #325E5C;
    --gold: #C4A55F;
    --gold-pale: #E3CEAA;
    --gold-dim: rgba(196, 165, 95, 0.18);
    --charcoal: #1C1C1C;
    --ink: #2E2E2E;
    --gray: #666;
    --gray-lt: #999;
    --white: #FFFFFF;

    /* Typography */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', Helvetica, sans-serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;
    --space-2xl: 10rem;

    /* Layout */
    --max-w: 1380px;
    --gutter: clamp(1.5rem, 4vw, 4rem);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.6s;
    --dur-slow: 0.9s;
}

/* Dark mode overrides */
body.dark-mode {
    --ivory: #0F1410;
    --ivory-2: #161a15;
    --beige: #1B201A;
    --teal: #9ABFB8;
    --gold: #C4A55F;
    --charcoal: #EDE8E3;
    --ink: #D8D3CC;
    --gray: #9A9A9A;
    --white: #161a15;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--ivory);
    color: var(--charcoal);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: var(--sans);
}

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ══════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a100e;
    overflow: hidden;
}

.preloader.hidden { display: none; }

.preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 10;
}

.preloader-morph-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-progress {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-family: var(--serif);
    font-size: 0.85rem;
    color: var(--gold-pale);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    transition: opacity 0.5s ease;
}

.preloader-progress .bar {
    width: 100px;
    height: 1px;
    background: rgba(196, 165, 95, 0.15);
    margin: 0.75rem auto 0;
    position: relative;
    overflow: hidden;
}

.preloader-progress .bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--gold);
    transition: width 0.3s var(--ease-spring);
}

.morph-card {
    position: absolute;
    width: 70px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.45);
    will-change: transform;
    opacity: 0;
    transform: translate3d(0,0,0) rotate(0deg) scale(0.5);
}

.morph-card .card-front {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
}

.morph-card .card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.morph-card:nth-child(3n+1)::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(196,165,95,0.2);
    border-radius: 9px;
    pointer-events: none;
    z-index: 2;
}

.preloader-frame {
    position: absolute;
    z-index: 4;
    width: 56px;
    height: 56px;
    pointer-events: none;
    opacity: 0;
    animation: frameFade 0.8s ease 1.5s forwards;
}

.preloader-frame::before,
.preloader-frame::after {
    content: '';
    position: absolute;
    background: rgba(196,165,95,0.3);
}

.frame-tl { top: 2rem; left: 2rem; }
.frame-tl::before { top: 0; left: 0; width: 1px; height: 100%; }
.frame-tl::after  { top: 0; left: 0; width: 100%; height: 1px; }

.frame-tr { top: 2rem; right: 2rem; }
.frame-tr::before { top: 0; right: 0; width: 1px; height: 100%; }
.frame-tr::after  { top: 0; right: 0; width: 100%; height: 1px; }

.frame-bl { bottom: 2rem; left: 2rem; }
.frame-bl::before { bottom: 0; left: 0; width: 1px; height: 100%; }
.frame-bl::after  { bottom: 0; left: 0; width: 100%; height: 1px; }

.frame-br { bottom: 2rem; right: 2rem; }
.frame-br::before { bottom: 0; right: 0; width: 1px; height: 100%; }
.frame-br::after  { bottom: 0; right: 0; width: 100%; height: 1px; }

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

.preloader.exit {
    background: transparent;
    transition: background 1.2s var(--ease-spring) 0.2s;
}
.preloader.exit::before { opacity: 0; transition: opacity 0.6s ease; }
.preloader.exit .morph-card {
    transition: transform 1.3s cubic-bezier(0.76,0,0.24,1), opacity 0.9s ease !important;
}
.preloader.exit .preloader-frame { opacity: 0; transition: opacity 0.3s ease; }

body.preloader-active { overflow: hidden; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.75rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.5s var(--ease), backdrop-filter 0.5s, padding 0.4s;
}

body.preloader-active nav { opacity: 0; transform: translateY(-20px); }

body.site-revealed nav {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s var(--ease-spring) 0.1s,
        transform 0.9s var(--ease-spring) 0.1s,
        background 0.5s var(--ease), padding 0.4s;
}

nav.scrolled {
    background: rgba(247,245,241,0.93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.1rem var(--gutter);
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

body.dark-mode nav.scrolled { background: rgba(15,20,16,0.93); }

.nav-logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--white);
    transition: color 0.4s;
}

nav.scrolled .nav-logo { color: var(--charcoal); }

.nav-links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

nav.scrolled .nav-links a { color: var(--gray); }
.nav-links a:hover { color: var(--gold) !important; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.dark-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.35);
    width: 36px; height: 20px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s;
}

nav.scrolled .dark-toggle { border-color: rgba(0,0,0,0.18); }

.dark-toggle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    transition: transform 0.3s var(--ease), background 0.3s;
}

body.dark-mode .dark-toggle::after { transform: translateX(16px); background: var(--gold); }
nav.scrolled .dark-toggle::after { background: var(--gray); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px; height: 1.5px;
    background: var(--white);
    transition: background 0.3s, transform 0.3s;
    display: block;
}

nav.scrolled .hamburger span { background: var(--charcoal); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.4s, transform 0.4s var(--ease);
}

.mobile-menu.open { opacity: 1; pointer-events: all; transform: translateX(0); }

.mobile-menu a {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-style: italic;
    color: var(--ivory);
    letter-spacing: 0.04em;
    transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-close {
    position: absolute;
    top: 1.8rem; right: var(--gutter);
    background: none; border: none;
    color: rgba(255,255,255,0.55);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-close:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
    height: 100vh;
    min-height: 620px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter) 0 clamp(2rem, 10vw, 10rem);
}

body.preloader-active .hero-slides { transform: scale(1.1); filter: blur(6px) brightness(0.65); }

body.site-revealed .hero-slides {
    transform: scale(1);
    filter: blur(0) brightness(1);
    transition: transform 2.2s var(--ease-spring), filter 1.8s var(--ease-spring);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}

.hero-slide.active { opacity: 1; animation: kenBurns 10s var(--ease-out) forwards; }

@keyframes kenBurns {
    from { transform: scale(1.07); }
    to   { transform: scale(1); }
}

.hero-slides::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(155deg,
        rgba(10,18,16,0.62) 0%,
        rgba(10,18,16,0.28) 45%,
        rgba(196,165,95,0.06) 100%);
    z-index: 1;
}

.slide-1 { background-image: url("New folder/Hero.webp"); }

.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 720px; }

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-pale);
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: var(--gold);
    opacity: 0.7;
    flex-shrink: 0;
}

body.site-revealed .hero-eyebrow { animation: fadeUp 1s var(--ease) 0.3s forwards; }

.hero-heading {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

body.site-revealed .hero-heading { animation: fadeUp 1s var(--ease) 0.5s forwards; }
.hero-heading em { font-style: italic; color: var(--gold-pale); }

.hero-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.68);
    margin-bottom: 2.8rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(20px);
}

body.site-revealed .hero-sub { animation: fadeUp 1s var(--ease) 0.72s forwards; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(196,165,95,0.7);
    color: var(--gold-pale);
    padding: 0.9rem 2.25rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.4s, color 0.4s, border-color 0.4s, gap 0.3s;
    background: rgba(196,165,95,0.06);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

body.site-revealed .btn-ghost { animation: fadeUp 1s var(--ease) 0.95s forwards; }

.btn-ghost::after { content: '→'; font-size: 1rem; transition: transform 0.3s; }
.btn-ghost:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); gap: 1rem; }
.btn-ghost:hover::after { transform: translateX(3px); }

.hero-scroll {
    position: absolute;
    bottom: 2.5rem; left: var(--gutter);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.preloader-active .hero-scroll { opacity: 0; }
body.site-revealed .hero-scroll { opacity: 1; transition: opacity 1s ease 1.4s; }

.scroll-line {
    width: 48px; height: 1px;
    background: rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold);
    animation: scrollSlide 2s ease-in-out infinite 1.8s;
}

@keyframes scrollSlide {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee-strip {
    background: var(--teal);
    color: var(--gold-pale);
    padding: 1rem 0;
    overflow: hidden;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(196,165,95,0.1);
    border-bottom: 1px solid rgba(196,165,95,0.1);
}

body.preloader-active .marquee-strip { opacity: 0; transform: translateY(16px); }

body.site-revealed .marquee-strip {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.6s, transform 0.8s var(--ease-spring) 0.6s;
}

.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }

.marquee-track span { padding: 0 2.5rem; white-space: nowrap; }

.marquee-track span::before {
    content: '✦';
    margin-right: 2.5rem;
    opacity: 0.4;
    font-size: 0.65em;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   SHARED LAYOUT UTILITIES
══════════════════════════════════════════ */
.section-wrap { padding: var(--space-xl) var(--gutter); max-width: var(--max-w); margin: 0 auto; }
.section-wrap--full { padding: var(--space-xl) var(--gutter); }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.section-tag::before {
    content: '';
    display: block;
    width: 24px; height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.section-heading {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.18;
    color: var(--charcoal);
}

.section-heading em { font-style: italic; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.44s; }
.reveal-delay-5 { transition-delay: 0.56s; }

/* ══════════════════════════════════════════
   FEATURED ARTWORKS
══════════════════════════════════════════ */
#featured { background: var(--ivory-2); }

.featured-header { text-align: center; margin-bottom: 3.5rem; }
.featured-header .section-tag { justify-content: center; }
.featured-header .section-tag::before { display: none; }

.masonry-grid { columns: 3; column-gap: 1.25rem; max-width: var(--max-w); margin: 0 auto; }

.art-card {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 3px;
    display: block;
}

.art-card img { width: 100%; display: block; transition: transform 0.75s var(--ease); vertical-align: bottom; }
.art-card:hover img { transform: scale(1.04); }

.art-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,22,20,0.45) 0%, rgba(12,22,20,0.0) 35%);
    opacity: 1;
    transition: background 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.35rem;
}

.art-card:hover .art-card-overlay { background: linear-gradient(to top, rgba(12,22,20,0.7) 0%, rgba(12,22,20,0.05) 55%); }

.art-card-tag { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-pale); }

/* ══════════════════════════════════════════
   CRAFTS
══════════════════════════════════════════ */
#crafts { background: var(--beige); }

.crafts-header { text-align: center; margin-bottom: 3.5rem; }
.crafts-header .section-tag { justify-content: center; }
.crafts-header .section-tag::before { display: none; }

.crafts-intro { font-family: var(--serif); font-size: 1.05rem; color: var(--gray); max-width: 560px; margin: 1rem auto 0; text-align: center; line-height: 1.85; }

.crafts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: var(--max-w); margin: 0 auto; }

.craft-card {
    position: relative; overflow: hidden; border-radius: 3px; cursor: pointer;
    background: var(--ivory);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.craft-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.14); }

.craft-card img { width: 100%; display: block; transition: transform 0.7s var(--ease); vertical-align: bottom; }
.craft-card:hover img { transform: scale(1.05); }

.craft-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,20,18,0.45) 0%, rgba(10,20,18,0.0) 32%);
    opacity: 1;
    transition: background 0.45s;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.25rem 1.3rem;
}

.craft-card:hover .craft-card-overlay { background: linear-gradient(to top, rgba(10,20,18,0.72) 0%, rgba(10,20,18,0.12) 60%); }

.craft-card-tag { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-pale); }

.craft-card:nth-child(even)::after {
    content: '';
    position: absolute; inset: 8px;
    border: 1px solid rgba(196,165,95,0.15);
    pointer-events: none; border-radius: 2px; z-index: 2;
    transition: opacity 0.4s;
}

.craft-card:nth-child(even):hover::after { opacity: 0; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { background: var(--ivory); padding: var(--space-xl) var(--gutter); }

.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; max-width: var(--max-w); margin: 0 auto; }

.about-image-wrap { position: relative; }

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -1.25rem; left: -1.25rem;
    width: 55%; height: 55%;
    border: 1px solid var(--gold);
    opacity: 0.35; z-index: 0;
}

.about-image-wrap::after {
    content: '';
    position: absolute;
    bottom: -1.25rem; right: -1.25rem;
    width: 45%; height: 45%;
    border: 1px solid var(--gold);
    opacity: 0.18; z-index: 0;
}

.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; position: relative; z-index: 1; background: url("New folder/Portraits1.webp") center/cover; border-radius: 2px; }

.about-text { padding-left: 0.5rem; }
.about-text .section-heading { margin-bottom: 1.75rem; }

.about-body { font-family: var(--serif); font-size: 1.06rem; color: var(--gray); line-height: 1.88; margin-bottom: 1.3rem; }

.divider-line { width: 100%; height: 1px; background: linear-gradient(to right, rgba(0,0,0,0.08), transparent); margin: 2.25rem 0; }
body.dark-mode .divider-line { background: linear-gradient(to right, rgba(255,255,255,0.08), transparent); }

.about-stats { display: flex; gap: 2.75rem; flex-wrap: wrap; }

.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num { font-family: var(--serif); font-size: 2.25rem; font-weight: 300; color: var(--teal); line-height: 1; }
.stat-label { font-size: 0.67rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-lt); }

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
#categories { background: var(--teal); padding: var(--space-xl) var(--gutter); }

.categories-header { text-align: center; margin-bottom: 3.5rem; }
.categories-header .section-tag { justify-content: center; color: var(--gold); }
.categories-header .section-tag::before { background: var(--gold); }
.categories-header .section-heading { color: var(--ivory); }

.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: var(--max-w); margin: 0 auto; }

.cat-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 5/7; border-radius: 3px; }

.cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.75s var(--ease); }
.cat-card:hover .cat-bg { transform: scale(1.08); }

.cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,18,16,0.84) 0%, rgba(8,18,16,0.08) 58%); transition: background 0.4s; }
.cat-card:hover .cat-overlay { background: linear-gradient(to top, rgba(8,18,16,0.9) 0%, rgba(8,18,16,0.22) 62%); }

.cat-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1.15rem; }
.cat-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--white); line-height: 1.3; margin-bottom: 0.45rem; }
.cat-count { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-pale); opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.cat-card:hover .cat-count { opacity: 1; transform: translateY(0); }

.cat-bg-1 { background-image: url("New folder/Portraits2.webp"); }
.cat-bg-2 { background-image: url("New folder/Nature_&_Birds2.webp"); }
.cat-bg-3 { background-image: url("New folder/Cultural_&_Spiritual1.webp"); }
.cat-bg-4 { background-image: url("New folder/Everyday_Life_Stories1.webp"); }
.cat-bg-5 { background-image: url("New folder/Conceptual_&_Decorative1.webp"); }

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
#gallery { background: var(--ivory); padding: var(--space-xl) var(--gutter); }

.gallery-header { text-align: center; margin-bottom: 2.5rem; }
.gallery-header .section-tag { justify-content: center; }
.gallery-header .section-tag::before { display: none; }

.gallery-filters { display: flex; justify-content: center; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 3rem; }

.filter-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--gray);
    padding: 0.5rem 1.35rem;
    font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s; border-radius: 1px;
}

body.dark-mode .filter-btn { border-color: rgba(255,255,255,0.12); }

.filter-btn:hover,
.filter-btn.active { background: var(--teal); color: var(--gold-pale); border-color: var(--teal); }

.gallery-grid { column-count: 4; column-gap: 1rem; max-width: var(--max-w); margin: 0 auto; }

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative; overflow: hidden;
    cursor: pointer; border-radius: 2px;
    background: var(--beige);
    transition: opacity 0.4s;
}

.gallery-item.hidden { display: none !important; }

.gallery-item .g-img { width: 100%; height: auto; display: block; transition: transform 0.65s var(--ease); vertical-align: bottom; }
.gallery-item:hover .g-img { transform: scale(1.06); }

.gallery-item-overlay { position: absolute; inset: 0; background: rgba(12,22,20,0); display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.gallery-item:hover .gallery-item-overlay { background: rgba(12,22,20,0.35); }

.gallery-zoom-icon { color: var(--white); font-size: 1.6rem; font-weight: 200; opacity: 0; transform: scale(0.7); transition: opacity 0.3s, transform 0.35s var(--ease); }
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(8,14,12,0.97);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-inner { max-width: 90vw; max-height: 92vh; position: relative; display: flex; align-items: center; justify-content: center; }

.lightbox-inner img { max-width: 90vw; max-height: 88vh; object-fit: contain; display: block; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }

.lb-close { position: absolute; top: -2.75rem; right: 0; background: none; border: none; color: rgba(255,255,255,0.55); font-size: 1.5rem; cursor: pointer; transition: color 0.3s, transform 0.3s; }
.lb-close:hover { color: var(--gold); transform: rotate(90deg); }
.lb-caption { display: none; }

/* ══════════════════════════════════════════
   STATEMENT
══════════════════════════════════════════ */
#statement { background: var(--teal); padding: clamp(5rem, 10vw, 9rem) var(--gutter); text-align: center; }

.statement-inner { max-width: 740px; margin: 0 auto; }

.statement-quote-mark { font-family: var(--serif); font-size: 5.5rem; line-height: 0.5; color: var(--gold); opacity: 0.55; margin-bottom: 1.75rem; display: block; }

.statement-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.85rem); color: var(--ivory); line-height: 1.7; font-weight: 300; }

.statement-sig { margin-top: 2.5rem; font-family: var(--serif); font-size: 0.95rem; color: var(--gold-pale); letter-spacing: 0.1em; }

.statement-rule { width: 44px; height: 1px; background: var(--gold); margin: 1.6rem auto 0; opacity: 0.6; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact { background: var(--ivory-2); padding: var(--space-xl) var(--gutter); }

.contact-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }

.contact-text .section-heading { margin-bottom: 1.2rem; }

.contact-desc { font-family: var(--serif); font-size: 1.04rem; color: var(--gray); line-height: 1.85; margin-bottom: 2.25rem; }

.contact-detail { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.82rem; color: var(--gray); margin-bottom: 0.8rem; letter-spacing: 0.03em; line-height: 1.6; }

.contact-detail-icon { color: var(--teal); font-size: 0.95rem; margin-top: 0.05rem; flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-lt); }

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.85rem 1rem;
    font-size: 0.87rem;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 1px;
    font-family: var(--sans); font-weight: 300;
    appearance: none;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select { background: #1a1e1d; border-color: rgba(255,255,255,0.1); color: var(--ivory); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 128px; }

.btn-submit {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: var(--teal); color: var(--gold-pale);
    border: 1px solid var(--teal);
    padding: 1rem 2.5rem;
    font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    cursor: pointer; transition: background 0.4s, gap 0.3s;
    align-self: flex-start;
}

.btn-submit::after { content: '→'; font-size: 0.95rem; transition: transform 0.3s; }
.btn-submit:hover { background: var(--teal-light); gap: 0.95rem; }
.btn-submit:hover::after { transform: translateX(3px); }

#formMsg { font-family: var(--serif); font-style: italic; color: var(--teal); font-size: 0.9rem; min-height: 1.3rem; transition: opacity 0.4s; opacity: 0; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.45);
    padding: 3.5rem var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo { font-family: var(--serif); font-size: 1.18rem; color: var(--ivory); font-weight: 400; letter-spacing: 0.03em; }
.footer-poem { font-family: var(--serif); font-style: italic; font-size: 0.88rem; color: rgba(255,255,255,0.35); text-align: center; white-space: nowrap; }

.footer-socials { display: flex; gap: 1.25rem; justify-content: flex-end; align-items: center; }

.social-link { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); transition: color 0.3s; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.social-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-copy { grid-column: 1 / -1; text-align: center; font-size: 0.62rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.18); margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Safe-area / notch support */
nav { padding-top: max(1.75rem, env(safe-area-inset-top)); }
nav.scrolled { padding-top: max(1.1rem, env(safe-area-inset-top)); }
footer { padding-bottom: max(3.5rem, calc(2.5rem + env(safe-area-inset-bottom))); }

@supports (height: 100svh) {
    #hero { min-height: 100svh; }
}

/* ══════════════════════════════════════════
   TOUCH / POINTER ENHANCEMENTS
══════════════════════════════════════════ */
@media (pointer: coarse) {
    .filter-btn { min-height: 44px; padding: 0.6rem 1.2rem; }
    .btn-ghost { min-height: 52px; }
    .btn-submit { min-height: 52px; }
    .dark-toggle { width: 44px; height: 28px; }
    .dark-toggle::after { top: 5px; left: 4px; width: 16px; height: 16px; }
    body.dark-mode .dark-toggle::after { transform: translateX(18px); }
    .hamburger { padding: 8px; }
    .hamburger span { width: 26px; }
    .social-link { padding: 6px 0; }
    .nav-links a { padding: 8px 0; }
    .art-card-overlay,
    .craft-card-overlay { opacity: 1; background: linear-gradient(to top, rgba(12,22,20,0.75) 0%, rgba(12,22,20,0.15) 65%); }
    .cat-count { opacity: 1; transform: none; }
    .gallery-item-overlay { background: rgba(12,22,20,0.22); }
    .gallery-zoom-icon { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════
   TABLET — 1200px
══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .masonry-grid { columns: 2; column-gap: 1.1rem; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { column-count: 3; column-gap: 0.9rem; }
}

/* ══════════════════════════════════════════
   TABLET PORTRAIT — 900px
══════════════════════════════════════════ */
@media (max-width: 900px) {
    :root { --space-xl: 4.5rem; --gutter: clamp(1.25rem, 5vw, 2.5rem); }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    nav { padding: 1.4rem var(--gutter); }
    nav.scrolled { padding: 0.9rem var(--gutter); }
    #hero { padding-left: var(--gutter); padding-right: var(--gutter); }
    .hero-content { max-width: 100%; }
    .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img { aspect-ratio: 3/2; }
    .about-image-wrap::before, .about-image-wrap::after { display: none; }
    .about-text { padding-left: 0; }
    .about-stats { gap: 2rem; }
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
    .crafts-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { column-count: 2; column-gap: 0.8rem; }
    .gallery-item { margin-bottom: 0.8rem; }
    .gallery-filters { gap: 0.3rem; }
    footer { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; padding: 3rem var(--gutter); }
    .footer-socials { justify-content: center; }
    .footer-poem { white-space: normal; }
}

/* ══════════════════════════════════════════
   MOBILE — 640px
══════════════════════════════════════════ */
@media (max-width: 640px) {
    :root { --space-xl: 3.5rem; --gutter: 1.25rem; }
    nav { padding: 1.1rem var(--gutter); }
    nav.scrolled { padding: 0.8rem var(--gutter); }
    .nav-logo { font-size: 1.15rem; }
    .mobile-menu { gap: 1.5rem; }
    .mobile-menu a { font-size: 1.6rem; }
    .mobile-close { font-size: 1.4rem; top: 1.4rem; right: var(--gutter); }
    #hero { padding-left: var(--gutter); padding-right: var(--gutter); align-items: flex-end; padding-bottom: 5rem; min-height: 100svh; }
    .hero-content { max-width: 100%; }
    .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.18em; margin-bottom: 1.1rem; flex-wrap: wrap; gap: 0.5rem; }
    .hero-eyebrow::before { width: 20px; }
    .hero-heading { font-size: clamp(2.2rem, 8vw, 3rem); margin-bottom: 1rem; line-height: 1.1; }
    .hero-sub { font-size: 0.98rem; margin-bottom: 2rem; }
    .btn-ghost { padding: 0.85rem 1.8rem; font-size: 0.68rem; }
    .hero-scroll { display: none; }
    .marquee-strip { font-size: 0.82rem; padding: 0.8rem 0; }
    .marquee-track span { padding: 0 1.75rem; }
    .marquee-track span::before { margin-right: 1.75rem; }
    .section-tag { font-size: 0.6rem; letter-spacing: 0.18em; }
    .section-heading { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .section-wrap, .section-wrap--full { padding: var(--space-xl) var(--gutter); }
    .masonry-grid { columns: 1; column-gap: 0; }
    .art-card { margin-bottom: 0.9rem; }
    .art-card-overlay { opacity: 1; }
    .crafts-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .crafts-intro { font-size: 0.98rem; }
    #about { padding: var(--space-xl) var(--gutter); }
    .about-img { aspect-ratio: 4/3; }
    .about-body { font-size: 1rem; line-height: 1.8; margin-bottom: 1.1rem; }
    .about-stats { gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
    .stat { align-items: center; }
    .stat-num { font-size: 1.85rem; }
    .stat-label { font-size: 0.6rem; }
    .divider-line { margin: 1.75rem 0; }
    #categories { padding: var(--space-xl) 0; }
    .categories-header { padding: 0 var(--gutter); }
    .categories-grid { grid-template-columns: repeat(5, 68vw); grid-auto-flow: column; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 0.75rem; padding: 0 var(--gutter) 1rem; scrollbar-width: none; max-width: none !important; margin: 0 !important; }
    .categories-grid::-webkit-scrollbar { display: none; }
    .cat-card { scroll-snap-align: start; aspect-ratio: 4/5; flex-shrink: 0; border-radius: 4px; }
    #categories::after { content: ''; position: absolute; top: 0; right: 0; width: 3rem; height: 100%; background: linear-gradient(to left, var(--teal), transparent); pointer-events: none; z-index: 2; }
    #categories { position: relative; }
    .cat-count { opacity: 1; transform: none; }
    #gallery { padding: var(--space-xl) var(--gutter); }
    .gallery-grid { column-count: 2; column-gap: 0.6rem; }
    .gallery-item { margin-bottom: 0.6rem; }
    .gallery-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 0.5rem; scrollbar-width: none; gap: 0.4rem; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); margin-bottom: 2rem; }
    .gallery-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; padding: 0.5rem 1.1rem; font-size: 0.65rem; white-space: nowrap; }
    #statement { padding: 4rem var(--gutter); }
    .statement-quote-mark { font-size: 4rem; }
    .statement-text { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
    .statement-sig { font-size: 0.88rem; margin-top: 2rem; }
    #contact { padding: var(--space-xl) var(--gutter); }
    .contact-desc { font-size: 0.98rem; margin-bottom: 1.75rem; }
    .contact-detail { font-size: 0.8rem; }
    .form-group input, .form-group textarea, .form-group select { font-size: 16px; padding: 0.9rem; }
    .form-group textarea { min-height: 110px; }
    .btn-submit { width: 100%; justify-content: center; padding: 1rem; }
    .contact-form { gap: 1rem; }
    footer { padding: 2.5rem var(--gutter); gap: 1rem; }
    .footer-logo { font-size: 1.05rem; }
    .footer-poem { font-size: 0.82rem; }
    .social-link { font-size: 0.66rem; }
    .footer-copy { font-size: 0.58rem; padding-top: 1.25rem; }
    .lightbox-inner { max-width: 100vw; max-height: 100vh; }
    .lightbox-inner img { max-width: 100vw; max-height: 100vh; border-radius: 0; }
    .lb-close { top: 1rem; right: 1rem; position: fixed; background: rgba(8,14,12,0.7); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
    .lb-caption { bottom: 1.5rem; left: 1rem; right: 1rem; }
    .morph-card { width: 52px; height: 70px; border-radius: 6px; }
    .preloader-frame { width: 32px; height: 32px; }
    .frame-tl, .frame-tr { top: 1rem; }
    .frame-bl, .frame-br { bottom: 1rem; }
    .frame-tl, .frame-bl { left: 1rem; }
    .frame-tr, .frame-br { right: 1rem; }
}

/* ══════════════════════════════════════════
   SMALL MOBILE — 380px
══════════════════════════════════════════ */
@media (max-width: 380px) {
    :root { --gutter: 1rem; }
    .hero-heading { font-size: 2rem; }
    .crafts-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(5, 80vw); }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { column-count: 2; column-gap: 0.5rem; }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee-track { animation: none; }
    .scroll-line::after { animation: none; }
}
