/* =========================================================
   SPNN LACES — Premium Textile Atelier
   Stylesheet
   ---------------------------------------------------------
   Structure:
   1. Design tokens (colors, type, spacing)
   2. Reset & base
   3. Typography utilities
   4. Buttons & chips
   5. Layout helpers (section head)
   6. Cursor
   7. Preloader
   8. Navigation
   9. Hero
   10. Marquee
   11. About
   12. Services
   13. Gallery
   14. Craft
   15. CTA
   16. Footer
   17. Lightbox
   18. Reveal animation states
   19. Responsive (mobile-first refinements)
   ========================================================= */


/* 1. DESIGN TOKENS -------------------------------------- */
:root {
    /* Palette — black / ivory / gold */
    --bg:          #0a0a0a;
    --bg-2:        #111111;
    --surface:     #161616;
    --ink:         #f5f2ea;      /* ivory white */
    --ink-muted:   #a8a29b;
    --ink-soft:    #6f6b65;
    --line:        rgba(245, 242, 234, 0.12);
    --line-soft:   rgba(245, 242, 234, 0.06);
    --gold:        #c9a961;
    --gold-soft:   #e7d4a1;

    /* Typography */
    --serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans:   'Inter', system-ui, -apple-system, sans-serif;

    /* Fluid scale (clamp — min / preferred / max) */
    --step--2: clamp(0.72rem, 0.68rem + 0.15vw, 0.8rem);
    --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
    --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    --step-1:  clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    --step-2:  clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
    --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
    --step-4:  clamp(2.6rem, 2rem + 3vw, 4.4rem);
    --step-5:  clamp(3.4rem, 2.4rem + 5vw, 7rem);
    --step-6:  clamp(4rem, 2.8rem + 7vw, 10rem);

    /* Motion */
    --ease:     cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    /* Container */
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --max:    1440px;
}


/* 2. RESET & BASE --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: #000; }

/* Scrollbar — subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }


/* 3. TYPOGRAPHY ----------------------------------------- */
.heading-xl {
    font-family: var(--serif);
    font-size: var(--step-5);
    line-height: 0.98;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0 0 1.2rem;
}
.heading-xl em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; }


/* 4. BUTTONS & CHIPS ------------------------------------ */
.btn {
    --pad-y: 1rem;
    --pad-x: 1.8rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: var(--pad-y) var(--pad-x);
    font-family: var(--sans);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
    overflow: hidden;
    will-change: transform;
}
.btn--lg { --pad-y: 1.3rem; --pad-x: 2.4rem; font-size: var(--step-0); }
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: var(--ink);
    color: var(--bg);
}
.btn--primary::before {
    content: ""; position: absolute; inset: 0;
    background: var(--gold);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
    z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { color: #000; }

.btn--ghost {
    color: var(--ink);
    border: 1px solid var(--line);
    background: transparent;
}
.btn--ghost:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.chip {
    padding: 0.6rem 1.2rem;
    font-family: var(--sans);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all .35s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.chip.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}


/* 5. LAYOUT HELPERS ------------------------------------- */
.section {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
}
.section__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--sans);
    font-size: var(--step--2);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__num {
    color: var(--gold);
    font-style: italic;
    font-family: var(--serif);
    font-size: var(--step-0);
    letter-spacing: 0;
}
.section__head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}


/* 6. CURSOR --------------------------------------------- */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity .3s var(--ease);
    mix-blend-mode: difference;
}
.cursor {
    width: 6px; height: 6px;
    background: var(--ink);
    border-radius: 50%;
}
.cursor-follower {
    width: 40px; height: 40px;
    border: 1px solid rgba(245, 242, 234, 0.5);
    border-radius: 50%;
    transition: transform .25s var(--ease), opacity .3s var(--ease), width .3s var(--ease), height .3s var(--ease);
}
.cursor-follower.is-hover { width: 64px; height: 64px; background: rgba(245, 242, 234, 0.08); }
body.no-cursor .cursor, body.no-cursor .cursor-follower { opacity: 0; }

