/* ============================================================
   VASILYAN — Editorial Light
   Quiet luxury, typography-driven, restrained motion.
   ============================================================ */

:root {
    --bg:          #faf7ef;
    --bg-soft:     #f1ece0;
    --bg-deep:     #14110d;
    --ink:         #1a1816;
    --ink-soft:    #5a5650;
    --ink-mut:     #8c887e;
    --gold:        #b08c3f;
    --gold-soft:   #c9a961;
    --line:        rgba(26, 24, 22, 0.10);
    --line-strong: rgba(26, 24, 22, 0.20);

    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans:  'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
    --gutter:    clamp(1.5rem, 4vw, 4rem);
    --max:       1480px;

    --section-pad: clamp(4rem, 8vw, 7rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}
body {
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* ============================================================
   3D STONES CANVAS
   Fixed behind everything; gems live in side margins.
   ============================================================ */
.stones-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease-out;
}
.stones-canvas.is-ready { opacity: 1; }

/* All major content sits above the canvas, but sections themselves are transparent
   so the canvas (and its rotating stones) shows through. */
.nav, .main, .footer { position: relative; z-index: 1; }
.preloader { z-index: 1000; }
.menu-overlay { z-index: 999; }
.lightbox { z-index: 1001; }
.hero { z-index: 2; }
.footer { z-index: 2; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}
.preloader__text {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    letter-spacing: 0.6em;
    color: var(--ink);
    margin-right: -0.6em;
    animation: gentle-pulse 2.4s ease-in-out infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow--light { color: rgba(250, 247, 239, 0.55); }

.display {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.005em;
    margin: 0 0 1.5rem;
}

.prose {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
    max-width: 38ch;
}
.prose--lead {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--ink);
    max-width: 22ch;
    margin-bottom: 2rem;
}
.prose--accent {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-style: italic;
    color: var(--gold);
    line-height: 1.5;
    max-width: 28ch;
    border-left: 1px solid var(--gold);
    padding-left: 1.5rem;
}

.container {
    width: 100%;
    max-width: var(--max);
    padding: 0 var(--gutter);
    margin: 0 auto;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.75rem var(--gutter);
    z-index: 100;
    transition: padding 0.45s var(--ease), background 0.45s var(--ease);
    color: var(--ink);
}
.nav.is-over-image { color: var(--bg); }
.nav.is-scrolled {
    padding: 1rem var(--gutter);
    background: rgba(250, 247, 239, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
}
.nav__logo {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.nav__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.nav__lines {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 28px;
}
.nav__lines span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 0.4s var(--ease);
}
.nav__menu-btn:hover .nav__lines span:first-child { transform: translateX(-4px); }
.nav__menu-btn:hover .nav__lines span:last-child  { transform: translateX(4px); }

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    color: var(--bg);
    padding: 5rem var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.9s var(--ease);
    will-change: transform;
}
.menu-overlay.is-open { transform: translateY(0); }

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.menu-link {
    display: inline-block;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.005em;
    transition: color 0.3s var(--ease), transform 0.6s var(--ease);
    transform: translateY(40px);
    opacity: 0;
}
.menu-overlay.is-open .menu-link { transform: translateY(0); opacity: 1; }
.menu-overlay.is-open .menu-list li:nth-child(1) .menu-link { transition-delay: 0.10s; }
.menu-overlay.is-open .menu-list li:nth-child(2) .menu-link { transition-delay: 0.16s; }
.menu-overlay.is-open .menu-list li:nth-child(3) .menu-link { transition-delay: 0.22s; }
.menu-overlay.is-open .menu-list li:nth-child(4) .menu-link { transition-delay: 0.28s; }
.menu-overlay.is-open .menu-list li:nth-child(5) .menu-link { transition-delay: 0.34s; }
.menu-link:hover { color: var(--gold-soft); }

.menu-overlay__meta {
    margin-top: auto;
    padding-top: 3rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    color: rgba(250, 247, 239, 0.5);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.menu-close {
    position: absolute;
    top: 2rem;
    right: var(--gutter);
    font-size: 1.6rem;
    color: var(--bg);
    line-height: 1;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(250,247,239,0.18);
    transition: background 0.3s var(--ease), transform 0.5s var(--ease);
}
.menu-close:hover { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    width: 100%;
    overflow: hidden;
    background: var(--bg-deep);
    color: var(--bg);
}
.hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide { height: 100%; }

.hero__bg {
    position: absolute;
    inset: 0;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.55));
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--gutter) clamp(3rem, 7vh, 6rem);
    z-index: 2;
}
.hero__title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(3.5rem, 11vw, 11rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 16ch;
}
.hero__line { display: block; }
.hero__line em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 400;
}

