/* =========================================================
   IVORY DESIGN STUDIO
   MAIN WEBSITE STYLES
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background: #f4f1e9;
    color: #1c1c19;
}


/* =========================================================
   PAGE LOCK WHEN POPUP IS OPEN
========================================================= */

body.popup-open {
    overflow: hidden !important;
}


/* =========================================================
   OLD LOGO SUPPORT
========================================================= */

.logo-text {
    background: linear-gradient(
        90deg,
        #4CAF50,
        #8BC34A,
        #FFC107,
        #FF5722
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* =========================================================
   IVORY DESIGN PREMIUM HERO
========================================================= */

.ivory-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #e9e5dc;
    color: #f8f6f0;
}


/* =========================================================
   HERO BACKGROUND
========================================================= */

.ivory-hero-bg {
    position: absolute;
    inset: 0;

    background-image:
        url("{% static 'images/interior-hero.jpg' %}");

    background-size: cover;
    background-position: center;

    transform: scale(1.03);

    animation:
        ivoryBackground
        18s
        ease-in-out
        infinite
        alternate;
}


@keyframes ivoryBackground {

    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.08);
    }

}


/* =========================================================
   HERO DARK OVERLAY
========================================================= */

.ivory-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(15,15,13,0.78) 0%,
            rgba(15,15,13,0.50) 45%,
            rgba(15,15,13,0.20) 100%
        );
}


/* =========================================================
   NAVIGATION
========================================================= */

.ivory-nav {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 100px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 20;
}


/* =========================================================
   IVORY LOGO
========================================================= */

.ivory-logo {
    display: flex;
    align-items: center;

    gap: 14px;

    text-decoration: none;
    color: white;
}