@media (max-width: 900px), (hover: none) {
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
}
@media (hover: hover) and (pointer: fine) {
    html, body { cursor: none; }
    a, button, [data-tilt], .gallery__item, .service-card { cursor: none; }
}


/* 7. PRELOADER ------------------------------------------ */
.preloader {
    position: fixed; inset: 0;
    z-index: 9998;
    background: var(--bg);
    display: grid;
    place-items: center;
    transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__logo {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.preloader__logo span { color: var(--gold); font-style: normal; letter-spacing: 0.3em; font-family: var(--sans); font-size: 0.5em; vertical-align: middle; }
.preloader__bar {
    width: 180px;
    height: 1px;
    background: var(--line);
    margin: 0 auto;
    overflow: hidden;
}
.preloader__bar span {
    display: block; height: 100%;
    background: var(--gold);
    width: 0;
    animation: load 1.4s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }


/* 8. NAVIGATION ----------------------------------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.3rem var(--gutter);
    transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 0.9rem var(--gutter);
    border-bottom-color: var(--line);
}

.nav__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    max-width: var(--max);
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--serif);
    font-size: var(--step-1);
    letter-spacing: 0.04em;
}
.nav__logo-mark {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px;
    background: var(--ink); color: var(--bg);
    border-radius: 50%;
    font-style: italic;
    font-weight: 600;
    transition: background .4s var(--ease), color .4s var(--ease);
}
.nav__logo:hover .nav__logo-mark { background: var(--gold); color: #000; }
.nav__logo em { color: var(--gold); font-style: italic; }

.nav__links {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
}
.nav__links a {
    position: relative;
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 0.5rem 0;
    transition: color .3s var(--ease);
}
.nav__links a::after {
    content: ""; position: absolute;
    left: 0; right: 100%;
    bottom: 0; height: 1px;
    background: var(--gold);
    transition: right .4s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { right: 0; }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all .35s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: #000; border-color: var(--gold); }

.nav__burger {
    display: none;
    width: 34px; height: 34px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
}
.nav__burger span {
    display: block;
    width: 24px; height: 1px;
    background: var(--ink);
    transition: transform .4s var(--ease), opacity .3s var(--ease), width .4s var(--ease);
}
.nav__burger span:nth-child(2) { width: 16px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 24px; }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 24px; }

/* Drawer is a sibling of .nav (not a descendant) so the nav's backdrop-filter
   can't create a containing block that clips the drawer. z-index sits below
   the nav's 100 so the burger stays interactive to close the drawer. */
.nav__drawer {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2rem;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    z-index: 90;
}
.nav.is-open ~ .nav__drawer { opacity: 1; visibility: visible; }
.nav__drawer a {
    font-family: var(--serif);
    font-size: clamp(2rem, 9vw, 3.5rem);
    color: var(--ink);
}
.nav__drawer a:hover { color: var(--gold); font-style: italic; }


/* 9. HERO ----------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 7rem var(--gutter) 4rem;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* ---- Editorial hero collage ----
   Desktop: 4 cols × 2 rows = 8 cells. Hero tile spans 2×2 (4 cells) on the left;
   4 accent tiles fill the remaining 4 cells on the right. Fills the viewport height.
   Mobile:  2 cols × 3 rows. Hero tile spans the full top row, 4 accents below 2×2. */
.hero__collage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-auto-rows: 0;          /* defensive: stop any stray 9th item from creating a ghost row */
    gap: 2px;
    background: #000;
}
.hero__tile {
    position: relative;
    overflow: hidden;
    min-width: 0;               /* allow grid items to shrink below content size */
    min-height: 0;
}
.hero__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(0.35) contrast(1.05) brightness(0.85);
    transform: scale(1.08);
    transition: filter 1.2s var(--ease);
    animation: heroZoom 18s var(--ease) forwards;
}
.hero__tile--hero {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}
.hero__tile--hero img { filter: grayscale(0.15) contrast(1.06) brightness(0.95); }

