:root {
    --cream: #F5F1EA;
    --cream-2: #EBE4D6;
    --ink: #131313;
    --ink-2: #1F1F1F;
    --ink-3: #2A2A2A;
    --red: #DC2626;
    --red-2: #B91C1C;
    --amber: #F59E0B;
    --amber-2: #FCD34D;
    --white: #FFFFFF;
    --g-100: #EFEBE3;
    --g-200: #DDD6C8;
    --g-300: #C9C2B5;
    --g-500: #8A8275;
    --g-700: #4A4640;
    --g-900: #1F1C18;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --script: 'Caveat', cursive;
    --ease: cubic-bezier(0.16, 1, 0.3, 1)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased
}

@media(max-width:968px) {
    body {
        cursor: auto
    }
}

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

button {
    font-family: inherit;
    cursor: none;
    border: none;
    background: none;
    color: inherit
}

@media(max-width:968px) {
    button {
        cursor: pointer
    }
}

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

::selection {
    background: var(--red);
    color: white
}

/* PRELOADER */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s var(--ease), visibility .6s var(--ease)
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden
}

.preloader-inner {
    text-align: center;
    width: 300px
}

.preloader-logo {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 24px;
    letter-spacing: -2px
}

.preloader-logo .pl-e {
    font-size: 2rem;
    color: var(--ink)
}

.preloader-bar {
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, .08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--red);
    transition: width .15s linear
}

.preloader-pct {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--g-700)
}

/* CURSOR */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    will-change: transform;
    transform: translate(-50%, -50%)
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--red)
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--red);
    transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease)
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, .1)
}

.cursor-dot.hover {
    width: 0;
    height: 0
}

@media(max-width:968px) {

    .cursor-dot,
    .cursor-ring {
        display: none
    }
}

/* GRAIN */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: .04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>")
}

/* WRAP + TYPE */
.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px
}

@media(max-width:768px) {
    .wrap {
        padding: 0 20px
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--g-700)
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--red)
}

.eyebrow.light {
    color: var(--g-300)
}

.eyebrow.light::before {
    background: var(--amber)
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.02
}

.italic {
    font-style: italic;
    color: var(--red)
}

.italic-amber {
    font-style: italic;
    color: var(--amber)
}

/* BUTTONS */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 100px;
    font-weight: 500;
    font-size: .9rem;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    position: relative;
    cursor: none;
    white-space: nowrap
}

@media(max-width:968px) {
    .btn-pill {
        cursor: pointer
    }
}

.btn-pill svg {
    width: 13px;
    height: 13px;
    transition: transform .3s var(--ease);
    flex-shrink: 0
}

.btn-pill:hover svg {
    transform: translate(2px, -2px)
}

.btn-pill-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink)
}

.btn-pill-ghost:hover {
    background: var(--ink);
    color: var(--cream)
}

.btn-pill-dark {
    background: var(--ink);
    color: var(--cream);
    border: 1.5px solid var(--ink)
}

.btn-pill-dark:hover {
    background: var(--red);
    border-color: var(--red)
}

.btn-pill-light {
    background: var(--cream);
    color: var(--ink);
    border: 1.5px solid var(--cream)
}

.btn-pill-light:hover {
    background: var(--amber);
    border-color: var(--amber)
}

/* LOGO */
.nav-logo {
    color: #D01C1F;
    display: inline-flex;
    align-items: center;
    line-height: 0;
    font-size: 0
}

.nav-logo svg.ac-logo {
    height: 38px;
    width: auto;
    display: block
}

.preloader-logo {
    color: #D01C1F;
    line-height: 0;
    font-size: 0;
    margin-bottom: 24px
}

.preloader-logo svg.ac-logo {
    width: 130px;
    height: auto;
    display: block;
    margin: 0 auto
}

.ft-logo {
    color: var(--cream);
    line-height: 0;
    font-size: 0;
    margin-bottom: 22px
}

.ft-logo svg.ac-logo {
    width: 120px;
    height: auto;
    display: block
}