.logo-mark {
    width: 80px;
    height: 56px;
    flex: 0 0 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 21px;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

.logo-mark img {
    display: block;
    width: 125%;
    height: auto;
    max-width: none;
    flex: none;
    object-fit: contain;
}

@media (hover:hover) and (pointer:fine) {
    .ivory-logo:hover .logo-mark {
        transform: translateY(-2px) scale(1.05);
        filter: drop-shadow(0 8px 12px rgba(0,0,0,.20));
    }
}


.logo-name {
    display: flex;
    flex-direction: column;

    line-height: 1;
}


.logo-name span {
    font-size: 14px;

    letter-spacing: 0.23em;

    font-weight: 500;
}


.logo-name small {
    margin-top: 7px;

    font-size: 7px;

    letter-spacing: 0.35em;

    opacity: 0.65;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.ivory-nav-links {
    display: flex;
    align-items: center;

    gap: 42px;
}

.ivory-about-menu {
    position: relative;
}

.ivory-about-menu__items {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    display: grid;
    min-width: 190px;
    padding: 8px 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.ivory-about-menu:hover .ivory-about-menu__items,
.ivory-about-menu:focus-within .ivory-about-menu__items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ivory-about-menu__items a {
    display: block;
    padding: 12px 16px !important;
    white-space: nowrap;
}

.ivory-about-menu__items a:hover,
.ivory-about-menu__items a:focus-visible {
    background: rgba(255, 255, 255, .12);
}

.ivory-contact-cluster {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ivory-nav-cup {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #f5f1e8;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.ivory-nav-cup svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ivory-nav-cup__body {
    fill: rgba(245, 241, 232, .16);
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 31px 39px;
    animation: ivoryCupFloat 3.2s ease-in-out infinite;
}

.ivory-nav-cup__shine {
    fill: rgba(245, 241, 232, .22);
    stroke: none;
}

.ivory-nav-cup__tea {
    stroke: #d9b95f;
    stroke-width: 1.6;
}

.ivory-nav-cup__steam {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
    animation: ivoryCupSteam 2.4s ease-in-out infinite;
}

.ivory-nav-cup__steam--two { animation-delay: .45s; }
.ivory-nav-cup__steam--three { animation-delay: .9s; }

.ivory-nav-cup__shadow {
    fill: rgba(0, 0, 0, .28);
    transform-origin: center;
    animation: ivoryCupShadow 3.2s ease-in-out infinite;
}

@keyframes ivoryCupFloat {
    0%, 100% { transform: translateY(1px) rotate(-1deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes ivoryCupShadow {
    0%, 100% { transform: scaleX(1); opacity: .45; }
    50% { transform: scaleX(.72); opacity: .2; }
}

@keyframes ivoryCupSteam {
    0% { opacity: 0; transform: translateY(4px); }
    30%, 65% { opacity: .72; }
    100% { opacity: 0; transform: translateY(-6px); }
}


.ivory-nav-links a {
    position: relative;

    color: white;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 0.20em;

    opacity: 0.80;

    transition: 0.3s ease;
}


.ivory-nav-links a:hover {
    opacity: 1;
}


.ivory-nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: white;

    transition: width 0.3s ease;
}


.ivory-nav-links a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.ivory-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    background: transparent;

    border: 1px solid rgba(255,255,255,0.5);

    border-radius: 50%;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;
}


.ivory-menu-btn span {
    width: 16px;
    height: 1px;

    background: white;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.ivory-mobile-menu {
    display: none;

    position: absolute;

    top: 90px;

    left: 5%;
    right: 5%;

    padding: 25px;

    background: rgba(20,20,18,0.96);

    backdrop-filter: blur(15px);

    z-index: 30;
}


.ivory-mobile-menu a {
    display: block;

    color: white;

    text-decoration: none;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(255,255,255,0.1);

    font-size: 11px;

    letter-spacing: 0.20em;
}

.ivory-mobile-about-menu__items a {
    padding-left: 20px;
    font-size: 10px;
    opacity: .82;
}


.ivory-mobile-menu.active {
    display: block;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.ivory-hero-content {
    position: relative;

    z-index: 5;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

    padding-left: 9%;
    padding-right: 9%;

    max-width: 1100px;
}


/* =========================================================
   HERO SMALL LABEL
========================================================= */

.hero-small-label {
    margin-bottom: 25px;

    font-size: 9px;

    letter-spacing: 0.35em;

    font-weight: 400;

    opacity: 0.72;
}


/* =========================================================
   TYPEWRITER
========================================================= */

.ivory-title {
    margin: 0;

    min-height: 1.1em;

    font-family: 'Fraunces', serif;

    font-size: clamp(52px, 8vw, 125px);

    font-weight: 400;

    line-height: 0.95;

    letter-spacing: -0.03em;

    text-transform: uppercase;

    color: #f5f1e8;
}


.typewriter-cursor {
    display: inline-block;

    margin-left: 5px;

    font-family: 'DM Sans', sans-serif;

    font-size: 0.65em;

    font-weight: 300;

    animation:
        ivoryCursor
        0.8s
        infinite;
}


@keyframes ivoryCursor {

    0%,
    45% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }

}


/* =========================================================
   HERO SUBTITLE
========================================================= */

.ivory-subtitle {
    max-width: 480px;

    margin-top: 30px;

    font-size: 15px;

    line-height: 1.8;

    font-weight: 300;

    color: rgba(255,255,255,0.78);
}


.ivory-subtitle span {
    color: white;

    font-style: italic;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.ivory-buttons {
    display: flex;

    gap: 15px;

    margin-top: 42px;
}


.ivory-btn {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 15px 22px;

    font-size: 9px;

    letter-spacing: 0.18em;

    text-decoration: none;

    transition: all 0.35s ease;
}


.ivory-btn-primary {
    background: #f2efe7;

    color: #1c1c19;
}


.ivory-btn-primary span {
    font-size: 16px;
}


.ivory-btn-primary:hover {
    background: white;

    transform: translateY(-2px);
}


.ivory-btn-outline {
    border: 1px solid rgba(255,255,255,0.45);

    color: white;
}


.ivory-btn-outline:hover {
    background: rgba(255,255,255,0.10);

    border-color: white;
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.ivory-hero-bottom {
    position: absolute;

    bottom: 35px;

    left: 5%;
    right: 5%;

    z-index: 10;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 8px;

    letter-spacing: 0.25em;

    opacity: 0.70;
}


.hero-location {
    display: flex;

    align-items: center;

    gap: 9px;
}


.dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #d7d2c7;
}


.hero-scroll {
    display: flex;

    align-items: center;

    gap: 14px;
}


.scroll-line {
    width: 45px;
    height: 1px;

    background: rgba(255,255,255,0.6);
}


/* =========================================================
   =========================================================
   IVORY POPUP ADVERTISEMENT
   COMPATIBLE WITH OLD + NEW HTML
   =========================================================
========================================================= */


/* =========================================================
   POPUP BODY LOCK
========================================================= */

body.popup-open {
    overflow: hidden !important;
}


/* =========================================================
   NEW IVORY POPUP OVERLAY
========================================================= */

.ivory-popup-overlay {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw;
    height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    background:
        rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(7px);

    -webkit-backdrop-filter: blur(7px);

    z-index: 2147483000 !important;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    overflow: auto;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =========================================================
   NEW POPUP VISIBLE
========================================================= */

.ivory-popup-overlay.ivory-popup-visible {

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;
}


/* =========================================================
   SUPPORT CLOSED STATE
========================================================= */

.ivory-popup-overlay.ivory-popup-closed {

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;
}


/* =========================================================
   OLD POPUP OVERLAY SUPPORT
========================================================= */

.popup-overlay {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw;

    height: 100vh;

    background:
        rgba(0,0,0,0.68);

    backdrop-filter: blur(7px);

    -webkit-backdrop-filter: blur(7px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    z-index: 2147483000 !important;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    overflow: auto;
}


/* =========================================================
   OLD POPUP HIDDEN
========================================================= */

.popup-overlay.hidden {

    display: none !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;
}


/* =========================================================
   OLD POPUP CLOSING
========================================================= */

.popup-overlay.popup-closing {

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* =========================================================
   IVORY POPUP BOX
========================================================= */

.ivory-popup-box {

    position: relative;

    width: min(760px, 92vw);

    max-height: 88vh;

    overflow: hidden;

    border-radius: 16px;

    background: #f3eee5;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.45);

    transform: scale(0.88);

    transition:
        transform 0.4s
        cubic-bezier(.2,.8,.2,1);

    z-index: 2147483001;

    pointer-events: auto;
}


/* =========================================================
   IVORY POPUP BOX ACTIVE
========================================================= */

.ivory-popup-visible .ivory-popup-box {

    transform: scale(1);
}


/* =========================================================
   OLD POPUP WRAPPER
========================================================= */

.popup-wrapper {

    position: relative;

    width: min(760px, 92vw);

    max-height: 88vh;

    display: block;

    z-index: 2147483001;

    pointer-events: auto;
}


/* =========================================================
   OLD POPUP CONTAINER
========================================================= */

.popup-container {

    position: relative;

    width: 100%;

    max-height: 88vh;

    overflow: hidden;

    border-radius: 16px;

    background: #f3eee5;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.45);

    animation:
        popupZoom
        0.4s
        ease-out;

    pointer-events: auto;
}


/* =========================================================
   IVORY IMAGE WRAPPER
========================================================= */

.ivory-popup-image-wrapper {

    position: relative;

    width: 100%;

    max-height: 88vh;

    overflow: hidden;
}


/* =========================================================
   OLD IMAGE WRAPPER
========================================================= */

.popup-image-wrapper {

    position: relative;

    width: 100%;

    max-height: 88vh;

    overflow: hidden;

    pointer-events: auto;
}


/* =========================================================
   IVORY POPUP IMAGE
========================================================= */

.ivory-popup-image {

    display: block;

    width: 100%;

    max-height: 88vh;

    object-fit: cover;

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   OLD POPUP IMAGE
========================================================= */

.popup-image {

    display: block;

    width: 100%;

    max-height: 88vh;

    object-fit: cover;

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   IVORY IMAGE GRADIENT
========================================================= */

.ivory-popup-gradient {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 2;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.55) 30%,
            rgba(0,0,0,0.08) 65%,
            transparent 100%
        );
}


/* =========================================================
   OLD IMAGE GRADIENT
========================================================= */

.popup-image-wrapper::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.10) 45%,
            rgba(0,0,0,0.78) 100%
        );

    z-index: 1;

    pointer-events: none;
}


/* =========================================================
   IVORY POPUP CONTENT
========================================================= */

.ivory-popup-content {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 5;

    padding:
        100px
        45px
        38px;

    color: white;

    pointer-events: none;

    text-shadow:
        0 2px 10px rgba(0,0,0,0.65);
}


/* =========================================================
   IVORY POPUP TITLE
========================================================= */

.ivory-popup-content h2 {

    margin:
        0 0 12px;

    font-family:
        'Fraunces',
        serif;

    font-size:
        clamp(28px, 5vw, 48px);

    font-weight: 400;

    line-height: 1.05;

    color: white;
}


/* =========================================================
   IVORY POPUP DESCRIPTION
========================================================= */

.ivory-popup-content p {

    max-width: 620px;

    margin: 0;

    font-family:
        'DM Sans',
        sans-serif;

    font-size: 14px;

    line-height: 1.7;

    color:
        rgba(255,255,255,0.90);
}


/* =========================================================
   OLD POPUP CONTENT
========================================================= */

.popup-content-bottom {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        100px
        35px
        30px;

    color: white;

    z-index: 5;

    pointer-events: none;

    text-shadow:
        0 2px 10px rgba(0,0,0,0.65);
}


/* =========================================================
   OLD POPUP HEADING
========================================================= */

.popup-heading-overlay {

    margin:
        0 0 10px;

    font-family:
        'Fraunces',
        serif;

    font-size:
        clamp(24px, 4vw, 42px);

    font-weight: 400;

    line-height: 1.1;

    color: white;
}


/* =========================================================
   OLD POPUP DESCRIPTION
========================================================= */

.popup-description-overlay {

    margin: 0;

    max-width: 600px;

    font-family:
        'DM Sans',
        sans-serif;

    font-size: 14px;

    line-height: 1.7;

    color:
        rgba(255,255,255,0.92);
}


/* =========================================================
   IVORY TEXT ONLY POPUP
========================================================= */

.ivory-popup-text-only {

    padding:
        60px
        45px;

    text-align: center;
}


/* =========================================================
   IVORY TEXT ONLY TITLE
========================================================= */

.ivory-popup-text-only h2 {

    margin:
        0 0 18px;

    font-family:
        'Fraunces',
        serif;

    font-size: 40px;

    font-weight: 400;

    color: #29251f;
}


/* =========================================================
   IVORY TEXT ONLY DESCRIPTION
========================================================= */

.ivory-popup-text-only p {

    max-width: 600px;

    margin: auto;

    font-family:
        'DM Sans',
        sans-serif;

    font-size: 15px;

    line-height: 1.8;

    color: #5f5a52;
}


/* =========================================================
   OLD TEXT ONLY POPUP
========================================================= */

.popup-text-only {

    padding:
        60px
        45px;

    text-align: center;
}


.popup-text-only h2 {

    margin:
        0 0 18px;

    font-family:
        'Fraunces',
        serif;

    font-size: 40px;

    font-weight: 400;

    color: #29251f;
}


.popup-text-only p {

    max-width: 600px;

    margin: auto;

    font-family:
        'DM Sans',
        sans-serif;

    font-size: 15px;

    line-height: 1.8;

    color: #5f5a52;
}


/* =========================================================
   IVORY CLOSE BUTTON
========================================================= */

.ivory-popup-close {

    position: absolute !important;

    top: 15px !important;

    right: 15px !important;

    width: 44px !important;

    height: 44px !important;

    padding: 0 !important;

    margin: 0 !important;

    border: none !important;

    border-radius: 50% !important;

    background:
        rgba(20,20,18,0.90) !important;

    color: white !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    cursor: pointer !important;

    z-index: 2147483647 !important;

    font-family:
        Arial,
        sans-serif;

    font-size: 30px !important;

    line-height: 1 !important;

    pointer-events: auto !important;

    appearance: none;

    -webkit-appearance: none;

    touch-action: manipulation;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   OLD CLOSE BUTTON
========================================================= */

.popup-close {

    position: absolute !important;

    top: 15px !important;

    right: 15px !important;

    width: 44px !important;

    height: 44px !important;

    padding: 0 !important;

    margin: 0 !important;

    border: none !important;

    border-radius: 50% !important;

    background:
        rgba(20,20,18,0.90) !important;

    color: white !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    cursor: pointer !important;

    z-index: 2147483647 !important;

    font-family:
        Arial,
        sans-serif;

    font-size: 30px !important;

    line-height: 1 !important;

    pointer-events: auto !important;

    appearance: none;

    -webkit-appearance: none;

    touch-action: manipulation;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   CLOSE BUTTON SPAN
========================================================= */

.ivory-popup-close span,
.popup-close span {

    display: block;

    pointer-events: none;

    transform:
        translateY(-1px);
}


/* =========================================================
   CLOSE HOVER
========================================================= */

.ivory-popup-close:hover,
.popup-close:hover {

    background:
        #000000 !important;

    transform:
        scale(1.08);
}


/* =========================================================
   CLOSE ACTIVE
========================================================= */

.ivory-popup-close:active,
.popup-close:active {

    transform:
        scale(0.94);
}


/* =========================================================
   CLOSE FOCUS
========================================================= */

.ivory-popup-close:focus,
.popup-close:focus {

    outline: none;
}


/* =========================================================
   POPUP ANIMATION
========================================================= */

@keyframes popupZoom {

    from {

        transform:
            scale(0.85);

        opacity: 0;
    }

    to {

        transform:
            scale(1);

        opacity: 1;
    }

}


/* =========================================================
   CHAT ICON
========================================================= */

.chat-icon {

    position: fixed;

    bottom: 30px;

    left: 30px;

    z-index: 50;
}


/* =========================================================
   PAGE 2 — SELECTED WORKS
========================================================= */

.ivory-works-section {

    min-height: 100vh;

    padding:
        120px
        7%
        80px;

    background:
        #f4f1e9;

    color:
        #1c1c19;

    overflow:
        hidden;
}


/* =========================================================
   WORKS HEADER
========================================================= */

.works-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    margin-bottom:
        65px;
}


.section-eyebrow {

    display:
        block;

    margin-bottom:
        20px;

    font-size:
        9px;

    letter-spacing:
        .35em;

    color:
        #77736b;
}


.works-header h2,
.clients-intro h2 {

    margin:
        0;

    font-family:
        'Fraunces',
        serif;

    font-size:
        clamp(48px, 6vw, 85px);

    font-weight:
        400;

    line-height:
        .95;

    letter-spacing:
        -.035em;
}


.works-header h2 em,
.clients-intro h2 em {

    font-weight:
        400;

    color:
        #888278;
}


.works-header > p {

    max-width:
        340px;

    margin:
        0;

    font-size:
        13px;

    line-height:
        1.8;

    color:
        #77736b;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.works-grid {

    display:
        grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr;

    grid-auto-rows:
        330px;

    gap:
        18px;
}


.work-card {

    position:
        relative;

    overflow:
        hidden;

    display:
        block;

    text-decoration:
        none;

    background:
        #d8d4ca;
}


.work-large {

    grid-row:
        span 2;
}


.work-wide {

    grid-column:
        span 2;
}


.work-card img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .9s cubic-bezier(.2,.7,.2,1),
        filter .6s ease;
}


.work-card:hover img {

    transform:
        scale(1.07);

    filter:
        brightness(.75);
}


/* =========================================================
   PROJECT OVERLAY
========================================================= */

.work-overlay {

    position:
        absolute;

    inset:
        0;

    padding:
        25px;

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    color:
        white;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.65),
            transparent 55%
        );

    opacity:
        .9;
}


.work-overlay span {

    font-size:
        8px;

    letter-spacing:
        .2em;

    opacity:
        .7;
}


.work-overlay h3 {

    margin:
        7px 0 4px;

    font-family:
        'Fraunces',
        serif;

    font-size:
        27px;

    font-weight:
        400;
}


.work-overlay p {

    margin:
        0;

    font-size:
        9px;

    letter-spacing:
        .15em;

    opacity:
        .7;
}


.work-arrow {

    width:
        42px;

    height:
        42px;

    border:
        1px solid rgba(255,255,255,.5);

    border-radius:
        50%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        16px !important;

    opacity:
        0 !important;

    transform:
        translateY(10px);

    transition:
        .4s ease;
}


.work-card:hover .work-arrow {

    opacity:
        1 !important;

    transform:
        translateY(0);
}


/* =========================================================
   WORK FOOTER
========================================================= */

.works-footer {

    display:
        flex;

    justify-content:
        space-between;

    margin-top:
        25px;

    padding-top:
        20px;

    border-top:
        1px solid #d6d1c6;

    font-size:
        8px;

    letter-spacing:
        .25em;

    color:
        #77736b;
}


.works-footer a {

    color:
        #1c1c19;

    text-decoration:
        none;
}


.works-footer a span {

    margin-left:
        10px;

    font-size:
        15px;
}


/* =========================================================
   PAGE 3 — CLIENTS
========================================================= */

.ivory-clients-section {

    min-height:
        100vh;

    position:
        relative;

    overflow:
        hidden;

    padding:
        130px 0 60px;

    background:
        #dedbd2;

    color:
        #1c1c19;
}


.clients-intro {

    width:
        86%;

    margin:
        auto;
}


.clients-intro .dark {

    color:
        #77736b;
}


.clients-intro p {

    max-width:
        390px;

    margin-top:
        30px;

    font-size:
        13px;

    line-height:
        1.8;

    color:
        #77736b;
}


/* =========================================================
   CLIENT MARQUEE
========================================================= */

.clients-marquee {

    position:
        relative;

    width:
        100%;

    height:
        370px;

    margin-top:
        70px;

    overflow:
        hidden;
}


.clients-marquee::before {

    content:
        "";

    position:
        absolute;

    left:
        -10%;

    right:
        -10%;

    top:
        45%;

    height:
        300px;

    border-top:
        1px solid rgba(28,28,25,.08);

    border-radius:
        50% 50% 0 0;
}


.clients-track {

    position:
        absolute;

    left:
        0;

    top:
        50%;

    display:
        flex;

    align-items:
        center;

    gap:
        70px;

    width:
        max-content;

    animation:
        clientMarquee
        28s
        linear
        infinite;
}


/* =========================================================
   CLIENT LOGO
========================================================= */

.client-logo {

    width:
        150px;

    height:
        90px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    opacity:
        .55;

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.client-logo img {

    max-width:
        120px;

    max-height:
        55px;

    width:
        auto;

    height:
        auto;

    object-fit:
        contain;

    filter:
        grayscale(100%)
        contrast(.8);
}


.client-logo:hover {

    opacity:
        1;

    transform:
        scale(1.08);
}


/* =========================================================
   CLIENT CURVE
========================================================= */

.logo-1 {

    transform:
        translateY(70px)
        rotate(7deg);
}


.logo-2 {

    transform:
        translateY(30px)
        rotate(4deg);
}


.logo-3 {

    transform:
        translateY(0)
        rotate(0deg);
}


.logo-4 {

    transform:
        translateY(-30px)
        rotate(-4deg);
}


.logo-5 {

    transform:
        translateY(-55px)
        rotate(-7deg);
}


.logo-6 {

    transform:
        translateY(-30px)
        rotate(-4deg);
}


/* =========================================================
   MARQUEE ANIMATION
========================================================= */

@keyframes clientMarquee {

    0% {

        transform:
            translateX(0);
    }

    100% {

        transform:
            translateX(-50%);
    }

}


/* =========================================================
   CLIENT FOOTER
========================================================= */

.clients-bottom {

    width:
        86%;

    margin:
        30px auto 0;

    padding-top:
        20px;

    border-top:
        1px solid rgba(28,28,25,.15);

    display:
        flex;

    justify-content:
        space-between;

    font-size:
        8px;

    letter-spacing:
        .25em;

    color:
        #77736b;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .works-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            25px;
    }


    .works-grid {

        grid-template-columns:
            1fr 1fr;

        grid-auto-rows:
            280px;
    }


    .work-large {

        grid-row:
            span 1;
    }


    .work-wide {

        grid-column:
            span 2;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 1100px) {
    .ivory-nav-links { display: none; }
    .ivory-menu-btn { display: flex; }
}

@media (max-width: 768px) {

    /* NAVIGATION */

    .ivory-nav {

        height:
            80px;

        padding:
            0 6%;
    }


    .ivory-nav-links {

        display:
            none;
    }


    .ivory-menu-btn {

        display:
            flex;
    }


    /* HERO */

    .ivory-hero-content {

        padding-left:
            7%;

        padding-right:
            7%;

        justify-content:
            center;
    }


    .hero-small-label {

        font-size:
            7px;

        letter-spacing:
            .25em;
    }


    .ivory-title {

        font-size:
            clamp(
                43px,
                13vw,
                80px
            );
    }


    .ivory-subtitle {

        font-size:
            13px;

        max-width:
            320px;
    }


    .ivory-buttons {

        flex-direction:
            column;

        width:
            100%;
    }


    .ivory-btn {

        justify-content:
            space-between;

        width:
            230px;
    }


    .hero-scroll {

        display:
            none;
    }


    .hero-year {

        margin-left:
            auto;
    }


    /* WORKS */

    .ivory-works-section {

        padding:
            90px
            6%
            60px;
    }


    .works-header h2,
    .clients-intro h2 {

        font-size:
            48px;
    }


    .works-grid {

        grid-template-columns:
            1fr;

        grid-auto-rows:
            300px;
    }


    .work-large {

        grid-row:
            span 1;
    }


    .work-wide {

        grid-column:
            span 1;
    }


    .works-footer {

        flex-direction:
            column;

        gap:
            15px;
    }


    /* CLIENTS */

    .ivory-clients-section {

        padding-top:
            90px;
    }


    .clients-marquee {

        height:
            300px;
    }


    .clients-track {

        gap:
            30px;
    }


    .client-logo {

        width:
            120px;
    }


    .client-logo img {

        max-width:
            95px;
    }


    .clients-bottom {

        flex-direction:
            column;

        gap:
            15px;
    }


    /* =====================================================
       POPUP MOBILE
    ===================================================== */

    .ivory-popup-overlay,
    .popup-overlay {

        padding:
            18px;
    }


    .ivory-popup-box,
    .popup-wrapper {

        width:
            92vw;

        max-height:
            86vh;
    }


    .popup-container {

        max-height:
            86vh;
    }


    .ivory-popup-image-wrapper,
    .popup-image-wrapper {

        max-height:
            86vh;
    }


    .ivory-popup-image,
    .popup-image {

        max-height:
            86vh;

        object-fit:
            cover;
    }


    .ivory-popup-close,
    .popup-close {

        top:
            10px !important;

        right:
            10px !important;

        width:
            38px !important;

        height:
            38px !important;

        font-size:
            25px !important;
    }


    .ivory-popup-content,
    .popup-content-bottom {

        padding:
            80px
            22px
            24px;
    }


    .ivory-popup-content h2,
    .popup-heading-overlay {

        font-size:
            27px;
    }


    .ivory-popup-content p,
    .popup-description-overlay {

        font-size:
            12px;

        line-height:
            1.6;
    }


    .ivory-popup-text-only,
    .popup-text-only {

        padding:
            45px
            22px;
    }


    .ivory-popup-text-only h2,
    .popup-text-only h2 {

        font-size:
            30px;
    }


    .ivory-popup-text-only p,
    .popup-text-only p {

        font-size:
            13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .logo-mark {
        width: 64px;
        height: 48px;
        flex-basis: 64px;
    }


    .logo-name span {

        font-size:
            12px;
    }


    .logo-name small {

        font-size:
            6px;
    }


    .ivory-title {

        font-size:
            42px;

        letter-spacing:
            -.02em;
    }


    .hero-small-label {

        font-size:
            6px;
    }


    /* POPUP */

    .ivory-popup-overlay,
    .popup-overlay {

        padding:
            15px;
    }


    .ivory-popup-box,
    .popup-wrapper {

        width:
            90vw;

        max-height:
            86vh;
    }


    .popup-container {

        max-height:
            86vh;
    }


    .ivory-popup-close,
    .popup-close {

        top:
            8px !important;

        right:
            8px !important;

        width:
            38px !important;

        height:
            38px !important;

        font-size:
            23px !important;
    }


    .ivory-popup-content,
    .popup-content-bottom {

        padding:
            60px
            16px
            18px;
    }


    .ivory-popup-content h2,
    .popup-heading-overlay {

        font-size:
            22px;
    }


    .ivory-popup-content p,
    .popup-description-overlay {

        font-size:
            11px;

        line-height:
            1.5;
    }


    .ivory-popup-text-only,
    .popup-text-only {

        padding:
            40px
            18px;
    }


    .ivory-popup-text-only h2,
    .popup-text-only h2 {

        font-size:
            27px;
    }


    .ivory-popup-text-only p,
    .popup-text-only p {

        font-size:
            12px;

        line-height:
            1.6;
    }

}
/* =========================================================
   IVORY DESIGN — POPUP ADVERTISEMENT
   FINAL OVERRIDE
========================================================= */


/* ---------------------------------------------------------
   LOCK PAGE WHEN POPUP IS OPEN
--------------------------------------------------------- */

body.popup-open {
    overflow: hidden !important;
}


/* ---------------------------------------------------------
   POPUP OVERLAY
--------------------------------------------------------- */

.ivory-popup-overlay {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 20px !important;

    box-sizing: border-box !important;

    background: rgba(0, 0, 0, 0.72) !important;

    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;

    z-index: 2147483000 !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease !important;
}


/* ---------------------------------------------------------
   POPUP OPEN
--------------------------------------------------------- */

.ivory-popup-overlay.ivory-popup-visible {
    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;
}


/* ---------------------------------------------------------
   POPUP CLOSED
--------------------------------------------------------- */

.ivory-popup-overlay.ivory-popup-closed {
    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;
}


/* ---------------------------------------------------------
   POPUP BOX
--------------------------------------------------------- */

.ivory-popup-box {
    position: relative !important;

    display: block !important;

    width: min(760px, 92vw) !important;

    max-width: 760px !important;

    max-height: 88vh !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: hidden !important;

    background: #f3eee5 !important;

    border-radius: 16px !important;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55) !important;

    transform: scale(0.88) !important;

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1) !important;
}


/* ---------------------------------------------------------
   POPUP BOX OPEN ANIMATION
--------------------------------------------------------- */

.ivory-popup-overlay.ivory-popup-visible
.ivory-popup-box {
    transform: scale(1) !important;
}


/* ---------------------------------------------------------
   CLOSE BUTTON
--------------------------------------------------------- */

.ivory-popup-close {
    position: absolute !important;

    top: 15px !important;

    right: 15px !important;

    width: 44px !important;

    height: 44px !important;

    margin: 0 !important;

    padding: 0 !important;

    border: none !important;

    border-radius: 50% !important;

    background: rgba(15, 15, 13, 0.85) !important;

    color: white !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    z-index: 2147483647 !important;

    cursor: pointer !important;

    font-family: Arial, sans-serif !important;

    font-size: 30px !important;

    line-height: 1 !important;

    appearance: none !important;

    -webkit-appearance: none !important;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.3) !important;

    transition:
        transform .25s ease,
        background .25s ease !important;
}


.ivory-popup-close span {
    display: block !important;

    pointer-events: none !important;

    transform: translateY(-1px) !important;
}


.ivory-popup-close:hover {
    background: #000 !important;

    transform: scale(1.08) !important;
}


.ivory-popup-close:active {
    transform: scale(.94) !important;
}


/* ---------------------------------------------------------
   IMAGE WRAPPER
--------------------------------------------------------- */

.ivory-popup-image-wrapper {
    position: relative !important;

    width: 100% !important;

    max-height: 88vh !important;

    overflow: hidden !important;
}


/* ---------------------------------------------------------
   POPUP IMAGE
--------------------------------------------------------- */

.ivory-popup-image {
    display: block !important;

    width: 100% !important;

    height: auto !important;

    max-height: 88vh !important;

    object-fit: cover !important;

    margin: 0 !important;

    padding: 0 !important;
}


/* ---------------------------------------------------------
   IMAGE GRADIENT
--------------------------------------------------------- */

.ivory-popup-gradient {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.90) 0%,
            rgba(0,0,0,.60) 28%,
            rgba(0,0,0,.12) 65%,
            transparent 100%
        ) !important;
}


/* ---------------------------------------------------------
   POPUP CONTENT
--------------------------------------------------------- */

.ivory-popup-content {
    position: absolute !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    z-index: 10 !important;

    padding:
        100px
        45px
        38px !important;

    box-sizing: border-box !important;

    color: white !important;
}


.ivory-popup-content h2 {
    margin:
        0 0 12px !important;

    font-family:
        'Fraunces',
        serif !important;

    font-size:
        clamp(28px, 5vw, 48px) !important;

    font-weight: 400 !important;

    line-height: 1.05 !important;

    color: white !important;
}


.ivory-popup-content p {
    max-width: 620px !important;

    margin: 0 !important;

    font-family:
        'DM Sans',
        sans-serif !important;

    font-size: 14px !important;

    line-height: 1.7 !important;

    color:
        rgba(255,255,255,.90) !important;
}


/* ---------------------------------------------------------
   TEXT ONLY POPUP
--------------------------------------------------------- */

.ivory-popup-text-only {
    padding:
        60px 45px !important;

    box-sizing: border-box !important;

    text-align: center !important;

    background: #f3eee5 !important;
}


.ivory-popup-text-only h2 {
    margin:
        0 0 18px !important;

    font-family:
        'Fraunces',
        serif !important;

    font-size: 40px !important;

    font-weight: 400 !important;

    color: #29251f !important;
}


.ivory-popup-text-only p {
    max-width: 600px !important;

    margin: auto !important;

    font-family:
        'DM Sans',
        sans-serif !important;

    font-size: 15px !important;

    line-height: 1.8 !important;

    color: #5f5a52 !important;
}


/* =========================================================
   MOBILE POPUP
========================================================= */

@media (max-width: 768px) {

    .ivory-popup-overlay {
        padding: 15px !important;
    }

    .ivory-popup-box {
        width: 92vw !important;

        max-width: 92vw !important;

        max-height: 86vh !important;

        border-radius: 13px !important;
    }

    .ivory-popup-image-wrapper {
        max-height: 86vh !important;
    }

    .ivory-popup-image {
        max-height: 86vh !important;

        object-fit: cover !important;
    }

    .ivory-popup-close {
        top: 10px !important;

        right: 10px !important;

        width: 40px !important;

        height: 40px !important;

        font-size: 25px !important;
    }

    .ivory-popup-content {
        padding:
            80px
            22px
            24px !important;
    }

    .ivory-popup-content h2 {
        font-size: 27px !important;
    }

    .ivory-popup-content p {
        font-size: 12px !important;

        line-height: 1.6 !important;
    }

    .ivory-popup-text-only {
        padding:
            45px 22px !important;
    }

    .ivory-popup-text-only h2 {
        font-size: 30px !important;
    }

    .ivory-popup-text-only p {
        font-size: 13px !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ivory-popup-box {
        width: 94vw !important;

        max-width: 94vw !important;
    }

    .ivory-popup-close {
        top: 8px !important;

        right: 8px !important;

        width: 38px !important;

        height: 38px !important;

        font-size: 23px !important;
    }

    .ivory-popup-content {
        padding:
            65px 16px 18px !important;
    }

    .ivory-popup-content h2 {
        font-size: 22px !important;
    }

    .ivory-popup-content p {
        font-size: 11px !important;
    }

}

/* Keep the client section's divider and labels at its bottom edge. */
.ivory-clients-section { display: flex; flex-direction: column; box-sizing: border-box; }
.ivory-clients-section > .clients-intro { margin: 0 auto; flex-shrink: 0; }
.ivory-clients-section > .clients-marquee { flex-shrink: 0; margin-bottom: 30px; }
.ivory-clients-section > .clients-bottom { margin: auto auto 0; flex-shrink: 0; }

/* Straight, continuous client logos. Equal groups make the loop seamless. */
.clients-marquee { height: auto; margin-top: clamp(80px, 12vh, 140px); padding: 24px 0; overflow: hidden; }
.clients-marquee::before { content: none; }
.clients-track { position: relative; top: auto; left: auto; display: flex; gap: 0; width: max-content; animation: clientMarqueeLeft 28s linear infinite; }
.clients-group { display: flex; flex: 0 0 auto; align-items: center; gap: 48px; padding-right: 48px; }
.client-logo { width: 180px; height: 100px; flex: 0 0 180px; opacity: 1; transform: none; }
.client-logo img { width: 160px; height: 80px; max-width: 160px; max-height: 80px; object-fit: contain; filter: none; }
.client-logo:hover { transform: none; }
@keyframes clientMarqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .clients-track { animation: none; width: 100%; }
    .clients-group { min-width: 0; flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; gap: 24px; }
    .clients-group[aria-hidden="true"], .clients-group [aria-hidden="true"] { display: none; }
}

/* Studio cursor and direct WhatsApp contact */
@media (pointer:fine) {
    html, body, a, button, input, textarea, select { cursor:none !important; }
    .ivory-cursor { position:fixed; top:0; left:0; width:28px; height:28px; margin:-14px 0 0 -14px; z-index:2147483646; pointer-events:none; opacity:0; border:1px solid rgba(32,30,26,.75); border-radius:50%; transition:width .22s,height .22s,margin .22s,background .22s,opacity .2s; }
    .ivory-cursor span { position:absolute; width:4px; height:4px; top:11px; left:11px; border-radius:50%; background:#292621; }
    .ivory-cursor.is-visible { opacity:1; }
    .ivory-cursor.is-active { width:52px; height:52px; margin:-26px 0 0 -26px; background:rgba(224,184,79,.18); }
    .ivory-cursor.is-active span { top:23px; left:23px; }
}
.ivory-whatsapp,
.ivory-instagram,
.ivory-facebook {
    position:fixed;
    right:24px;
    z-index:9996;
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    color:#f2efe7 !important;
    background:rgba(12,22,20,.22);
    border:1px solid rgba(242,239,231,.48);
    border-radius:50%;
    box-shadow:0 10px 28px rgba(0,0,0,.14);
    -webkit-backdrop-filter:blur(9px);
    backdrop-filter:blur(9px);
    transition:transform .25s ease,background-color .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.ivory-whatsapp { bottom:24px; }
.ivory-instagram { bottom:94px; }
.ivory-facebook { bottom:164px; }
.ivory-whatsapp:hover,
.ivory-instagram:hover,
.ivory-facebook:hover {
    transform:translateY(-4px) scale(1.04);
    background:rgba(255,255,255,.1);
    border-color:#f2efe7;
    box-shadow:0 14px 32px rgba(0,0,0,.2);
}
.ivory-whatsapp svg,
.ivory-instagram svg,
.ivory-facebook svg { width:29px; height:29px; }
@media(max-width:600px) {
    .ivory-whatsapp { right:16px; bottom:18px; width:52px; height:52px; }
    .ivory-instagram { right:16px; bottom:82px; width:52px; height:52px; }
    .ivory-facebook { right:16px; bottom:146px; width:52px; height:52px; }
}

/* Homepage selected works: vertical wheel movement drives a pinned horizontal gallery. */
@media (min-width:761px) and (prefers-reduced-motion:no-preference) {
    .ivory-works-section[data-horizontal-works] { position:relative; min-height:100vh; height:100vh; padding:0; overflow:visible; }
    .ivory-works-section .works-sticky { position:sticky; top:0; height:100vh; padding:clamp(72px,9vh,105px) 7% 48px; overflow:hidden; display:flex; flex-direction:column; background:#f4f1e9; }
    .ivory-works-section .works-header { flex:0 0 auto; margin-bottom:clamp(24px,4vh,48px); }
    .ivory-works-section .works-header h2 { font-size:clamp(42px,5vw,72px); }
    .ivory-works-section .works-viewport { flex:1; min-height:0; overflow:visible; }
    .ivory-works-section .works-grid { display:flex; width:max-content; height:100%; gap:22px; will-change:transform; transform:translate3d(0,0,0); }
    .ivory-works-section .work-card { flex:0 0 clamp(390px,48vw,720px); width:clamp(390px,48vw,720px); height:100%; min-height:280px; }
    .ivory-works-section .work-card:nth-child(2n) { flex-basis:clamp(330px,38vw,560px); width:clamp(330px,38vw,560px); }
    .ivory-works-section .work-large,.ivory-works-section .work-wide { grid-row:auto; grid-column:auto; }
    .ivory-works-section .works-footer { flex:0 0 auto; margin-top:24px; padding-top:15px; }
}
@media (max-width:760px) {
    .ivory-works-section .works-viewport { overflow-x:auto; scrollbar-width:none; margin:0 -7%; padding:0 7%; scroll-snap-type:x mandatory; }
    .ivory-works-section .works-viewport::-webkit-scrollbar { display:none; }
    .ivory-works-section .works-grid { display:flex; width:max-content; grid-auto-rows:auto; }
    .ivory-works-section .work-card { width:82vw; height:58vh; flex:0 0 82vw; scroll-snap-align:center; }
}

/* Playful editorial details inspired by expressive craft websites. */
.section-eyebrow { display:inline-flex; align-items:center; width:max-content; min-height:30px; padding:7px 13px; border:1px solid currentColor; border-radius:999px; letter-spacing:.22em; }
.ivory-btn { border-radius:999px !important; transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,background-color .28s ease,color .28s ease !important; }
.ivory-btn:hover { transform:translateY(-4px) rotate(-1deg); box-shadow:0 12px 28px rgba(24,21,17,.18); }
.ivory-btn + .ivory-btn:hover { transform:translateY(-4px) rotate(1deg); }
.ivory-btn span { display:inline-block; transition:transform .3s ease; }
.ivory-btn:hover span { transform:translate(3px,-3px) rotate(8deg); }
.ivory-nav-links a { padding:9px 13px; border-radius:999px; transition:color .25s ease,background-color .25s ease,transform .25s ease,opacity .25s ease; }
.ivory-nav-links a::after { display:none; }
.ivory-nav-links a:hover { background:rgba(255,255,255,.14); transform:translateY(-2px); }
.ivory-nav-links .ivory-about-menu__items a { border-radius:0; background-image:none; transform:none; }
.ivory-nav-links .ivory-about-menu__items a:hover,
.ivory-nav-links .ivory-about-menu__items a:focus-visible { background:rgba(255,255,255,.12); transform:none; }
.work-card { border-radius:clamp(18px,2vw,32px); transform:translateZ(0); transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s ease; }
.work-card:nth-child(even) { border-radius:clamp(36px,5vw,76px) clamp(18px,2vw,32px) clamp(36px,5vw,76px) clamp(18px,2vw,32px); }
.work-card:hover { transform:translateY(-8px) rotate(.35deg); box-shadow:0 24px 55px rgba(30,26,20,.18); }
.work-overlay { padding:clamp(20px,2.4vw,34px); }
.work-arrow { background:rgba(246,241,231,.92); border-color:transparent; color:#201e1a; }
.works-footer a,.footer-contact-link { border-radius:999px; transition:transform .25s ease,background-color .25s ease; }
.works-footer a:hover { transform:translateX(5px); }
.footer-contact-link:hover { transform:translateY(-2px); }
.client-logo { border-radius:22px; transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease; }
.client-logo:hover { transform:translateY(-7px) rotate(-1.5deg); box-shadow:0 16px 35px rgba(31,27,21,.12); }
@media (max-width:768px) {
    .section-eyebrow { min-height:26px; padding:6px 10px; }
    .ivory-nav-links a { border-radius:0; padding:0; }
    .work-card,.work-card:nth-child(even) { border-radius:20px 20px 38px 20px; }
    .work-card:hover { transform:none; }
}
@media (prefers-reduced-motion:reduce) {
    .ivory-btn,.work-card,.client-logo { transition:none; }
    .ivory-btn:hover,.work-card:hover,.client-logo:hover { transform:none; }
    .ivory-nav-cup__body,
    .ivory-nav-cup__shadow,
    .ivory-nav-cup__steam { animation:none; }
    .ivory-nav-cup__steam { opacity:.55; }
}

/* Tactile ink-hover language, adapted for Ivory's quiet editorial palette. */
@media (hover:hover) and (pointer:fine) {
    :is(.ivory-nav-links a,.ivory-mobile-menu a,.ivory-btn,.works-footer a,
        .footer-contact-link,.ivory-footer-contact a,.project-filters button,
        .project-row__content strong,.case-copy > a,.case-next a) {
        --ivory-hover-ink: rgba(224,184,79,.46);
        background-image:linear-gradient(var(--ivory-hover-ink),var(--ivory-hover-ink));
        background-repeat:no-repeat;
        background-position:0 100%;
        background-size:0 34%;
        transition:background-size .42s cubic-bezier(.2,.8,.2,1),
                   transform .28s cubic-bezier(.2,.8,.2,1),
                   color .25s ease,box-shadow .28s ease;
    }
    :is(.ivory-nav-links a,.ivory-mobile-menu a,.ivory-btn,.works-footer a,
        .footer-contact-link,.ivory-footer-contact a,.project-filters button,
        .project-row__open:hover .project-row__content strong,.case-copy > a,.case-next a):hover,
    :is(.ivory-nav-links a,.ivory-mobile-menu a,.ivory-btn,.works-footer a,
        .footer-contact-link,.ivory-footer-contact a,.project-filters button,
        .case-copy > a,.case-next a):focus-visible {
        background-size:100% 34%;
    }
    .project-row__arrow,.work-arrow,.footer-contact-link span,.case-next a span {
        transition:transform .38s cubic-bezier(.2,.8,.2,1),background-color .3s ease,color .3s ease;
    }
    .project-row__open:hover .project-row__arrow,
    .work-card:hover .work-arrow,
    .footer-contact-link:hover span,
    .case-next a:hover span {
        transform:translate(5px,-5px) rotate(8deg);
    }
    .ivory-menu-btn span { transition:transform .3s cubic-bezier(.2,.8,.2,1),width .3s ease; }
    .ivory-menu-btn:hover span:first-child { transform:translateX(5px); }
    .ivory-menu-btn:hover span:last-child { transform:translateX(-5px); }

    .ivory-cursor {
        transform-origin:center;
        will-change:transform,width,height,margin;
        transition:width .32s cubic-bezier(.2,.9,.2,1),height .32s cubic-bezier(.2,.9,.2,1),
                   margin .32s cubic-bezier(.2,.9,.2,1),background .25s ease,border-color .25s ease,opacity .2s !important;
    }
    .ivory-cursor.is-reading { width:38px;height:38px;margin:-19px 0 0 -19px;background:rgba(224,184,79,.1);border-color:rgba(32,30,26,.48); }
    .ivory-cursor.is-reading span { top:16px;left:16px; }
    .ivory-cursor.is-active { width:58px;height:44px;margin:-22px 0 0 -29px;border-radius:54% 46% 52% 48%;background:rgba(224,184,79,.32);border-color:rgba(70,57,30,.58); }
    .ivory-cursor.is-active span { top:19px;left:26px; }
}

/* Raised controls: a restrained version of Raaka's dimensional button treatment. */
:is(.ivory-btn,.contact-action,.project-filters button) {
    position:relative;
    border:1.5px solid #211f1b !important;
    box-shadow:5px 6px 0 #211f1b !important;
    transform:translate(0,0);
    transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s cubic-bezier(.2,.8,.2,1),background-color .22s ease,color .22s ease !important;
}
.ivory-buttons .ivory-btn {
    box-shadow:none !important;
}
@media (hover:hover) and (pointer:fine) {
    :is(.ivory-btn,.contact-action,.project-filters button):hover {
        transform:translate(-3px,-4px) !important;
        box-shadow:8px 10px 0 #211f1b !important;
    }
    :is(.ivory-btn,.contact-action,.project-filters button):active {
        transform:translate(4px,5px) !important;
        box-shadow:1px 1px 0 #211f1b !important;
    }
}

/* Editorial contact form based on the supplied reference. */
.contact-page { background:#f4f1e9 !important; }
.contact-stage { padding-top:clamp(130px,14vw,190px) !important;padding-bottom:clamp(90px,10vw,140px) !important; }
.contact-shell { max-width:820px !important; }
.contact-heading { margin-bottom:38px !important; }
.contact-heading>p:first-child { display:inline-flex;padding:7px 14px;border:1px solid #29251f;border-radius:999px;font-size:10px !important; }
.contact-heading h1 { margin:18px auto 0;max-width:690px;font:500 clamp(48px,6.3vw,82px)/.92 'Fraunces',serif;letter-spacing:-.045em; }
.contact-heading>p:last-child { margin-top:22px !important;font-size:16px;color:#69635a !important; }
.contact-card { position:relative;background:#fffdf8 !important;border:2px solid #29251f;border-radius:28px !important;padding:clamp(30px,5vw,62px) !important;box-shadow:9px 11px 0 #29251f !important; }
.contact-card__brand { margin-bottom:35px !important; }
.contact-card__brand a { color:#29251f;text-decoration:none; }
.contact-card__brand a>div:first-child { font-family:'Fraunces',serif;font-size:35px !important;letter-spacing:.18em !important; }
.contact-form { display:grid;grid-template-columns:1fr 1fr;gap:22px; }
.contact-field { margin:0 !important; }
.contact-field:nth-of-type(3),.contact-field:nth-of-type(4),.contact-actions { grid-column:1/-1; }
.contact-field label { margin:0 0 9px !important;font-size:10px !important;font-weight:500;letter-spacing:.24em !important; }
.contact-field :is(input,textarea) { width:100%;border:1.5px solid #29251f !important;border-radius:0;background:#fff !important;padding:16px 17px !important;font:400 15px/1.5 'DM Sans',sans-serif;box-shadow:none;transition:box-shadow .2s ease,transform .2s ease,background-color .2s ease !important; }
.contact-field :is(input,textarea):focus { background:#fffaf0 !important;box-shadow:4px 4px 0 #e7bd62;transform:translate(-2px,-2px); }
.contact-field textarea { min-height:150px;resize:vertical !important; }
.contact-actions { margin-top:6px;gap:18px !important; }
.contact-action { border-radius:0 !important;padding:17px 24px !important;font-weight:600;background:#e7bd62 !important;color:#1e1c18 !important; }
.contact-action--secondary { background:#fffdf8 !important; }
@media(max-width:640px){
    .contact-stage { padding:112px 18px 80px !important; }
    .contact-heading h1 { font-size:44px; }
    .contact-card { border-radius:20px !important;padding:28px 20px 34px !important;box-shadow:6px 7px 0 #29251f !important; }
    .contact-form { grid-template-columns:1fr;gap:18px; }
    .contact-field,.contact-field:nth-of-type(3),.contact-field:nth-of-type(4),.contact-actions { grid-column:1; }
}

/* Ivory drafting cursor: a floor-plan point that becomes a material tile. */
@media (hover:hover) and (pointer:fine) {
    .ivory-cursor {
        width:24px !important;height:24px !important;margin:-12px 0 0 -12px !important;
        border:0 !important;border-radius:0 !important;background:transparent !important;
        overflow:visible;transition:width .3s cubic-bezier(.2,.9,.2,1),height .3s cubic-bezier(.2,.9,.2,1),margin .3s cubic-bezier(.2,.9,.2,1),opacity .2s !important;
    }
    .ivory-cursor::before,.ivory-cursor::after { content:"";position:absolute;pointer-events:none;transition:all .3s cubic-bezier(.2,.9,.2,1); }
    .ivory-cursor::before {
        inset:6px;border:1px solid #d3ad50;transform:rotate(45deg);
        box-shadow:2px 2px 0 rgba(25,24,20,.18);background:rgba(244,241,233,.08);
    }
    .ivory-cursor::after {
        inset:1px;opacity:.62;
        background:linear-gradient(#d3ad50,#d3ad50) center/1px 100% no-repeat,
                   linear-gradient(90deg,#d3ad50,#d3ad50) center/100% 1px no-repeat;
    }
    .ivory-cursor span {
        width:4px !important;height:4px !important;left:10px !important;top:10px !important;
        border-radius:1px !important;background:#1e1d19 !important;z-index:2;
        transition:all .3s cubic-bezier(.2,.9,.2,1);
    }
    .ivory-cursor.is-reading { width:12px !important;height:30px !important;margin:-15px 0 0 -6px !important; }
    .ivory-cursor.is-reading::before { inset:2px 5px;border:0;border-left:2px solid #d3ad50;transform:none;box-shadow:none;background:none; }
    .ivory-cursor.is-reading::after { inset:0;opacity:.32;background:linear-gradient(90deg,#d3ad50,#d3ad50) center/100% 1px no-repeat; }
    .ivory-cursor.is-reading span { width:3px !important;height:3px !important;left:4px !important;top:13px !important;background:#d3ad50 !important; }
    .ivory-cursor.is-active { width:48px !important;height:48px !important;margin:-26px 0 0 -26px !important; }
    .ivory-cursor.is-active::before {
        inset:7px;border:1.5px solid #201e1a;border-radius:3px;background:rgba(231,189,98,.92);
        box-shadow:5px 5px 0 rgba(32,30,26,.78);transform:rotate(45deg);
    }
    .ivory-cursor.is-active::after { inset:12px;opacity:.48;transform:rotate(45deg); }
    .ivory-cursor.is-active span { width:5px !important;height:5px !important;left:21px !important;top:21px !important;background:#201e1a !important;transform:rotate(45deg); }
}
@media (prefers-reduced-motion:reduce) {
    .ivory-cursor,.ivory-cursor::before,.ivory-cursor::after,.ivory-cursor span { transition:none !important; }
}

/* Familiar native cursors, selected automatically for each type of action. */
html,body { cursor:default !important; }
a,button,label[for],select,summary,[role="button"] { cursor:pointer !important; }
input,textarea,[contenteditable="true"] { cursor:text !important; }
input:is([type="button"],[type="submit"],[type="reset"],[type="checkbox"],[type="radio"],[type="file"]) { cursor:pointer !important; }
.ivory-cursor { display:none !important; }

/* Project reel: vertical wheel movement brings each project in from the side. */
@media (min-width:761px) and (prefers-reduced-motion:no-preference) {
    .ivory-works-section[data-horizontal-works] { position:relative; height:100vh; min-height:100vh; padding:0; overflow:visible; background:#050505; color:#f1f0eb; }
    .ivory-works-section[data-horizontal-works] .works-sticky { position:sticky; top:0; height:100vh; padding:0; overflow:hidden; display:block; background:#050505; }
    .ivory-works-section[data-horizontal-works] .works-viewport { width:100%; height:100%; min-height:0; overflow:hidden; }
    .ivory-works-section[data-horizontal-works] .works-grid { display:flex; width:max-content; height:100%; gap:0; transform:translate3d(0,0,0); will-change:transform; }
    .ivory-works-section[data-horizontal-works] .work-card,
    .ivory-works-section[data-horizontal-works] .work-card:nth-child(2n) { position:relative; flex:0 0 100vw; width:100vw; height:100%; min-height:0; border-radius:0 !important; overflow:hidden; background:#111; }
    .ivory-works-section[data-horizontal-works] .work-card:hover { transform:none; box-shadow:none; }
    .ivory-works-section[data-horizontal-works] .work-card img { width:100%; height:100%; object-fit:cover; filter:brightness(.56) saturate(.72); transition:transform 1.1s cubic-bezier(.2,.7,.2,1),filter .6s; }
    .ivory-works-section[data-horizontal-works] .work-card:hover img { transform:scale(1.025); filter:brightness(.68) saturate(.86); }
    .ivory-works-section[data-horizontal-works] .work-overlay { padding:0 clamp(24px,3vw,52px) clamp(126px,15vh,155px); align-items:flex-end; background:linear-gradient(0deg,rgba(0,0,0,.72),transparent 52%),linear-gradient(90deg,rgba(0,0,0,.22),transparent 44%); }
    .ivory-works-section[data-horizontal-works] .work-overlay h3 { margin:8px 0; color:rgba(245,244,238,.84); font:300 clamp(58px,7vw,122px)/.88 "DM Sans",sans-serif; letter-spacing:-.065em; text-transform:uppercase; white-space:nowrap; }
    .ivory-works-section[data-horizontal-works] .work-overlay p,
    .ivory-works-section[data-horizontal-works] .work-overlay>div>span { color:#c2c0ba; font-size:8px; letter-spacing:.23em; text-transform:uppercase; }
    .ivory-works-section[data-horizontal-works] .work-arrow { width:52px; height:52px; margin-bottom:4px; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.45); }
    .ivory-works-section[data-horizontal-works] .works-footer { position:absolute; z-index:4; left:3vw; right:3vw; bottom:22px; min-height:76px; margin:0; padding:18px 24px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border:0; background:transparent; color:#85847f; font-size:8px; letter-spacing:.25em; }
    .ivory-works-section[data-horizontal-works] .works-footer__identity,
    .ivory-works-section[data-horizontal-works] .works-footer__links { display:flex; flex-direction:column; gap:9px; }
    .ivory-works-section[data-horizontal-works] .works-footer__identity>span:last-child,
    .ivory-works-section[data-horizontal-works] .works-footer__scroll,
    .ivory-works-section[data-horizontal-works] .works-footer__links { color:#c2c0ba; }
    .ivory-works-section[data-horizontal-works] .works-footer__identity i { display:inline-block; width:6px; height:6px; margin-right:11px; border-radius:50%; background:#aaa; }
    .ivory-works-section[data-horizontal-works] .works-footer__scroll { display:flex; align-items:center; gap:22px; }
    .ivory-works-section[data-horizontal-works] .works-footer__scroll i { display:block; width:76px; height:1px; background:#70706d; }
    .ivory-works-section[data-horizontal-works] .works-footer__links { align-items:flex-end; }
    .ivory-works-section[data-horizontal-works] .works-footer a { color:#c2c0ba; text-decoration:none; }
    .ivory-works-section[data-horizontal-works] .works-footer a span { margin-left:18px; font-size:18px; }
}

@media (max-width:760px) {
    .ivory-works-section[data-horizontal-works] { padding:70px 0 24px; background:#050505; color:#f1f0eb; }
    .ivory-works-section[data-horizontal-works] .works-viewport { margin:0; padding:0; }
    .ivory-works-section[data-horizontal-works] .works-grid { gap:0; }
    .ivory-works-section[data-horizontal-works] .work-card { width:100vw; height:76vh; flex:0 0 100vw; border-radius:0 !important; }
    .ivory-works-section[data-horizontal-works] .work-overlay { padding:0 20px 42px; }
    .ivory-works-section[data-horizontal-works] .work-overlay h3 { font-size:clamp(42px,13vw,66px); text-transform:uppercase; }
    .ivory-works-section[data-horizontal-works] .works-footer { margin:0; padding:22px 20px 0; border-color:#333; color:#888; }
    .ivory-works-section[data-horizontal-works] .works-footer__identity>span:first-child,
    .ivory-works-section[data-horizontal-works] .works-footer__scroll { display:none; }
    .ivory-works-section[data-horizontal-works] .works-footer__identity i { display:inline-block; width:6px; height:6px; margin-right:9px; border-radius:50%; background:#aaa; }
    .ivory-works-section[data-horizontal-works] .works-footer__links { text-align:right; }
    .ivory-works-section[data-horizontal-works] .works-footer a { color:#bbb; }
}

/* Second homepage page: full-screen project sequence. */
.ivory-works-section:not([data-horizontal-works]) { min-height:100vh; padding:0; background:#050505; color:#f1f0eb; overflow:hidden; }
.ivory-works-section:not([data-horizontal-works]) .works-sticky { position:static; height:auto; padding:0; display:block; background:#050505; }
.ivory-works-section:not([data-horizontal-works]) .works-viewport { overflow:visible; margin:0; padding:0; }
.ivory-works-section:not([data-horizontal-works]) .works-grid { display:block; width:100%; height:auto; transform:none !important; }
.ivory-works-section:not([data-horizontal-works]) .work-card { position:relative; display:block; width:100%; height:100vh; min-height:620px; border-radius:0 !important; overflow:hidden; background:#111; }
.ivory-works-section:not([data-horizontal-works]) .work-card img { width:100%; height:100%; object-fit:cover; filter:brightness(.56) saturate(.7); transition:transform 1.1s cubic-bezier(.2,.7,.2,1),filter .6s; }
.ivory-works-section:not([data-horizontal-works]) .work-card:hover { transform:none; box-shadow:none; }
.ivory-works-section:not([data-horizontal-works]) .work-card:hover img { transform:scale(1.025); filter:brightness(.68) saturate(.85); }
.ivory-works-section:not([data-horizontal-works]) .work-overlay { padding:0 clamp(20px,3vw,52px) clamp(52px,7vh,85px); align-items:flex-end; background:linear-gradient(0deg,rgba(0,0,0,.72),transparent 48%),linear-gradient(90deg,rgba(0,0,0,.2),transparent 45%); }
.ivory-works-section:not([data-horizontal-works]) .work-overlay h3 { margin:8px 0; color:rgba(245,244,238,.82); font:300 clamp(58px,7vw,122px)/.88 "DM Sans",sans-serif; letter-spacing:-.065em; text-transform:uppercase; white-space:nowrap; }
.ivory-works-section:not([data-horizontal-works]) .work-overlay p,
.ivory-works-section:not([data-horizontal-works]) .work-overlay>div>span { color:#b9b7b1; font-size:8px; letter-spacing:.23em; text-transform:uppercase; }
.ivory-works-section:not([data-horizontal-works]) .work-arrow { width:52px; height:52px; margin-bottom:4px; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.45); }
.ivory-works-section:not([data-horizontal-works]) .works-footer { min-height:126px; margin:0; padding:30px 3vw 27px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border:0; background:#050505; color:#8b8a86; font-size:9px; letter-spacing:.25em; }
.ivory-works-section:not([data-horizontal-works]) .works-footer__identity,
.ivory-works-section:not([data-horizontal-works]) .works-footer__links { display:flex; flex-direction:column; gap:12px; }
.ivory-works-section:not([data-horizontal-works]) .works-footer__identity>span:last-child { color:#c5c3bd; }
.ivory-works-section:not([data-horizontal-works]) .works-footer__identity i { display:inline-block; width:7px; height:7px; margin-right:12px; border-radius:50%; background:#b9b8b3; }
.ivory-works-section:not([data-horizontal-works]) .works-footer__scroll { display:flex; align-items:center; gap:24px; color:#c5c3bd; }
.ivory-works-section:not([data-horizontal-works]) .works-footer__scroll i { display:block; width:92px; height:1px; background:#777; }
.ivory-works-section:not([data-horizontal-works]) .works-footer__links { align-items:flex-end; color:#c5c3bd; }
.ivory-works-section:not([data-horizontal-works]) .works-footer a { color:#c5c3bd; text-decoration:none; }
.ivory-works-section:not([data-horizontal-works]) .works-footer a span { margin-left:22px; font-size:20px; }

@media (max-width:760px) {
    .ivory-works-section:not([data-horizontal-works]) .work-card { height:78vh; min-height:520px; }
    .ivory-works-section:not([data-horizontal-works]) .work-overlay { padding:0 20px 42px; }
    .ivory-works-section:not([data-horizontal-works]) .work-overlay h3 { font-size:clamp(42px,13vw,66px); white-space:normal; }
    .ivory-works-section:not([data-horizontal-works]) .works-footer { min-height:150px; padding:24px 20px; grid-template-columns:1fr auto; }
    .ivory-works-section:not([data-horizontal-works]) .works-footer__scroll { display:none; }
}