/* Tiny staggered drift so the collage feels alive rather than static */
.hero__tile:nth-child(2) img { animation-duration: 22s; animation-delay: -2s; }
.hero__tile:nth-child(3) img { animation-duration: 20s; animation-delay: -5s; }
.hero__tile:nth-child(4) img { animation-duration: 24s; animation-delay: -3s; }
.hero__tile:nth-child(5) img { animation-duration: 21s; animation-delay: -6s; }

@keyframes heroZoom {
    0%   { transform: scale(1.12) translate(1%, 1%); }
    100% { transform: scale(1.02) translate(-1%, -1%); }
}

/* Tablet — 3 cols × 2 rows. Hero spans 2×2, 2 accents fit on the right. */
@media (max-width: 1100px) {
    .hero__collage {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr 1fr;
    }
    .hero__tile--hero {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }
    /* Only show the first 3 accent tiles on tablet (hero + 2 accents fits 6 cells, but hero = 4, so 2 accents). Hide the rest. */
    .hero__tile:nth-child(n+4) { display: none; }
}

/* Mobile — hero tile full-width across top, 4 accents in a 2×2 grid below. */
@media (max-width: 700px) {
    .hero__collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1.4fr 1fr 1fr;
    }
    .hero__tile--hero {
        grid-column: 1 / span 2;
        grid-row: 1 / span 1;
    }
    .hero__tile:nth-child(n+4) { display: block; }   /* bring accents back */
}

.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.98) 100%),
        linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.35) 100%),
        radial-gradient(ellipse at 30% 30%, rgba(201,169,97,0.12), transparent 60%);
}
.hero__grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.35;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero__eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-size: var(--step--1);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero__eyebrow .line {
    display: inline-block;
    width: 48px; height: 1px;
    background: var(--gold);
}

.hero__title {
    font-family: var(--serif);
    font-size: var(--step-6);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.hero__title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: lineUp 1.1s var(--ease) forwards;
}
.reveal-line:nth-child(1) > span { animation-delay: 0.8s; }
.reveal-line:nth-child(2) > span { animation-delay: 0.95s; }
.reveal-line:nth-child(3) > span { animation-delay: 1.1s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero__sub {
    max-width: 520px;
    font-size: var(--step-1);
    color: var(--ink-muted);
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    opacity: 0;
    animation: fadeUp 1s var(--ease) 1.4s forwards;
}

.hero__actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 1.6s forwards;
}

.hero__scroll {
    position: absolute;
    left: var(--gutter);
    bottom: 2rem;
    display: flex; flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: var(--step--2);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 2s forwards;
}
.hero__scroll-line {
    width: 1px; height: 60px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0;
    height: 30%;
    background: var(--gold);
    animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }

.hero__meta {
    position: absolute;
    right: var(--gutter);
    bottom: 2rem;
    display: flex; flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    font-size: var(--step--2);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 2.1s forwards;
}
.hero__meta em { color: var(--gold); font-style: italic; margin-right: 0.5rem; }


/* 10. MARQUEE ------------------------------------------- */
.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 1.4rem 0;
    background: var(--bg);
}
.marquee__track {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 32s linear infinite;
    font-family: var(--serif);
    font-size: var(--step-2);
    font-style: italic;
    color: var(--ink);
    padding-left: 3rem;
}
.marquee__track .dot { color: var(--gold); font-style: normal; font-size: 0.5em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* 11. ABOUT --------------------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.about__media {
    position: relative;
}
.about__media-frame {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 2px;
}
.about__media-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.about__media:hover .about__media-frame img { transform: scale(1.05); }

.about__media-tag {
    position: absolute;
    bottom: -1.5rem; right: -1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 1.5rem;
    max-width: 240px;
    backdrop-filter: blur(10px);
}
.about__media-tag em {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.about__media-tag strong {
    font-family: var(--serif);
    font-weight: 500;
    font-size: var(--step-1);
    line-height: 1.2;
}

.about__text p {
    color: var(--ink-muted);
    font-size: var(--step-1);
    max-width: 50ch;
    margin: 0 0 1.5rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.about__stats div { display: flex; flex-direction: column; gap: 0.25rem; }
.about__stats strong {
    font-family: var(--serif);
    font-size: var(--step-4);
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
}
.about__stats span {
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}


/* 12. SERVICES ------------------------------------------ */
.services__title { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 16ch; }

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

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
    will-change: transform;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 97, 0.35);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,169,97,0.15);
}