/* NAV */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease)
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(245, 241, 234, .85);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, .04)
}

.nav-c {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px
}

.nav-logo {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--red);
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    gap: 3px
}

.nav-logo .pl-e {
    font-size: 1.1rem;
    color: var(--ink)
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.nav-burger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    cursor: none;
    transition: background .3s var(--ease);
    flex-shrink: 0;
    padding: 0
}

@media(max-width:968px) {
    .nav-burger {
        cursor: pointer
    }
}

.nav-burger:hover {
    background: var(--ink)
}

.nav-burger:hover span {
    background: var(--cream)
}

.nav-burger span {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .3s var(--ease), background .3s var(--ease);
    display: block
}

.nav-burger.open span:first-child {
    transform: translateY(4px) rotate(45deg)
}

.nav-burger.open span:last-child {
    transform: translateY(-2px) rotate(-45deg)
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
    padding: 60px
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible
}

.nav-overlay a {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 5rem);
    color: var(--cream);
    transition: color .3s, transform .4s var(--ease);
    letter-spacing: -.02em
}

.nav-overlay a:hover {
    color: var(--amber);
    transform: translateX(20px)
}

@media(max-width:768px) {
    .btn-pill-ghost {
        display: none
    }
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform .9s var(--ease)
}

.reveal.in {
    opacity: 1;
    transform: translateY(0)
}

/* FOOTER */
.footer {
    background: var(--ink-2);
    color: var(--cream);
    padding: 90px 0 0;
    position: relative;
    overflow: hidden
}

.foot-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--ink-3)
}

.foot-brand .ft-logo {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: 2.4rem;
    margin-bottom: 18px;
    letter-spacing: -1px
}

.foot-brand .ft-logo .red {
    color: var(--red)
}

.foot-brand .ft-logo .e {
    color: var(--amber);
    font-size: 1.6rem
}

.foot-brand p {
    color: var(--g-300);
    max-width: 320px;
    line-height: 1.6;
    font-size: .95rem
}

.foot-col h5 {
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .15em;
    color: var(--amber);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase
}

.foot-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--g-300);
    font-size: .95rem;
    transition: color .3s, transform .3s
}

.foot-col a:hover {
    color: var(--cream);
    transform: translateX(3px)
}

.foot-bot {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    font-size: .85rem;
    color: var(--g-500);
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--mono)
}

.foot-legal {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--mono)
}

.foot-legal a {
    color: var(--g-500);
    transition: color .3s var(--ease)
}

.foot-legal a:hover {
    color: var(--cream)
}

.foot-social a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--g-300);
    font-size: .92rem;
    transition: color .3s var(--ease), transform .3s var(--ease);
    text-decoration: none
}

.foot-social a:hover {
    color: var(--cream);
    transform: translateX(3px)
}

.foot-social .social-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .3s var(--ease)
}

.foot-social a:hover .social-ico {
    transform: scale(1.1)
}

.foot-mega {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: clamp(5rem, 18vw, 16rem);
    line-height: .85;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(245, 158, 11, .3);
    margin-top: 50px;
    margin-bottom: -30px;
    letter-spacing: -.04em;
    user-select: none
}

.foot-mega .red {
    -webkit-text-stroke-color: rgba(220, 38, 38, .4)
}

@media(max-width:968px) {
    .foot-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px
    }

    .foot-brand {
        grid-column: span 2
    }
}

@media(max-width:600px) {
    .foot-top {
        grid-template-columns: 1fr
    }

    .foot-brand {
        grid-column: span 1
    }
}

/* WORK HERO */
.work-hero {
    padding: 200px 0 80px;
    background: var(--cream);
    position: relative;
    overflow: hidden
}

.work-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, .12), transparent 70%);
    top: 60px;
    right: -100px;
    filter: blur(50px);
    pointer-events: none
}

.work-hero .eyebrow {
    margin-bottom: 30px
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 1;
    margin-bottom: 30px;
    max-width: 1100px
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--g-700);
    max-width: 620px;
    margin-bottom: 60px;
    line-height: 1.55
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--g-300);
    max-width: 700px
}

