@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Brand Overrides & Dark Mode Design System for Artsy Amigos */

:root {
    --ff-serif: 'Instrument Serif', Georgia, serif;
    --ff-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --clr-bg: #0C0C0C;
    --clr-text: #FAF7F2;
    --clr-muted: rgba(250, 247, 242, 0.75);
    --clr-accent: #E19F65;
    --clr-border: rgba(255, 255, 255, 0.15);
}

/* Default Brand Styles */
.logo-text {
    font-family: var(--ff-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: currentColor;
}

.branding .header-brand-icon {
    height: 26px !important;
    width: auto !important;
    object-fit: contain;
}

.branding .logo-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
}

.footer__logo .logo-text {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Footer Bottom Layout Matching User Screenshot */
.footer__bottom {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    width: 100% !important;
    margin-top: clamp(2rem, 4vw, 4rem) !important;
    padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html:not([data-theme="dark"]) .footer__bottom {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.footer__bottom-left {
    display: flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
}

.footer__bottom-left .footer__logo {
    margin: 0 !important;
    padding: 0 !important;
}

.footer__bottom-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
    gap: 0.4rem !important;
    margin-left: auto !important;
}

.footer__socials {
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    text-align: right !important;
    width: auto !important;
}

.footer__socials .socials__list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer__socials .social__single {
    display: inline-flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
}

.footer__socials .social__single a {
    font-family: var(--ff-sans, sans-serif) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    color: currentColor !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.footer__socials .social__single a:hover {
    color: var(--clr-accent, #E19F65) !important;
    opacity: 1 !important;
}

.footer__copyright {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    font-family: var(--ff-sans, sans-serif) !important;
    font-size: 0.875rem !important;
    opacity: 0.75 !important;
    margin: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    display: block !important;
}

@media (max-width: 767px) {
    .footer__bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    .footer__bottom-left,
    .footer__bottom-right {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .footer__socials .socials__list {
        justify-content: center !important;
        margin: 0 auto !important;
    }
    .footer__copyright {
        text-align: center !important;
    }
}

html:not([data-theme="dark"]) .logo-text {
    color: #12110b !important;
}

.block-intro-about__bg,
.block-wrapper svg.bg-graphic,
.hero-page__bg-graphic {
    opacity: 0.08 !important;
    pointer-events: none !important;
}

/* Watermark Brand Logo Background for Our Story & Sections */
.brand-bg-watermark,
.simple-text__background .brand-bg-watermark {
    max-width: 800px !important;
    width: 95% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    opacity: 0.15 !important;
    pointer-events: none !important;
    filter: invert(1) hue-rotate(180deg) !important;
    transition: opacity 0.3s ease, filter 0.3s ease !important;
}

[data-theme="dark"] .brand-bg-watermark,
[data-theme="dark"] .simple-text__background .brand-bg-watermark {
    filter: none !important;
    opacity: 0.18 !important;
}

/* Navbar Link Horizontal Character Alignment & Stagger Hover */
.nav-main__list {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.nav-main__item {
    display: inline-flex !important;
    align-items: center !important;
}

.nav-main__link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.nav-main__link div {
    display: inline-block !important;
    line-height: 1 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
}

.nav-main__link:hover div {
    transform: translateY(-2px) !important;
    color: var(--clr-accent, #E19F65) !important;
}

.nav-main__link:hover div:nth-child(1) { transition-delay: 0.00s !important; }
.nav-main__link:hover div:nth-child(2) { transition-delay: 0.03s !important; }
.nav-main__link:hover div:nth-child(3) { transition-delay: 0.06s !important; }
.nav-main__link:hover div:nth-child(4) { transition-delay: 0.09s !important; }
.nav-main__link:hover div:nth-child(5) { transition-delay: 0.12s !important; }
.nav-main__link:hover div:nth-child(6) { transition-delay: 0.15s !important; }
.nav-main__link:hover div:nth-child(7) { transition-delay: 0.18s !important; }
.nav-main__link:hover div:nth-child(8) { transition-delay: 0.21s !important; }

/* Brand Logo & Icon Image System */
.header-brand-icon {
    height: 38px;
    width: auto;
    max-height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-pill-icon {
    height: 22px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

html:not([data-theme="dark"]) .brand-logo-img,
html:not([data-theme="dark"]) .brand-pill-icon {
    filter: invert(1) hue-rotate(180deg);
    /* Converts white line art to sleek dark charcoal for light mode */
    mix-blend-mode: multiply;
}

html[data-theme="dark"] .brand-logo-img,
html[data-theme="dark"] .brand-pill-icon {
    filter: none;
    /* Crisp white line art on dark background */
    mix-blend-mode: screen;
}

/* ==========================================
   Comprehensive Weichie.com Dark Theme System
   ========================================== */

/* 1. Global Dark Theme Variables & Background */
[data-theme="dark"] {
    --clr-black: #FAF7F2 !important;
    --clr-text: #FAF7F2 !important;
    --clr-light-beige: #0C0C0C !important;
    --clr-off-white: #0C0C0C !important;
    --clr-beige: #161616 !important;
    --clr-glass: rgba(12, 12, 12, 0.85) !important;
    --clr-bg: #0C0C0C !important;
    color-scheme: dark !important;
}

[data-theme="dark"] body,
[data-theme="dark"] main,
[data-theme="dark"] .archive,
[data-theme="dark"] .single-case {
    background-color: #0C0C0C !important;
    font-family: var(--ff-sans);
    color: #FAF7F2 !important;
}

/* 2. Global Dark Container & Section Backgrounds */
[data-theme="dark"] body,
[data-theme="dark"] main,
[data-theme="dark"] .content,
[data-theme="dark"] [data-barba="wrapper"],
[data-theme="dark"] [data-barba="container"],
[data-theme="dark"] .block-wrapper,
[data-theme="dark"] .hero-homepage,
[data-theme="dark"] .hero-homepage__stage,
[data-theme="dark"] .hero-homepage__canvas,
[data-theme="dark"] .block-hero-homepage,
[data-theme="dark"] .archive,
[data-theme="dark"] .single-service,
[data-theme="dark"] .single-post,
[data-theme="dark"] .single-case,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .footer,
[data-theme="dark"] .site-header {
    background-color: #131311 !important;
    color: #f4efea !important;
}

/* 3. Typography & Text Elements in Dark Mode */
[data-theme="dark"] .logo-text,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .card__title,
[data-theme="dark"] .hero-homepage__title,
[data-theme="dark"] .hero-homepage__title-line,
[data-theme="dark"] .latest-work__heading,
[data-theme="dark"] .archive__title {
    color: #f4efea !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.pill-contact__icon),
[data-theme="dark"] a:not(.pill-contact):not(.hero-homepage__label-link),
[data-theme="dark"] li,
[data-theme="dark"] dt,
[data-theme="dark"] dd,
[data-theme="dark"] label,
[data-theme="dark"] .hero-homepage__description,
[data-theme="dark"] .footer a,
[data-theme="dark"] .footer p,
[data-theme="dark"] .nav-main__link {
    color: #c5c0b8 !important;
}

/* 4. Interactive Link Hover States in Dark Mode */
[data-theme="dark"] .nav-main__link:hover,
[data-theme="dark"] .footer a:hover {
    color: #E19F65 !important;
}

/* Ensure dark mode simple-text background graphic uses dark raised tone and text remains crisp */
[data-theme="dark"] .simple-text__background-svg {
    color: #1e1d19 !important;
}
[data-theme="dark"] .simple-text__background-svg :is(path, circle, rect, polygon, ellipse, line, polyline) {
    fill: #1e1d19 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .card__body,
[data-theme="dark"] .latest-work__item,
[data-theme="dark"] .archive__grid-item,
[data-theme="dark"] .technology__row-button,
[data-theme="dark"] .block-intro-about,
[data-theme="dark"] .team__member-card,
[data-theme="dark"] [data-background="beige"] {
    background-color: #22211e !important;
    border-color: rgba(244, 239, 234, 0.12) !important;
    color: #f4efea !important;
}

/* High Contrast Form Input Placeholders */
input, textarea, select {
    font-family: var(--ff-sans, sans-serif) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: rgba(250, 247, 242, 0.55) !important;
}

html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder {
    color: rgba(18, 17, 11, 0.55) !important;
}

/* 6. Circular Control Buttons & Redirect Button */
.redirect-btn,
.lang-switcher,
a.lang-switcher,
a.redirect-btn,
.theme-toggle,
button.theme-toggle,
.hamburger {
    width: 3.125rem !important;
    height: 3.125rem !important;
    min-width: 3.125rem !important;
    min-height: 3.125rem !important;
    max-width: 3.125rem !important;
    max-height: 3.125rem !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ede8e1 !important;
    background: #ede8e1 !important;
    color: #12110b !important;
    text-decoration: none !important;
    transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    border: 1px solid rgba(18, 17, 11, 0.12) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.redirect-btn,
.lang-switcher,
a.lang-switcher,
a.redirect-btn,
.theme-toggle,
button.theme-toggle {
    display: inline-flex !important;
}

/* Hide hamburger menu button on Desktop/Laptop viewports (min-width: 981px) */
@media (min-width: 981px) {
    .hamburger,
    button.hamburger {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .hamburger,
    button.hamburger {
        display: inline-flex !important;
    }
}

/* Control button clip containers */
.lang-switcher__clip,
.lang-switcher__label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    transition: none !important;
    grid-area: auto !important;
    overflow: visible !important;
    width: 100% !important;
    height: 100% !important;
}

/* Theme toggle button clip masking & icon positioning */
.theme-toggle,
button.theme-toggle {
    overflow: hidden !important;
}

.theme-toggle__clip {
    width: 20px !important;
    height: 20px !important;
    display: grid !important;
    grid-template-areas: "icon" !important;
    overflow: hidden !important;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-toggle__icon {
    grid-area: icon !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Light Theme: Sun icon visible, Moon icon translated down */
[data-theme-toggle-icon="sun"] {
    transform: translateY(0) !important;
}

[data-theme-toggle-icon="moon"] {
    transform: translateY(120%) !important;
}

/* Dark Theme: Moon icon visible, Sun icon translated up off-screen */
[data-theme="dark"] [data-theme-toggle-icon="sun"] {
    transform: translateY(-120%) !important;
}

[data-theme="dark"] [data-theme-toggle-icon="moon"] {
    transform: translateY(0) !important;
}

.redirect-btn:hover,
.lang-switcher:hover,
a.lang-switcher:hover,
a.redirect-btn:hover,
.theme-toggle:hover,
button.theme-toggle:hover,
.hamburger:hover {
    background-color: #ede8e1 !important;
    background: #ede8e1 !important;
    color: #12110b !important;
    border-color: rgba(18, 17, 11, 0.12) !important;
    transform: none !important;
    box-shadow: none !important;
}

.redirect-btn svg,
.redirect-btn__icon,
.lang-switcher svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 2.2px !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

.redirect-btn:hover svg,
.lang-switcher:hover svg {
    transform: translate(2px, -2px) !important;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] button.theme-toggle,
[data-theme="dark"] .redirect-btn,
[data-theme="dark"] .lang-switcher,
[data-theme="dark"] a.lang-switcher,
[data-theme="dark"] a.redirect-btn,
[data-theme="dark"] .hamburger {
    width: 3.125rem !important;
    height: 3.125rem !important;
    min-width: 3.125rem !important;
    min-height: 3.125rem !important;
    max-width: 3.125rem !important;
    max-height: 3.125rem !important;
    box-sizing: border-box !important;
    background-color: #22211e !important;
    background: #22211e !important;
    color: #f4efea !important;
    border: 1px solid rgba(244, 239, 234, 0.15) !important;
}

[data-theme="dark"] .redirect-btn:hover,
[data-theme="dark"] .lang-switcher:hover,
[data-theme="dark"] a.lang-switcher:hover,
[data-theme="dark"] a.redirect-btn:hover,
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] button.theme-toggle:hover,
[data-theme="dark"] .hamburger:hover {
    background-color: #22211e !important;
    background: #22211e !important;
    color: #f4efea !important;
    border-color: rgba(244, 239, 234, 0.15) !important;
    transform: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .theme-toggle__icon {
    color: #f4efea !important;
}

[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    border-color: rgba(244, 239, 234, 0.12);
}

/* Remove Orange Hover/Active Effect On Work Page (.archive) */
.archive__chip[data-active],
.archive__chip[data-active] .archive__chip__label,
.archive__chip[data-active] .archive__chip__icon,
.archive__chip[data-active] svg,
.archive__chip:hover,
.archive__chip:hover .archive__chip__label,
.archive__chip:hover .archive__chip__icon,
.archive__chip:hover svg {
    color: #FAF7F2 !important;
}

[data-theme="dark"] .archive__chip[data-active],
[data-theme="dark"] .archive__chip[data-active] .archive__chip__label,
[data-theme="dark"] .archive__chip[data-active] .archive__chip__icon,
[data-theme="dark"] .archive__chip[data-active] svg,
[data-theme="dark"] .archive__chip:hover,
[data-theme="dark"] .archive__chip:hover .archive__chip__label,
[data-theme="dark"] .archive__chip:hover .archive__chip__icon,
[data-theme="dark"] .archive__chip:hover svg {
    color: #FAF7F2 !important;
}

/* Comprehensive Work Page (.archive) Hover Effect Removal */
.archive a:hover,
.archive .nav-main__link:hover,
.archive .nav-main__link:hover div,
.archive .card:hover .card__title,
.archive .card:hover .card__subtitle,
.archive .archive__chip:hover,
.archive .archive__chip[data-active],
.archive .archive__view-toggle:hover,
.archive .archive__view-toggle[data-active],
.archive .archive__view-toggle:hover svg,
.archive .archive__view-toggle[data-active] svg {
    color: #FAF7F2 !important;
}

html:not([data-theme="dark"]) .archive a:hover,
html:not([data-theme="dark"]) .archive .nav-main__link:hover,
html:not([data-theme="dark"]) .archive .nav-main__link:hover div,
html:not([data-theme="dark"]) .archive .card:hover .card__title,
html:not([data-theme="dark"]) .archive .card:hover .card__subtitle,
html:not([data-theme="dark"]) .archive .archive__chip:hover,
html:not([data-theme="dark"]) .archive .archive__chip[data-active],
html:not([data-theme="dark"]) .archive .archive__view-toggle:hover,
html:not([data-theme="dark"]) .archive .archive__view-toggle[data-active] {
    color: #12110b !important;
}

/* Disable all Card Hover Animations (zoom, scale, tilt, blur-sweep, transform) on Work Page only */
.archive .card,
.archive .card *,
.archive .card__media,
.archive .card__media-inner,
.archive .card__image,
.archive .card__body,
.archive .card__title,
.archive .card__subtitle,
.archive .archive__grid-item {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
}

.archive .card:hover,
.archive .card:hover *,
.archive .card:hover .card__media,
.archive .card:hover .card__media-inner,
.archive .card:hover .card__image,
.archive .card:hover .card__body,
.archive .card:hover .card__title,
.archive .card:hover .card__subtitle,
.archive .archive__grid-item:hover {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* ==========================================
   Hero Homepage Service Navigation Labels
   ========================================== */
.hero-homepage__labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin: 2.5rem auto 0 auto;
    padding: 0;
    list-style: none;
    z-index: 10;
    position: relative;
}

.hero-homepage__label {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.hero-homepage__label-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0.6rem;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-family: var(--ff-sans, sans-serif);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
    outline: none;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.hero-homepage__label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.hero-homepage__label-icon svg,
.hero-homepage__label-icon path {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    transition: fill 0.2s ease, color 0.2s ease;
}

.hero-homepage__label-text {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

/* --- LIGHT MODE --- */
html:not([data-theme="dark"]) .hero-homepage__label-link,
body:not([data-theme="dark"]) .hero-homepage__label-link {
    color: #12110b !important;
}

html:not([data-theme="dark"]) .hero-homepage__label-text,
body:not([data-theme="dark"]) .hero-homepage__label-text {
    color: #12110b !important;
}

html:not([data-theme="dark"]) .hero-homepage__label-icon svg,
html:not([data-theme="dark"]) .hero-homepage__label-icon path,
body:not([data-theme="dark"]) .hero-homepage__label-icon svg,
body:not([data-theme="dark"]) .hero-homepage__label-icon path {
    fill: #12110b !important;
    color: #12110b !important;
}

/* Light mode hover/active: icon turns copper gold (#E19F65), text stays dark (#12110b) */
html:not([data-theme="dark"]) .hero-homepage__label-link.is-active .hero-homepage__label-icon svg,
html:not([data-theme="dark"]) .hero-homepage__label-link.is-active .hero-homepage__label-icon path,
html:not([data-theme="dark"]) .hero-homepage__label-link:hover .hero-homepage__label-icon svg,
html:not([data-theme="dark"]) .hero-homepage__label-link:hover .hero-homepage__label-icon path,
body:not([data-theme="dark"]) .hero-homepage__label-link.is-active .hero-homepage__label-icon svg,
body:not([data-theme="dark"]) .hero-homepage__label-link.is-active .hero-homepage__label-icon path,
body:not([data-theme="dark"]) .hero-homepage__label-link:hover .hero-homepage__label-icon svg,
body:not([data-theme="dark"]) .hero-homepage__label-link:hover .hero-homepage__label-icon path {
    fill: #E19F65 !important;
    color: #E19F65 !important;
}

/* --- DARK MODE --- */
html[data-theme="dark"] .hero-homepage__label-link,
body[data-theme="dark"] .hero-homepage__label-link,
[data-theme="dark"] .hero-homepage__label-link {
    color: #ffffff !important;
}

html[data-theme="dark"] .hero-homepage__label-text,
body[data-theme="dark"] .hero-homepage__label-text,
[data-theme="dark"] .hero-homepage__label-text {
    color: #ffffff !important;
}

html[data-theme="dark"] .hero-homepage__label-icon svg,
html[data-theme="dark"] .hero-homepage__label-icon path,
body[data-theme="dark"] .hero-homepage__label-icon svg,
body[data-theme="dark"] .hero-homepage__label-icon path,
[data-theme="dark"] .hero-homepage__label-icon svg,
[data-theme="dark"] .hero-homepage__label-icon path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Dark mode hover/active: icon turns copper gold (#E19F65), text stays crisp white (#ffffff) */
html[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-icon svg,
html[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-icon path,
html[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-icon svg,
html[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-icon path,
body[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-icon svg,
body[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-icon path,
body[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-icon svg,
body[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-icon path,
[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-icon svg,
[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-icon path,
[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-icon svg,
[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-icon path {
    fill: #E19F65 !important;
    color: #E19F65 !important;
}

html[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-text,
html[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-text,
body[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-text,
body[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-text,
[data-theme="dark"] .hero-homepage__label-link.is-active .hero-homepage__label-text,
[data-theme="dark"] .hero-homepage__label-link:hover .hero-homepage__label-text {
    color: #ffffff !important;
}

/* ==========================================
   Card Descriptions & Project Modal System
   ========================================== */

.card__description {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-top: 0.5rem;
    color: #666666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .card__description {
    color: #c5c0b8 !important;
}

/* Project Lightbox Modal Styling */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-modal__dialog {
    position: relative;
    z-index: 2;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f4efea;
}

.project-modal.is-open .project-modal__dialog {
    transform: scale(1);
}

.project-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-modal__close:hover {
    background: #E19F65;
    border-color: #E19F65;
    transform: scale(1.05);
}

.project-modal__media {
    width: 100%;
    max-height: 26rem;
    overflow: hidden;
    background: #09090b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal__image {
    width: 100%;
    height: 100%;
    max-height: 26rem;
    object-fit: cover;
    display: block;
}

.project-modal__body {
    padding: 2rem;
}

.project-modal__category {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #E19F65;
    margin-bottom: 0.5rem;
}

.project-modal__title {
    font-size: 2rem;
    font-weight: 700;
    color: #f4efea;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.project-modal__desc {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #c5c0b8;
    margin-bottom: 1.75rem;
}

.project-modal__footer {
    display: flex;
    justify-content: flex-end;
}

.project-modal__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #E19F65;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-modal__cta:hover {
    background: #d08e54;
    transform: translateY(-2px);
}

/* ==========================================
   Weichie.com Case Study Detail Page System
   ========================================== */

/* 1. Case Hero & Top Navigation */
.case-hero-section {
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.case-hero__back-bar {
    margin-bottom: 2rem;
}

.case-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #E19F65 !important;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.case-hero__back-link:hover {
    transform: translateX(-4px);
}

.case-hero__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.case-hero__title {
    font-family: var(--ff-serif, Georgia, serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.case-hero__visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(225, 159, 101, 0.4);
    background: rgba(225, 159, 101, 0.08);
    color: #E19F65 !important;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.case-hero__visit-btn:hover {
    background: #E19F65;
    color: #ffffff !important;
    border-color: #E19F65;
    transform: translateY(-2px);
}

.case-hero__tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    font-weight: 400;
    color: var(--clr-text, #f4efea);
    margin-bottom: 2.5rem;
    max-width: 54rem;
}

.elbow {
    color: #E19F65 !important;
    font-weight: 700;
    margin-right: 0.25rem;
}

/* 2. Metadata Grid */
.case-hero__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(244, 239, 234, 0.12);
    border-bottom: 1px solid rgba(244, 239, 234, 0.12);
    margin-bottom: 3rem;
}

.case-meta__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-meta__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
}

.case-meta__value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--clr-text, #f4efea);
}

.case-meta__tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-pill {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--clr-text, #f4efea);
}

/* 3. Hero Media Container */
.case-hero__media-container {
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #18181b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-hero__media-img {
    width: 100%;
    height: auto;
    max-height: 42rem;
    object-fit: cover;
    display: block;
}

/* 4. Client Overview Section */
.case-overview-section {
    padding: 4rem 0;
}

.case-overview__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
}

@media (max-width: 991px) {
    .case-overview__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.case-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E19F65 !important;
    margin-bottom: 0.75rem;
}

.case-overview__heading {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.case-overview__lead {
    font-size: 1.1875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #c5c0b8;
}

.case-overview__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-overview__bullets li {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--clr-text, #f4efea);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* 5. Narrative Section & Browser Mockup */
.case-narrative-section {
    padding: 3rem 0;
}

.case-narrative__block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .case-narrative__block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.case-narrative__heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.case-narrative__body {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #c5c0b8;
}

.case-browser-mockup {
    border-radius: 0.75rem;
    overflow: hidden;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.case-browser-mockup__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #22211e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-browser-mockup__header .dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.case-browser-mockup__header .dot.red { background: #ff5f56; }
.case-browser-mockup__header .dot.yellow { background: #ffbd2e; }
.case-browser-mockup__header .dot.green { background: #27c93f; }

.case-browser-mockup__header .url-bar {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: #888888;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-browser-mockup__img {
    width: 100%;
    height: auto;
    display: block;
}

/* 6. Strategy Accordions */
.case-strategy-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(244, 239, 234, 0.12);
}

.case-strategy__header {
    margin-bottom: 2.5rem;
}

.case-strategy__heading {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}

.case-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-accordion__item {
    background: #22211e;
    border: 1px solid rgba(244, 239, 234, 0.12);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.case-accordion__item[open] {
    border-color: rgba(225, 159, 101, 0.4);
}

.case-accordion__summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
    color: var(--clr-text, #f4efea);
}

.case-accordion__summary::-webkit-details-marker {
    display: none;
}

.case-accordion__icon {
    color: #E19F65 !important;
    font-weight: 700;
}

.case-accordion__content {
    padding: 0 1.5rem 1.25rem 3rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #c5c0b8;
}

/* 7. Next / Previous Project Footer Navigation */
.case-nav-section {
    padding: 4rem 0 6rem 0;
    border-top: 1px solid rgba(244, 239, 234, 0.12);
}

.case-nav__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 767px) {
    .case-nav__grid {
        grid-template-columns: 1fr;
    }
}

.case-nav__card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    background: #22211e;
    border: 1px solid rgba(244, 239, 234, 0.12);
    border-radius: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-nav__card:hover {
    transform: translateY(-4px);
    border-color: #E19F65;
}

.case-nav__sub {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E19F65 !important;
    margin-bottom: 0.5rem;
}

.case-nav__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text, #f4efea);
    margin: 0 0 0.35rem 0;
}

.case-nav__cat {
    font-size: 0.875rem;
    color: #888888;
}

/* ==========================================
   Weichie.com Exact Parity & Typography Rules
   ========================================== */

/* --- LIGHT MODE WORK PAGE TYPOGRAPHY --- */
html:not([data-theme="dark"]) .archive__title,
body:not([data-theme="dark"]) .archive__title {
    font-family: var(--ff-serif) !important;
    font-size: clamp(3.5rem, 6vw, 5.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    color: #12110b !important;
}

html:not([data-theme="dark"]) .intro__text,
body:not([data-theme="dark"]) .intro__text {
    font-family: var(--ff-sans) !important;
    font-size: clamp(1.125rem, 1.5vw, 1.35rem) !important;
    line-height: 1.6 !important;
    color: rgba(18, 17, 11, 0.75) !important;
    max-width: 680px !important;
}

html:not([data-theme="dark"]) .intro__arrow,
body:not([data-theme="dark"]) .intro__arrow {
    color: #E19F65 !important;
}

html:not([data-theme="dark"]) .archive__chip,
body:not([data-theme="dark"]) .archive__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(18, 17, 11, 0.18) !important;
    background: transparent !important;
    color: #12110b !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

html:not([data-theme="dark"]) .archive__chip .archive__chip__label,
html:not([data-theme="dark"]) .archive__chip .archive__chip__icon,
html:not([data-theme="dark"]) .archive__chip svg {
    color: #12110b !important;
    fill: #12110b !important;
}

html:not([data-theme="dark"]) .archive__chip[data-active],
html:not([data-theme="dark"]) .archive__chip:hover,
body:not([data-theme="dark"]) .archive__chip[data-active],
body:not([data-theme="dark"]) .archive__chip:hover {
    background: #12110b !important;
    color: #FAF7F2 !important;
    border-color: #12110b !important;
}

html:not([data-theme="dark"]) .archive__chip[data-active] .archive__chip__label,
html:not([data-theme="dark"]) .archive__chip[data-active] .archive__chip__icon,
html:not([data-theme="dark"]) .archive__chip[data-active] svg,
html:not([data-theme="dark"]) .archive__chip:hover .archive__chip__label,
html:not([data-theme="dark"]) .archive__chip:hover .archive__chip__icon,
html:not([data-theme="dark"]) .archive__chip:hover svg {
    color: #FAF7F2 !important;
    fill: #FAF7F2 !important;
}

html:not([data-theme="dark"]) .archive__grid-item .card__title {
    font-family: var(--ff-sans) !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    font-weight: 600 !important;
    line-height: 1.25;
    margin: 0.75rem 0 0.25rem 0;
    color: #12110b !important;
}

html:not([data-theme="dark"]) .archive__grid-item .card__subtitle {
    font-size: 0.875rem !important;
    color: rgba(18, 17, 11, 0.6) !important;
    display: block;
}

/* --- DARK MODE WORK PAGE TYPOGRAPHY --- */
html[data-theme="dark"] .archive__title,
body[data-theme="dark"] .archive__title {
    font-family: var(--ff-serif) !important;
    font-size: clamp(3.5rem, 6vw, 5.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    color: #FAF7F2 !important;
}

html[data-theme="dark"] .intro__text,
body[data-theme="dark"] .intro__text {
    font-family: var(--ff-sans) !important;
    font-size: clamp(1.125rem, 1.5vw, 1.35rem) !important;
    line-height: 1.6 !important;
    color: rgba(250, 247, 242, 0.75) !important;
    max-width: 680px !important;
}

html[data-theme="dark"] .intro__arrow,
body[data-theme="dark"] .intro__arrow {
    color: #E19F65 !important;
}

html[data-theme="dark"] .archive__chip,
body[data-theme="dark"] .archive__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: transparent !important;
    color: #FAF7F2 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

html[data-theme="dark"] .archive__chip .archive__chip__label,
html[data-theme="dark"] .archive__chip .archive__chip__icon,
html[data-theme="dark"] .archive__chip svg {
    color: #FAF7F2 !important;
    fill: #FAF7F2 !important;
}

html[data-theme="dark"] .archive__chip[data-active],
html[data-theme="dark"] .archive__chip:hover,
body[data-theme="dark"] .archive__chip[data-active],
body[data-theme="dark"] .archive__chip:hover {
    background: #FAF7F2 !important;
    color: #111111 !important;
    border-color: #FAF7F2 !important;
}

html[data-theme="dark"] .archive__chip[data-active] .archive__chip__label,
html[data-theme="dark"] .archive__chip[data-active] .archive__chip__icon,
html[data-theme="dark"] .archive__chip[data-active] svg,
html[data-theme="dark"] .archive__chip:hover .archive__chip__label,
html[data-theme="dark"] .archive__chip:hover .archive__chip__icon,
html[data-theme="dark"] .archive__chip:hover svg {
    color: #111111 !important;
    fill: #111111 !important;
}

html[data-theme="dark"] .archive__grid-item .card__title {
    font-family: var(--ff-sans) !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    font-weight: 600 !important;
    line-height: 1.25;
    margin: 0.75rem 0 0.25rem 0;
    color: #FAF7F2 !important;
}

html[data-theme="dark"] .archive__grid-item .card__subtitle {
    font-size: 0.875rem !important;
    color: rgba(250, 247, 242, 0.6) !important;
    display: block;
}

.archive__grid-item .card,
[data-theme="dark"] .archive__grid-item .card {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.archive__grid-item .card__media {
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    margin-bottom: 1rem;
    background: #18181b;
    aspect-ratio: 16 / 10;
}

.archive__grid-item .card__image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 1.25rem !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive__grid-item .card:hover .card__image {
    transform: scale(1.04) !important;
}

.archive__grid-item .card__description {
    display: none !important;
}

/* ==========================================
   Single Case Study Page Exact Parity
   ========================================== */

.case-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #E19F65 !important;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.case-hero__title {
    font-family: var(--ff-serif) !important;
    font-size: clamp(3.5rem, 7vw, 6.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.0 !important;
    letter-spacing: -0.02em !important;
    color: #FAF7F2 !important;
    margin: 0;
}

.case-hero__visit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #E19F65 !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.case-hero__visit-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.case-hero__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 3.5rem;
}

@media (max-width: 767px) {
    .case-hero__meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-meta__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 247, 242, 0.5);
    margin-bottom: 0.5rem;
}

.case-meta__value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #FAF7F2;
}

.case-overview__heading {
    font-family: var(--ff-serif) !important;
    font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: #FAF7F2 !important;
    margin: 0;
}

.case-overview__lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(250, 247, 242, 0.85);
    margin-bottom: 2rem;
}

.case-overview__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-overview__bullets li {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #FAF7F2;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

/* System Architecture Node Diagram */
.case-architecture-nodes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.arch-node {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    font-weight: 600;
    color: #FAF7F2;
}

.arch-node__icon {
    color: #E19F65;
}

/* Weichie Browser Frame (#F3F3F3) */
.case-browser-mockup {
    border-radius: 1rem;
    overflow: hidden;
    background: #F3F3F3;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    margin: 3rem 0;
}

.case-browser-mockup__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: #E5E5E5;
    border-bottom: 1px solid #D4D4D4;
}

.case-browser-mockup__header .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.case-browser-mockup__header .dot.red { background: #FF5F56; }
.case-browser-mockup__header .dot.yellow { background: #FFBD2E; }
.case-browser-mockup__header .dot.green { background: #27C93F; }

.case-browser-mockup__header .url-bar {
    margin-left: 0.75rem;
    font-size: 0.8125rem;
    color: #666666;
    background: #FFFFFF;
    padding: 0.25rem 1rem;
    border-radius: 6px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #E5E5E5;
}

.case-browser-mockup__body img {
    width: 100%;
    height: auto;
    display: block;
}

/* Strategy Accordions */
.case-accordion-list {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.case-accordion__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
}

.case-accordion__summary {
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FAF7F2;
}

.case-accordion__summary::-webkit-details-marker {
    display: none;
}

.case-accordion__icon {
    color: #E19F65;
    font-size: 1.5rem;
    font-weight: 400;
}

.case-accordion__content {
    padding-top: 1rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(250, 247, 242, 0.75);
}

/* Next Project Footer Link */
.next-project-footer {
    padding: 6rem 0 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.next-project__sub {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #E19F65;
    margin-bottom: 1rem;
    display: block;
}

.next-project__title {
    font-family: var(--ff-serif) !important;
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 400 !important;
    color: #FAF7F2 !important;
    text-decoration: none !important;
    line-height: 1.1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.next-project__title:hover {
    transform: translateY(-4px);
    color: #E19F65 !important;
}

.next-project__back-link {
    display: inline-block;
    margin-top: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, 0.6) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.next-project__back-link:hover {
    color: #FAF7F2 !important;
}

/* Zero-Lag Instant Reveal & Performance System */
[data-reveal],
[data-text-reveal],
[data-reveal-chain],
.block-wrapper,
.hero-homepage,
.latest-work__grid:not(.latest-work__grid--3d),
.latest-work__item:not(.latest-work__item--3d),
.archive__grid-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Exact Weichie.com Staggered Showcase System */
.latest-work__showcase {
    position: relative !important;
}

.latest-work__callout {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.latest-work__callout--bottom {
    position: absolute !important;
    inset: auto auto 0 0 !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 0 !important;
}

/* ==========================================
   3D Curved Arc Carousel for Homepage Work
   ========================================== */

.latest-work__3d-viewport {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    user-select: none;
}

.latest-work__3d-arc-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    min-height: 520px;
    position: relative;
}

.latest-work__grid--3d {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    height: 520px !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform-style: preserve-3d !important;
}

.latest-work__item--3d {
    position: absolute !important;
    width: clamp(280px, 32vw, 420px) !important;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform-style: preserve-3d !important;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease, filter 0.6s ease !important;
    will-change: transform, opacity !important;
    cursor: pointer;
    border-radius: 1.25rem !important;
}

.latest-work__card-inner {
    display: block !important;
    background: #ffffff !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.08) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    text-decoration: none !important;
}

[data-theme="dark"] .latest-work__card-inner {
    background: #18181b !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6) !important;
}

.latest-work__card-inner .card__media {
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 1.25rem 1.25rem 0 0 !important;
    overflow: hidden !important;
    background: #09090b !important;
}

.latest-work__card-inner .card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.latest-work__card-inner:hover .card__image {
    transform: scale(1.06) !important;
}

.latest-work__tag {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    z-index: 2 !important;
}

.latest-work__card-inner .card__body {
    padding: 1.5rem !important;
    text-align: left !important;
}

.latest-work__card-inner .card__title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    color: #09090b !important;
}

[data-theme="dark"] .latest-work__card-inner .card__title {
    color: #f4f4f5 !important;
}

.latest-work__card-inner .card__description {
    font-size: 0.875rem !important;
    color: #71717a !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

[data-theme="dark"] .latest-work__card-inner .card__description {
    color: #a1a1aa !important;
}

.latest-work__link-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--brand-accent, #6366f1) !important;
    transition: gap 0.2s ease !important;
}

.latest-work__card-inner:hover .latest-work__link-text {
    gap: 0.6rem !important;
}

/* Nav Buttons */
.latest-work__nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #09090b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

[data-theme="dark"] .latest-work__nav-btn {
    background: rgba(24, 24, 27, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
}

.latest-work__nav-btn:hover {
    transform: translateY(-50%) scale(1.12) !important;
    background: #09090b !important;
    color: #ffffff !important;
    border-color: #09090b !important;
}

[data-theme="dark"] .latest-work__nav-btn:hover {
    background: #ffffff !important;
    color: #09090b !important;
    border-color: #ffffff !important;
}

.latest-work__nav-btn--prev {
    left: 0.5rem !important;
}

.latest-work__nav-btn--next {
    right: 0.5rem !important;
}

@media (max-width: 767px) {
    .latest-work__3d-viewport {
        padding: 1rem 0;
    }
    .latest-work__3d-arc-wrapper,
    .latest-work__grid--3d {
        height: 420px !important;
        min-height: 420px !important;
    }
    .latest-work__nav-btn {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }
}

@media (min-width: 992px) {
    .latest-work__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) clamp(2rem, 5vw, 6rem) minmax(0, 1fr) clamp(1rem, 2vw, 2.5rem) minmax(0, 1fr) !important;
        align-items: start !important;
        column-gap: 0 !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .latest-work__item {
        margin: 0 !important;
    }

    .latest-work__item[data-pos="1"] {
        grid-column: 1 !important;
    }

    .latest-work__item[data-pos="2"] {
        grid-column: 3 !important;
    }

    .latest-work__item[data-pos="3"] {
        grid-column: 5 !important;
    }

    .latest-work__item[data-pos="2"]::before {
        content: "" !important;
        width: 100% !important;
        display: block !important;
        aspect-ratio: 9/8 !important;
    }

    .latest-work__item[data-pos="3"]::before {
        content: "" !important;
        width: 100% !important;
        display: block !important;
        aspect-ratio: 9/4 !important;
    }
}

@media (max-width: 991px) {
    .latest-work__showcase {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .latest-work__callout,
    .latest-work__callout--bottom {
        position: static !important;
        margin: 1rem 0 !important;
    }

    .latest-work__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .latest-work__item[data-pos="2"]::before,
    .latest-work__item[data-pos="3"]::before {
        display: none !important;
    }
}

.latest-work__item .card__media {
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    background: #18181b !important;
    aspect-ratio: 16 / 10 !important;
}

.latest-work__item .card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.latest-work__item .card:hover .card__image {
    transform: scale(1.04) !important;
}

/* Prevent Barba.js Container Fade & Black Screen Issues */
[data-barba="container"],
[data-barba="wrapper"],
main.archive,
main.content,
main.single-case,
main.single-service,
body {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: opacity 0s !important;
}

/* Tell Us What You Need Interactive Grid & High Contrast Stadium Pills */
.technology__grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem 0.875rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 0 0 !important;
    width: 100% !important;
}

.technology__grid[data-technology-list="short"] {
    display: none !important;
}

.technology__grid[data-technology-list="full"] {
    display: flex !important;
}

.technology__item {
    display: inline-flex !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.technology__row {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 0.625rem 1.25rem !important;
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    background: #ede8e1 !important;
    border: 1px solid rgba(18, 17, 11, 0.12) !important;
    border-radius: 2.5rem !important;
    color: #12110b !important;
    font-family: inherit !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.technology__row-label {
    white-space: nowrap !important;
    word-break: keep-all !important;
    color: #12110b !important;
    font-weight: 500 !important;
    margin-left: 0 !important;
    flex-grow: 0 !important;
}

.technology__form-prefix,
.technology__form-text {
    color: #12110b !important;
}

.technology__row-icon {
    color: #E19F65 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 0.125rem !important;
}

.technology__row-add {
    color: #12110b !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 0.125rem !important;
}

.technology__row:hover {
    background: #E19F65 !important;
    border-color: #E19F65 !important;
    color: #ffffff !important;
    transform: scale(1.04) !important;
}

.technology__row:hover .technology__row-label,
.technology__row:hover .technology__row-icon,
.technology__row:hover .technology__row-add {
    color: #ffffff !important;
}

.technology__row[aria-pressed="true"] {
    background: #E19F65 !important;
    border-color: #E19F65 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(225, 159, 101, 0.35) !important;
}

.technology__row[aria-pressed="true"] .technology__row-label,
.technology__row[aria-pressed="true"] .technology__row-icon,
.technology__row[aria-pressed="true"] .technology__row-add {
    color: #FFFFFF !important;
}

/* Selected Pills inside Technology Form */
.technology__pills {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 0.5rem !important;
}

.technology__pill,
.pill-tech.technology__pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 3rem !important;
    padding: 0.625rem 1.25rem !important;
    background: #E19F65 !important;
    color: #FFFFFF !important;
    border-radius: 2.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(225, 159, 101, 0.25) !important;
    transition: all 0.2s ease !important;
}

.technology__pill .technology__pill-label {
    color: #FFFFFF !important;
    font-weight: 500 !important;
}

.technology__pill .technology__pill-remove {
    color: #FFFFFF !important;
    opacity: 0.85 !important;
    transition: opacity 0.2s ease !important;
}

.technology__pill .technology__pill-remove:hover {
    opacity: 1 !important;
}

/* Dark Theme Overrides for Technology Section */
[data-theme="dark"] .technology__row {
    background: #22211e !important;
    border-color: rgba(244, 239, 234, 0.15) !important;
    color: #FAF7F2 !important;
}

[data-theme="dark"] .technology__row-label,
[data-theme="dark"] .technology__form-prefix,
[data-theme="dark"] .technology__form-text,
[data-theme="dark"] .technology__row-add {
    color: #FAF7F2 !important;
}

[data-theme="dark"] .technology__row-icon {
    color: #E19F65 !important;
}

[data-theme="dark"] .technology__row[aria-pressed="true"] {
    background: #E19F65 !important;
    border-color: #E19F65 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .technology__row[aria-pressed="true"] .technology__row-label,
[data-theme="dark"] .technology__row[aria-pressed="true"] .technology__row-icon,
[data-theme="dark"] .technology__row[aria-pressed="true"] .technology__row-add {
    color: #FFFFFF !important;
}

/* ==========================================
 * Core Values Section & Photo Stack (Exact 100% Original Weichie.com Styles)
 * ========================================== */
.block-core-values {
    background-color: var(--clr-bg-off-white, #FAF7F2);
    position: relative;
}

html[data-theme="dark"] .block-core-values {
    background-color: #0C0C0C;
}

.core-values {
    --core-values-inner-gap: clamp(3rem, 3.75vw + 2.25rem, 6rem);
    --core-values-row-gap: clamp(2rem, 1.25vw + 1.75rem, 3rem);
    --core-values-list-gap: 0;
    --core-values-stack-width: 17.5rem;
    --core-values-stack-height: 22.5rem;
    --core-values-photo-radius: 1rem;
    --core-values-heading-opacity: 1;
    --core-values-heading-fade: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --core-values-fill: 0;
    --core-values-pad-block: var(--pad, 5rem);
    color: var(--clr-black, #12110B);
    padding-block: var(--core-values-pad-block);
    position: relative;
}

@media (min-width: 980px) {
    .core-values {
        --core-values-stack-width: 22.5rem;
        --core-values-stack-height: 28.75rem;
    }
}

.core-values__inner {
    align-items: center;
    gap: var(--core-values-inner-gap);
    flex-direction: column;
    display: flex;
}

.core-values__heading {
    text-align: center;
    opacity: var(--core-values-heading-opacity);
    transition: opacity var(--core-values-heading-fade);
    will-change: opacity;
    margin: 0;
    font-family: var(--ff-serif, Georgia, serif);
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.core-values__grid {
    gap: var(--core-values-row-gap);
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    display: grid;
    position: relative;
}

@media (min-width: 980px) {
    .core-values__grid {
        grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr);
        column-gap: clamp(2.5rem, 4vw, 5rem);
    }
}

.core-values__column {
    --core-values-count: 1;
    gap: var(--core-values-list-gap, 0);
    text-align: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.core-values__column[data-side="left"] {
    --core-values-count: 4;
}

.core-values__column[data-side="right"] {
    --core-values-count: 3;
}

.core-values__value {
    --core-values-index: 0;
    --core-values-line-fill: clamp(0, var(--core-values-fill, 0) * var(--core-values-count, 1) - var(--core-values-index, 0), 1);
    background-image: linear-gradient(
        to right,
        var(--clr-primary, #E19F65) calc(var(--core-values-line-fill) * 100%),
        var(--core-values-unfilled-color, #12110B) calc(var(--core-values-line-fill) * 100%)
    );
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.6rem 0;
    transition: filter 0.2s ease;
}

html[data-theme="dark"] .core-values__value {
    --core-values-unfilled-color: #FAF7F2;
}

.core-values__stack {
    width: var(--core-values-stack-width, 22.5rem);
    height: var(--core-values-stack-height, 28.75rem);
    margin-inline: auto;
    position: relative;
    perspective: 1200px;
    cursor: pointer;
}

.core-values__photo {
    --core-values-photo-rotation: 0deg;
    --core-values-photo-z: 1;
    --core-values-photo-shift: 0px;
    --core-values-photo-drift-x: 0px;
    --core-values-photo-drift-rotation: 0deg;
    --core-values-photo-mouse-x: 0deg;
    --core-values-photo-mouse-y: 0deg;
    z-index: var(--core-values-photo-z);
    border-radius: var(--core-values-photo-radius, 1rem);
    transform-origin: 50% 50%;
    transform: translate3d(var(--core-values-photo-drift-x), var(--core-values-photo-shift), 0)
               rotate(calc(var(--core-values-photo-rotation) + var(--core-values-photo-drift-rotation)))
               rotateX(var(--core-values-photo-mouse-y))
               rotateY(var(--core-values-photo-mouse-x));
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: transform, opacity;
    box-shadow: 0 16px 36px -12px rgba(18, 17, 11, 0.28), 0 4px 12px rgba(18, 17, 11, 0.12);
    transition: box-shadow 0.3s ease;
}

.core-values__photo:hover {
    box-shadow: 0 24px 50px -12px rgba(18, 17, 11, 0.4), 0 8px 18px rgba(18, 17, 11, 0.18);
}

.core-values__photo-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================================
   CALLOUT ICONS MICRO-ANIMATIONS (Airplane, Star, Heart)
   ========================================================================== */

/* 1. Airplane: Smooth buoyant flight & cruise float */
@keyframes planeFlightFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(2px, -3px, 0) rotate(3deg);
    }
    50% {
        transform: translate3d(5px, -5px, 0) rotate(0deg);
    }
    75% {
        transform: translate3d(2px, -1px, 0) rotate(-2deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

@keyframes planeHoverSwoop {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    30% {
        transform: translate3d(-3px, 2px, 0) rotate(-8deg) scale(0.95);
    }
    60% {
        transform: translate3d(8px, -8px, 0) rotate(10deg) scale(1.18);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
}

.latest-work__callout:not(.latest-work__callout--bottom) .callout__icon svg,
[data-icon-anim="plane"] svg,
.callout__icon--plane svg {
    transform-origin: center center;
    animation: planeFlightFloat 3.5s ease-in-out infinite;
    will-change: transform;
    display: block;
}

.latest-work__callout:not(.latest-work__callout--bottom):hover .callout__icon svg,
.callout:hover [data-icon-anim="plane"] svg,
.callout:hover .callout__icon--plane svg {
    animation: planeHoverSwoop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

/* 2. Star: Twinkle, shimmer & gentle pulse */
@keyframes starTwinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 0px rgba(255, 79, 49, 0));
        opacity: 1;
    }
    20% {
        transform: scale(0.92) rotate(-6deg);
        opacity: 0.85;
    }
    45% {
        transform: scale(1.16) rotate(12deg);
        filter: drop-shadow(0 0 8px rgba(255, 79, 49, 0.55));
        opacity: 1;
    }
    70% {
        transform: scale(1.04) rotate(-3deg);
        filter: drop-shadow(0 0 3px rgba(255, 79, 49, 0.25));
        opacity: 0.95;
    }
}

@keyframes starSpinPop {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        filter: drop-shadow(0 0 10px rgba(255, 79, 49, 0.7));
    }
    100% {
        transform: scale(1) rotate(360deg);
        filter: drop-shadow(0 0 0px rgba(255, 79, 49, 0));
    }
}

.latest-work__callout--bottom .callout__icon svg,
[data-icon-anim="star"] svg,
.callout__icon--star svg {
    transform-origin: center center;
    animation: starTwinkle 3s ease-in-out infinite;
    will-change: transform, filter;
    display: block;
}

.latest-work__callout--bottom:hover .callout__icon svg,
.callout:hover [data-icon-anim="star"] svg,
.callout:hover .callout__icon--star svg {
    animation: starSpinPop 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) 1;
}

/* 3. Heart: Rhythmic "lub-dub" heartbeat */
@keyframes heartBeatPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 79, 49, 0));
    }
    12% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(255, 79, 49, 0.6));
    }
    22% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 2px rgba(255, 79, 49, 0.2));
    }
    34% {
        transform: scale(1.24);
        filter: drop-shadow(0 0 10px rgba(255, 79, 49, 0.7));
    }
    50% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 79, 49, 0));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 79, 49, 0));
    }
}

@keyframes heartExcitedBeat {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.28);
        filter: drop-shadow(0 0 12px rgba(255, 79, 49, 0.8));
    }
    30% {
        transform: scale(1.08);
    }
    45% {
        transform: scale(1.32);
        filter: drop-shadow(0 0 14px rgba(255, 79, 49, 0.9));
    }
    60% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.meet-the-team__callout .callout__icon svg,
.team-grid__caption .callout .callout__icon svg,
[data-icon-anim="heart"] svg,
.callout__icon--heart svg {
    transform-origin: center center;
    animation: heartBeatPulse 1.9s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    will-change: transform, filter;
    display: block;
}

.meet-the-team__callout:hover .callout__icon svg,
.team-grid__caption .callout:hover .callout__icon svg,
.callout:hover [data-icon-anim="heart"] svg,
.callout:hover .callout__icon--heart svg {
    animation: heartExcitedBeat 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Callout wrapper polish for hover interaction */
.callout {
    cursor: default;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.callout:hover {
    transform: translateY(-1px);
}

.team-grid__caption {
    padding-top: clamp(1.25rem, 2.5vw, 3rem);
}

/* Legal & Policy Document Layout System */
.legal-page {
    padding-top: clamp(7.5rem, 10vw, 11rem) !important;
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.legal-page__header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;
}

[data-theme="dark"] .legal-page__header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.legal-page__title {
    font-family: var(--ff-serif, Georgia, serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    opacity: 1 !important;
    visibility: visible !important;
    color: currentColor;
}

.legal-page__tagline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
    max-width: 52rem;
}

.legal-page__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 64rem;
}

.legal-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

[data-theme="dark"] .legal-card {
    background: #181815;
    border-color: rgba(244, 239, 234, 0.1);
}

.legal-card__title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: currentColor;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-card__num {
    color: var(--clr-accent, #E19F65);
    font-weight: 800;
}

.legal-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    margin: 1rem 0 1rem 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legal-card li {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.legal-meta-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .legal-meta-box {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.legal-meta-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-accent, #E19F65);
    margin-bottom: 0.25rem;
}

/* ==========================================
   Homepage Core Services Showcase Grid
   ========================================== */

.block-home-services {
    padding: 6rem 0;
    background: transparent;
}

.home-services {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.home-services__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.home-services__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #09090b;
    letter-spacing: -0.02em;
    margin: 0;
}

[data-theme="dark"] .home-services__title {
    color: #ffffff;
}

.home-services__subtitle {
    font-size: 1.125rem;
    color: #71717a;
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .home-services__subtitle {
    color: #a1a1aa;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.home-service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .home-service-card {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.home-service-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-accent, #6366f1);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .home-service-card:hover {
    border-color: var(--brand-accent, #818cf8);
    box-shadow: 0 25px 50px -12px rgba(129, 140, 248, 0.3);
}

.home-service-card__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-service-card__icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--brand-accent, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .home-service-card__icon {
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
}

.home-service-card:hover .home-service-card__icon {
    transform: scale(1.1) rotate(-3deg);
    background: var(--brand-accent, #6366f1);
    color: #ffffff;
}

.home-service-card__badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(0,0,0,0.15);
    letter-spacing: -0.04em;
}

[data-theme="dark"] .home-service-card__badge {
    color: rgba(255,255,255,0.15);
}

.home-service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

[data-theme="dark"] .home-service-card__title {
    color: #f4f4f5;
}

.home-service-card__desc {
    font-size: 0.9375rem;
    color: #52525b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .home-service-card__desc {
    color: #a1a1aa;
}

.home-service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-service-card__features li {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3f3f46;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .home-service-card__features li {
    color: #d4d4d8;
}

.home-service-card__features li span {
    color: var(--brand-accent, #6366f1);
    font-weight: 700;
}

.home-service-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    color: #09090b;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .home-service-card__btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.home-service-card__btn .arrow {
    transition: transform 0.3s ease;
}

.home-service-card:hover .home-service-card__btn {
    background: var(--brand-accent, #6366f1);
    color: #ffffff;
}

.home-service-card:hover .home-service-card__btn .arrow {
    transform: translate(3px, -3px);
}

/* Hero Homepage Stage & WebGL Canvas Rules */
.hero-homepage {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-homepage__stage {
    position: relative;
    width: 100%;
    height: var(--hero-homepage-stage-height, min(clamp(26.25rem, 23.4375vw + 21.5625rem, 45rem), calc(100dvh - 8rem)));
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.hero-homepage__canvas {
    z-index: 1;
    cursor: grab;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.hero-homepage__canvas:active {
    cursor: grabbing;
}

.hero-homepage__canvas canvas {
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Dynamic Interactive Hero Stage Cards */
.hero-stage-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 860px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, z-index 0.6s ease;
    background: #111111;
    cursor: pointer;
}

.hero-stage-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stage-slide:hover img {
    transform: scale(1.05);
}

.hero-stage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: #ffffff;
    pointer-events: none;
}

.hero-stage-overlay * {
    pointer-events: auto;
}

.hero-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.hero-stage-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-stage-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: #E19F65;
    color: #000000;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    width: fit-content;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-stage-cta:hover {
    background: #d48f54;
    transform: translateY(-2px);
}

/* Completely hide Meet The Team block section */
.block-meet-the-team,
.meet-the-team,
.meet-the-team__centerpiece-wrapper,
.meet-the-team__centerpiece,
.meet-the-team__centerpiece-image,
.meet-the-team__marquee {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Hide hand gesture circle logo from Let's Talk / Contact Pill Buttons */
.pill-contact__icon {
    display: none !important;
}

.pill-contact {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    gap: 0 !important;
}

/* Completely hide agency.svg icon everywhere */
/* Hide gallery scroll section globally */
.block-gallery-scroll,
.gallery-scroll {
    display: none !important;
}