.service-card__img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.service-card__img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.6));
}
.service-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .5s var(--ease);
    filter: grayscale(0.25);
}
.service-card:hover .service-card__img img { transform: scale(1.08); filter: grayscale(0); }

.service-card__body {
    padding: 1.8rem 1.8rem 2rem;
    position: relative;
}
.service-card__num {
    position: absolute;
    top: -1.4rem; right: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    transition: all .4s var(--ease);
}
.service-card:hover .service-card__num { background: var(--gold); color: #000; border-color: var(--gold); }

.service-card__body h3 {
    font-size: var(--step-3);
    margin: 0 0 0.8rem;
    letter-spacing: -0.01em;
}
.service-card__body p {
    color: var(--ink-muted);
    margin: 0 0 1rem;
    font-size: var(--step-0);
}
.service-card__arrow {
    display: inline-block;
    font-size: var(--step-1);
    color: var(--ink);
    transition: transform .5s var(--ease), color .4s var(--ease);
}
.service-card:hover .service-card__arrow { color: var(--gold); transform: translate(6px, -6px); }


/* 13. GALLERY ------------------------------------------- */
.gallery__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}
.gallery__header p {
    color: var(--ink-muted);
    max-width: 40ch;
    font-size: var(--step-1);
}

.gallery__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

/* Masonry via CSS columns — simple, no library, works everywhere */
.gallery__grid {
    column-count: 4;
    column-gap: 1.25rem;
}
@media (max-width: 1100px) { .gallery__grid { column-count: 3; } }
@media (max-width: 760px)  { .gallery__grid { column-count: 2; column-gap: 0.8rem; } }
@media (max-width: 480px)  { .gallery__grid { column-count: 1; } }

.gallery__item {
    position: relative;
    margin: 0 0 1.25rem;
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    background: var(--surface);
    border-radius: 2px;
    display: block;
    transition: transform .6s var(--ease), opacity .4s var(--ease);
    opacity: 0;
    transform: translateY(24px);
}
.gallery__item.is-in { opacity: 1; transform: translateY(0); }
.gallery__item.is-hidden { display: none; }

.gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1s var(--ease), filter .5s var(--ease);
    filter: grayscale(0.15);
}
.gallery__item:hover img { transform: scale(1.06); filter: grayscale(0); }

.gallery__item__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.85));
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    transition: opacity .4s var(--ease);
}
.gallery__item:hover .gallery__item__overlay { opacity: 1; }
.gallery__item__caption {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink);
    font-size: var(--step-1);
}
.gallery__item__tag {
    position: absolute;
    top: 0.8rem; left: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(6px);
    color: var(--gold);
    font-size: var(--step--2);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-6px);
    transition: all .4s var(--ease);
}
.gallery__item:hover .gallery__item__tag { opacity: 1; transform: translateY(0); }

.gallery__hint {
    margin-top: 3rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: var(--step--1);
}
.gallery__hint em { color: var(--gold); font-style: italic; margin-right: 0.3rem; }
.gallery__hint code {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--ink);
}


/* 14. CRAFT --------------------------------------------- */
.craft {
    position: relative;
    padding: clamp(7rem, 15vw, 14rem) var(--gutter);
    overflow: hidden;
    max-width: none;
    width: 100%;
}
.section__head--light { color: var(--ink); }
.craft__bg { position: absolute; inset: 0; z-index: 0; }
.craft__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.9) brightness(0.4) contrast(1.1);
    transform: scale(1.15);
}
.craft::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.7), rgba(10,10,10,0.95)),
        radial-gradient(ellipse at 70% 30%, rgba(201,169,97,0.2), transparent 60%);
    z-index: 1;
}
.craft__content {
    position: relative; z-index: 2;
    max-width: var(--max); margin: 0 auto;
}
.craft__eyebrow {
    font-size: var(--step--1);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 2rem;
}
.craft__title {
    font-family: var(--serif);
    font-size: var(--step-6);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin: 0 0 2.5rem;
    max-width: 18ch;
}
.craft__title em { font-style: italic; color: var(--gold); }
.craft__body {
    color: var(--ink-muted);
    font-size: var(--step-1);
    max-width: 48ch;
    margin: 0;
}