.hero-stats>div {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.hero-stats strong {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--red);
    line-height: 1
}

.hero-stats span {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .15em;
    color: var(--g-700);
    text-transform: uppercase
}

@media(max-width:768px) {
    .work-hero {
        padding: 130px 0 50px
    }

    .hero-title {
        font-size: clamp(2.4rem, 8vw, 4.6rem);
        margin-bottom: 22px
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 40px
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-top: 30px
    }

    .hero-stats strong {
        font-size: 2rem
    }
}

@media(max-width:420px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 18px
    }
}

/* FILTERS */
.filters {
    padding: 30px 0 60px;
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--g-200)
}

.filters.stuck {
    background: rgba(245, 241, 234, .92);
    backdrop-filter: blur(20px)
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

@media(max-width:640px) {
    .filters {
        padding: 20px 0 30px;
        position: static
    }

    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none
    }

    .chips::-webkit-scrollbar {
        display: none
    }

    .chip {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: .78rem
    }
}

.chip {
    padding: 10px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--g-300);
    background: transparent;
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink);
    transition: all .3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: none
}

@media(max-width:968px) {
    .chip {
        cursor: pointer
    }
}

.chip:hover {
    border-color: var(--ink)
}

.chip.active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink)
}

.chip .ct {
    font-family: var(--mono);
    font-size: .7rem;
    opacity: .7
}

/* GALLERY GRID — uniform, fully responsive */
.gallery {
    padding: 60px 0 140px;
    background: var(--cream)
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.g-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--g-100);
    cursor: none;
    transition: opacity .35s var(--ease), transform .5s var(--ease);
    aspect-ratio: 4/5
}

.g-card[data-tone="red"] {
    background: #DC2626
}

.g-card[data-tone="amber"] {
    background: #F59E0B
}

.g-card[data-tone="ink"] {
    background: #131313
}

.g-card[data-tone="ink2"] {
    background: #1F1F1F
}

.g-card[data-tone="cream"] {
    background: #EBE4D6
}

@media(max-width:968px) {
    .g-card {
        cursor: pointer
    }
}

.g-card.hide {
    display: none
}

.g-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .8s var(--ease)
}

.g-card:hover .g-art {
    transform: scale(1.05)
}

.g-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: var(--cream);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    z-index: 2
}

.g-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(19, 19, 19, .85), rgba(19, 19, 19, .2) 65%, transparent);
    opacity: .95
}

.g-card:hover .g-overlay {
    opacity: 1;
    transform: translateY(0)
}

.g-cat {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 10px
}

.g-overlay h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--cream);
    margin-bottom: 8px;
    line-height: 1
}

.g-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 12px;
    font-weight: 500
}

.g-cta svg {
    width: 14px;
    height: 14px;
    transition: transform .3s var(--ease)
}

.g-card:hover .g-cta svg {
    transform: translate(3px, -3px)
}

.g-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .12em;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    backdrop-filter: blur(6px);
    text-transform: uppercase;
    z-index: 2;
    font-weight: 500
}

@media(max-width:1100px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px
    }
}

@media(max-width:640px) {
    .gallery {
        padding: 40px 0 80px
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .g-card {
        aspect-ratio: 5/4
    }

    .g-overlay {
        padding: 22px
    }

    .g-tag {
        top: 14px;
        left: 14px;
        font-size: .6rem
    }

    .g-overlay h3 {
        font-size: 1.4rem
    }
}

/* GALLERY CTA */
.cta-block {
    padding: 140px 0;
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden
}

.cta-block::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, .3), transparent 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px)
}

.cta-block .wrap {
    position: relative;
    z-index: 2
}

.cta-block h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--cream);
    margin-bottom: 30px;
    line-height: 1
}

.cta-block h2 .italic {
    color: var(--amber)
}

.cta-block p {
    color: var(--g-300);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto
}

@media(max-width:768px) {
    .cta-block {
        padding: 90px 0
    }
}