:root {
    --ag-sand: #f5f1ea;
    --ag-paper: #ffffff;
    --ag-ink: #1d1a16;
    --ag-muted: #6f665a;
    --ag-line: #e6dfd3;
    --ag-accent: #d04c2f;
    --ag-accent-soft: #fff1ec;
}

.ag-directory-intro {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--ag-muted);
    font-size: 17px;
    line-height: 1.65;
}

.ag-directory-grid {
    --bs-gutter-x: 28px;
    --bs-gutter-y: 28px;
}

.ag-directory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ag-paper);
    border: 1px solid var(--ag-line);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 40px -34px rgba(26, 20, 14, 0.5);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: ag-rise 0.55s ease both;
}

.ag-directory-grid > div:nth-child(2n) .ag-directory-card {
    animation-delay: 0.07s;
}

.ag-directory-grid > div:nth-child(3n) .ag-directory-card {
    animation-delay: 0.12s;
}

.ag-directory-card:hover {
    transform: translateY(-7px);
    border-color: #d8c9b1;
    box-shadow: 0 28px 56px -34px rgba(26, 20, 14, 0.45);
}

.ag-directory-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 15% 15%, #f1e9dd 0%, #e6dbca 46%, #d6c5ae 100%);
}

.ag-directory-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0, 1);
}

.ag-directory-card:hover .ag-directory-media img {
    transform: scale(1.05);
}

.ag-directory-chip {
    position: absolute;
    right: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #3f3528;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 185, 161, 0.8);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.ag-directory-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.ag-directory-title {
    margin: 0 0 10px;
    color: var(--ag-ink);
    font-size: 29px;
    line-height: 1.1;
    font-family: "Sequel Sans", "Segoe UI", sans-serif;
}

.ag-directory-title a:hover {
    color: var(--ag-accent);
}

.ag-directory-meta {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #554a3f;
    font-size: 15px;
}

.ag-directory-meta i {
    color: var(--ag-accent);
}

.ag-directory-description {
    margin: 0;
    color: var(--ag-muted);
    font-size: 15px;
    line-height: 1.65;
    min-height: 74px;
}

.ag-directory-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ag-directory-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #c8482d 0%, #e26f47 100%);
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.ag-directory-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -15px rgba(208, 76, 47, 0.85);
    color: #fff;
}

.ag-directory-link.ag-directory-link-outline {
    color: #4a4034;
    background: #fff;
    border-color: #d4c8b6;
}

.ag-directory-link.ag-directory-link-outline:hover {
    color: var(--ag-accent);
    box-shadow: none;
}

.ag-directory-empty {
    padding: 36px 30px;
    border: 1px dashed #d8cbb8;
    border-radius: 9px;
    background: linear-gradient(150deg, #fbf8f3 0%, #f5eee3 100%);
}

.ag-directory-empty h4,
.ag-directory-empty h3 {
    color: var(--ag-ink);
}

.ag-directory-empty p {
    color: var(--ag-muted);
}

.ag-profile-area {
    position: relative;
}

.ag-profile-shell {
    background: linear-gradient(145deg, #fff 0%, #faf5ee 47%, #f1e8da 100%);
    border: 1px solid var(--ag-line);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 62px -48px rgba(25, 19, 13, 0.65);
}

.ag-profile-media {
    height: 100%;
    min-height: 430px;
    background: radial-gradient(circle at 14% 12%, #ede2d1 0%, #dbc8ad 52%, #c8ab86 100%);
}

.ag-profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-profile-content {
    padding: 50px 48px;
}

.ag-profile-kicker {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6a5944;
}

.ag-profile-title {
    margin: 0;
    color: var(--ag-ink);
    font-size: clamp(38px, 5vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ag-profile-location {
    margin: 20px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #5a4f42;
    font-size: 16px;
}

.ag-profile-location i {
    color: var(--ag-accent);
}

.ag-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.ag-profile-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d7cdbf;
    background: rgba(255, 255, 255, 0.86);
    color: #53473b;
    font-size: 13px;
}

.ag-profile-description {
    margin-top: 24px;
    color: #5f564b;
    line-height: 1.72;
    font-size: 16px;
}

.ag-profile-description p:last-child {
    margin-bottom: 0;
}

.ag-profile-primary-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ag-profile-lower {
    padding: 0 48px 48px;
}

.ag-profile-panel {
    height: 100%;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid #e3d8c9;
    background: linear-gradient(155deg, #ffffff 0%, #f8f2e8 100%);
}

.ag-profile-panel-title {
    margin: 0 0 18px;
    color: var(--ag-ink);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.ag-profile-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.ag-profile-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ag-profile-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #cd4f31 0%, #d96d49 100%);
    flex: 0 0 34px;
}

.ag-profile-contact-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ag-profile-contact-label {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a6a55;
}

.ag-profile-contact-content a,
.ag-profile-contact-content span {
    color: #2d261e;
    font-size: 15px;
    line-height: 1.45;
}

.ag-profile-contact-content a:hover {
    color: var(--ag-accent);
}

.ag-profile-social-list {
    display: grid;
    gap: 10px;
}

.ag-profile-social-list a {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid #dccfbd;
    background: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #41372b;
    font-weight: 600;
    transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.ag-profile-social-list a:hover {
    transform: translateX(2px);
    border-color: #cda27f;
    color: var(--ag-accent);
}

@media (max-width: 1199px) {
    .ag-profile-content {
        padding: 40px 34px;
    }

    .ag-profile-lower {
        padding: 0 34px 34px;
    }
}

@media (max-width: 991px) {
    .ag-directory-intro {
        font-size: 16px;
    }

    .ag-profile-media {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .ag-directory-grid {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 18px;
    }

    .ag-directory-card {
        border-radius: 20px;
    }

    .ag-directory-body {
        padding: 18px;
    }

    .ag-directory-title {
        font-size: 24px;
    }

    .ag-directory-description {
        min-height: 0;
    }

    .ag-profile-shell {
        border-radius: 22px;
    }

    .ag-profile-content {
        padding: 28px 20px;
    }

    .ag-profile-lower {
        padding: 0 20px 22px;
    }

    .ag-profile-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .ag-profile-panel-title {
        font-size: 19px;
    }

    .ag-profile-title {
        font-size: clamp(32px, 12vw, 46px);
    }
}

@keyframes ag-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ag-studio-details-list,
.ag-studio-social-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ag-studio-details-list li {
    margin-bottom: 12px;
}

.ag-studio-details-list li span {
    margin-right: 8px;
    font-weight: 500;
}

.ag-studio-details-list li span i {
    margin-right: 6px;
    color: var(--ag-accent);
}

.ag-studio-social-list li {
    margin-bottom: 10px;
}

.ag-studio-social-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ag-studio-projects .mp-portfolio-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f0e8;
}

.ag-studio-projects .mp-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-profile-photo-grid {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
}

.ag-profile-photo-col {
    flex: 0 0 50%;
    max-width: 50%;
}

.ag-profile-photo-item .mp-portfolio-thumb {
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .ag-profile-photo-col {
        flex-basis: 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 768px) {
    .ag-profile-photo-col {
        flex-basis: 20%;
        max-width: 20%;
    }
}

@media (min-width: 992px) {
    .ag-profile-photo-col {
        flex-basis: 10%;
        max-width: 10%;
    }
}

@media (min-width: 1200px) {
    .ag-profile-photo-col {
        flex-basis: 6.666667%;
        max-width: 6.666667%;
    }
}