/* 15. CTA ----------------------------------------------- */
.cta { text-align: left; }
.cta__inner { max-width: 1100px; }
.cta__title {
    font-family: var(--serif);
    font-size: var(--step-6);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.cta__title em { font-style: italic; color: var(--gold); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }


/* 16. FOOTER -------------------------------------------- */
.footer {
    border-top: 1px solid var(--line);
    padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem;
    background: var(--bg);
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: var(--max);
    margin: 0 auto 3rem;
}
.footer__logo {
    font-family: var(--serif);
    font-size: var(--step-3);
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.footer__logo em { font-style: italic; color: var(--gold); }
.footer__brand p { color: var(--ink-muted); margin: 0; font-style: italic; font-family: var(--serif); font-size: var(--step-1); }

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.footer__cols--single {
    grid-template-columns: 1fr;
    justify-items: start;
}
.footer__by {
    color: var(--gold);
    font-style: italic;
    font-family: var(--serif);
    letter-spacing: 0.02em;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease);
}
.footer__by:hover { border-color: var(--gold); }
.footer__cols h4 {
    font-family: var(--sans);
    font-size: var(--step--2);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
    font-weight: 500;
}
.footer__cols p, .footer__cols a {
    color: var(--ink-muted);
    font-size: var(--step-0);
    line-height: 1.9;
}
.footer__cols a:hover { color: var(--ink); }
.footer__social { display: flex; flex-direction: column; gap: 0.25rem; }

.footer__base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    max-width: var(--max);
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: var(--step--1);
    letter-spacing: 0.08em;
}


/* 17. LIGHTBOX ------------------------------------------ */
.lightbox {
    position: fixed; inset: 0;
    z-index: 10000;
    background: rgba(6,6,6,0.97);
    backdrop-filter: blur(20px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    padding: 2rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
    position: relative;
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: scale(0.95);
    transition: transform .5s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 50px 120px -30px rgba(0,0,0,0.7);
}
.lightbox__figure figcaption {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    font-size: var(--step-0);
    letter-spacing: 0.05em;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    color: var(--ink);
    display: grid; place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    transition: background .3s var(--ease), transform .4s var(--ease);
    z-index: 1;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__close:hover { background: var(--gold); color: #000; }
.lightbox__nav { top: 50%; transform: translateY(-50%); border: 1px solid var(--line); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
.lightbox__nav:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: translateY(-50%) scale(1.05); }


/* 18. REVEAL ANIMATION STATES ---------------------------- */
.reveal-up { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: translateY(0); }

.reveal-img { transition: transform 1.4s var(--ease), filter 1.4s var(--ease); transform: scale(1.08); filter: brightness(0.85); }
.reveal-img.is-in { transform: scale(1); filter: brightness(1); }


/* 19. RESPONSIVE ---------------------------------------- */
@media (max-width: 1100px) {
    .about__grid { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: 1fr 1fr; }
    .about__media-tag { bottom: 1rem; right: 1rem; }
}

@media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .nav__inner { grid-template-columns: 1fr auto; }

    .services__grid { grid-template-columns: 1fr; }
    .about__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

    .gallery__header { grid-template-columns: 1fr; align-items: start; }

    .footer__top { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero__meta { display: none; }
    .hero__scroll { left: 50%; transform: translateX(-50%); }
    .about__stats { grid-template-columns: 1fr; }
    .about__stats strong { font-size: var(--step-3); }
    .footer__cols { grid-template-columns: 1fr; }
    .footer__base { flex-direction: column; align-items: flex-start; }
    .lightbox__close, .lightbox__nav { width: 44px; height: 44px; }
    .lightbox__close { top: 1rem; right: 1rem; }
    .lightbox__nav--prev { left: 0.5rem; }
    .lightbox__nav--next { right: 0.5rem; }
}