.hero__meta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.74rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(250, 247, 239, 0.78);
    font-weight: 500;
}
.hero__meta-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: rgba(250, 247, 239, 0.5);
}

.hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(3rem, 7vh, 6rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(250, 247, 239, 0.68);
}
.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(250, 247, 239, 0.5);
    animation: scrollLine 2.6s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.2); }
    50%      { transform: scaleY(1); }
}

/* ============================================================
   SPLIT (philosophy / craftsmanship layout)
   Sections stay transparent so the 3D stones canvas shows through.
   ============================================================ */
section.philosophy,
section.craftsmanship,
section.collections {
    padding: var(--section-pad) 0;
    position: relative;
}

.split {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}
.split__label {
    position: sticky;
    top: 6rem;
    align-self: start;
}
.split__body { padding-top: 0.5rem; }

/* Philosophy: text + image stacked on right */
.philosophy .split__media {
    grid-column: 3;
    grid-row: 1;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    align-self: start;
    margin-top: 2rem;
}
.philosophy .split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.6s var(--ease);
}
.philosophy .split__media:hover img { transform: scale(1); }

/* Craftsmanship: text + custom image grid */
.craftsmanship .split__body { grid-column: 2; }
.craft-grid {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.craft-grid figure {
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
}
.craft-grid figure:nth-child(2) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
    margin-top: 1rem;
}
.craft-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.craft-grid figure:hover img { transform: scale(1.05); }
.craft-grid figcaption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: var(--bg);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: rgba(20,17,13,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.45rem 0.85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.craft-grid figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   COLLECTIONS — editorial 2-column grid
   ============================================================ */
.section-head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { display: inline-block; margin-bottom: 1.25rem; }
.section-head .display { margin: 0; }

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.gallery .card:nth-child(odd)  { transform: translateY(0); }
.gallery .card:nth-child(even) { transform: translateY(clamp(1.5rem, 4vw, 3rem)); }

.card { position: relative; }
.card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bg-soft);
    cursor: pointer;
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.card:hover .card__media img {
    transform: scale(1.05);
    filter: brightness(0.92);
}

.card__body {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
}
.card__title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 1.7vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}
.card__desc {
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mut);
    text-align: right;
    max-width: 26ch;
    line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-deep);
    color: var(--bg);
    padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
    position: relative;
    z-index: 2;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.footer__brand .footer__logo {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem;
}
.footer__tagline {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--gold-soft);
    margin: 0;
    max-width: 30ch;
    line-height: 1.4;
}
.footer__col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col .eyebrow { margin-bottom: 0.5rem; }
.footer__col p { margin: 0; font-size: 0.92rem; color: rgba(250, 247, 239, 0.7); }
.footer__col a { transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--gold-soft); }

.footer__bottom {
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 247, 239, 0.08);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(250, 247, 239, 0.4);
    text-align: center;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 17, 13, 0.95);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
.lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
    position: absolute;
    top: -54px;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: var(--bg);
    font-size: 1.3rem;
    display: grid;
    place-items: center;
    transition: background 0.3s var(--ease), transform 0.5s var(--ease);
}
.lightbox__close:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: rotate(90deg);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .split { grid-template-columns: 160px 1fr; }
    .philosophy .split__media,
    .craft-grid {
        grid-column: 1 / -1;
        margin-top: 2.5rem;
    }
    .craftsmanship .split__body { grid-column: 2; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --gutter: 1.5rem; --section-pad: 5rem; }
    .nav { padding: 1.25rem var(--gutter); }
    .nav.is-scrolled { padding: 0.85rem var(--gutter); }
    .nav__logo { font-size: 1.3rem; }
    .menu-close { right: var(--gutter); }
    .menu-overlay__meta { gap: 1.5rem; flex-direction: column; }

    .hero__title { font-size: clamp(3rem, 14vw, 5rem); }
    .hero__scroll { display: none; }

    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split__label { position: static; }
    .philosophy .split__media,
    .craft-grid {
        grid-column: 1;
        margin-top: 1.5rem;
    }
    .craftsmanship .split__body { grid-column: 1; }
    .craft-grid { grid-template-columns: 1fr; }
    .craft-grid figure:nth-child(2) { grid-column: 1; aspect-ratio: 4 / 5; }

    .gallery { grid-template-columns: 1fr; gap: 3rem; }
    .gallery .card:nth-child(even) { transform: none; }
    .card__body { grid-template-columns: 1fr; gap: 0.5rem; }
    .card__desc { text-align: left; max-width: 100%; }

    .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .stones-canvas { display: none; }
}

/* ============================================================
   SWIPER OVERRIDES — silent crossfade
   ============================================================ */
.swiper-pagination,
.swiper-button-next,
.swiper-button-prev { display: none !important; }
