.tpd-portfolio,
.tpd-portfolio * {
    box-sizing: border-box;
}

.tpd-portfolio {
    --tpd-bg: #f7faff;
    --tpd-card: #ffffff;
    --tpd-text: #0f172a;
    --tpd-muted: #64748b;
    --tpd-line: #dbeafe;
    --tpd-blue: #2563eb;
    --tpd-sky: #0ea5e9;
    --tpd-cyan: #22d3ee;
    --tpd-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #22d3ee 100%);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
    background: var(--tpd-bg);
    color: var(--tpd-text);
    font-family: Inter, Manrope, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tpd-portfolio a {
    color: inherit;
    text-decoration: none;
}

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

.tpd-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    z-index: 50;
    border-bottom: 1px solid rgba(219, 234, 254, 0.9);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.tpd-header__inner,
.tpd-container {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.tpd-header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}

.tpd-brand {
    flex: 0 0 auto;
    text-align: left;
}

.tpd-brand span {
    display: block;
    color: var(--tpd-text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tpd-brand small {
    display: block;
    margin-top: 4px;
    color: var(--tpd-sky);
    font-size: 12px;
    font-weight: 800;
}

.tpd-nav {
    display: flex;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid rgba(219, 234, 254, 0.95);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.82);
    scrollbar-width: none;
}

.tpd-nav::-webkit-scrollbar {
    display: none;
}

.tpd-nav__link {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--tpd-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    transition: 180ms ease;
}

.tpd-nav__link:hover,
.tpd-nav__link.is-active {
    color: var(--tpd-sky);
    background: #fff;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.12);
}

.tpd-section {
    scroll-margin-top: 86px;
    padding: 72px 0;
}

.tpd-hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(14, 165, 233, 0.22), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #eff7ff 100%);
}

.tpd-hero__grid {
    display: grid;
    align-items: center;
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) 430px;
}

.tpd-eyebrow,
.tpd-section-heading > p,
.tpd-mini-label {
    color: var(--tpd-sky);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.tpd-eyebrow {
    display: inline-flex;
    padding: 9px 15px;
    border: 1px solid var(--tpd-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.08);
}

.tpd-hero h1,
.tpd-section-heading h2,
.tpd-contact-card h2 {
    margin: 0;
    color: var(--tpd-text);
    font-weight: 950;
    letter-spacing: 0;
}

.tpd-hero h1 {
    max-width: 820px;
    margin-top: 28px;
    font-size: clamp(52px, 8vw, 92px);
    line-height: 0.98;
}

.tpd-hero h1 span {
    background: var(--tpd-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tpd-hero h2 {
    max-width: 720px;
    margin: 26px 0 0;
    color: #0f172a;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.17;
}

.tpd-lead,
.tpd-section-heading > span,
.tpd-card p,
.tpd-contact-card span {
    color: var(--tpd-muted);
    font-size: 16px;
    line-height: 1.8;
}

.tpd-lead {
    max-width: 700px;
    margin: 22px 0 0;
    font-size: 18px;
}

.tpd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.tpd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 18px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
    transition: 180ms ease;
}

.tpd-button:hover {
    transform: translateY(-2px);
}

.tpd-button--primary {
    color: #fff;
    background: var(--tpd-gradient);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.tpd-button--secondary {
    color: var(--tpd-text);
    border: 1px solid #cbd5e1;
    background: #fff;
}

.tpd-button--light {
    color: var(--tpd-text);
    background: #fff;
}

.tpd-button--outline-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.tpd-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.tpd-stat-card,
.tpd-card {
    border: 1px solid rgba(219, 234, 254, 0.92);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.tpd-stat-card {
    padding: 22px;
}

.tpd-stat-card strong {
    display: block;
    color: var(--tpd-text);
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
}

.tpd-stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--tpd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.tpd-profile {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.tpd-profile__frame {
    position: relative;
    padding: 12px;
    border: 1px solid var(--tpd-line);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.12);
}

.tpd-profile__frame::before {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: -1;
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.18));
    filter: blur(24px);
}

.tpd-profile__image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 56%, #dbeafe 100%);
}

.tpd-profile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.tpd-profile__placeholder {
    position: absolute;
    inset: 16px 32px 0;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
    box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.08);
}

.tpd-profile__placeholder span {
    position: absolute;
    top: 54px;
    left: 50%;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    transform: translateX(-50%);
    border: 1px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--tpd-sky);
    font-size: 42px;
    font-weight: 950;
}

.tpd-profile__placeholder::after {
    content: "";
    position: absolute;
    bottom: 72px;
    left: 50%;
    width: 235px;
    height: 176px;
    transform: translateX(-50%);
    border-radius: 80px 80px 0 0;
    background: #0f172a;
}

.tpd-profile__hint {
    position: absolute;
    top: 24px;
    left: 24px;
    margin: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tpd-profile__caption {
    padding: 25px;
    background: #fff;
    border-radius: 0 0 25px 25px;
}

.tpd-profile__caption strong {
    display: block;
    color: var(--tpd-text);
    font-size: 28px;
    font-weight: 950;
    line-height: 1.1;
}

.tpd-profile__caption p {
    margin: 12px 0 0;
    color: var(--tpd-muted);
    font-size: 15px;
    line-height: 1.7;
}

.tpd-section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.tpd-section-heading h2 {
    margin-top: 15px;
    font-size: clamp(32px, 4.5vw, 54px);
    line-height: 1.05;
}

.tpd-section-heading > span {
    display: block;
    margin-top: 17px;
}

.tpd-proof-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 0.8fr 1.2fr;
}

.tpd-card {
    padding: 30px;
}

.tpd-card--feature h3,
.tpd-service-card h3,
.tpd-case-card h3,
.tpd-writing-card h3 {
    margin: 0;
    color: var(--tpd-text);
    font-weight: 950;
    line-height: 1.15;
}

.tpd-card--feature h3 {
    margin-top: 16px;
    font-size: 34px;
}

.tpd-card--feature p:last-child {
    margin: 18px 0 0;
}

.tpd-chip-list,
.tpd-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tpd-chip-list span {
    border: 1px solid var(--tpd-line);
    border-radius: 999px;
    padding: 10px 15px;
    background: #eff6ff;
    color: #334155;
    font-size: 14px;
    font-weight: 850;
}

.tpd-timeline {
    position: relative;
    padding-left: 64px;
}

.tpd-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 20px;
    width: 1px;
    background: #dbeafe;
}

.tpd-timeline__item {
    position: relative;
    padding-bottom: 28px;
}

.tpd-timeline__item:last-child {
    padding-bottom: 0;
}

.tpd-timeline__dot {
    position: absolute;
    top: 9px;
    left: -58px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(219, 234, 254, 0.95), 0 14px 24px rgba(15, 23, 42, 0.07);
}

.tpd-timeline__dot::after {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
}

.tpd-timeline__card {
    display: grid;
    gap: 22px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 26px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
    transition: 180ms ease;
}

.tpd-timeline__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.tpd-timeline__meta p {
    margin: 0;
    color: var(--tpd-sky);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tpd-timeline__meta strong {
    display: block;
    margin-top: 12px;
    color: var(--tpd-text);
    font-size: 18px;
    font-weight: 950;
}

.tpd-timeline__meta span {
    display: block;
    margin-top: 6px;
    color: var(--tpd-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tpd-timeline__card > div:last-child > p {
    margin: 0;
    color: var(--tpd-muted);
    line-height: 1.8;
}

.tpd-tag-list {
    margin-top: 16px;
}

.tpd-tag-list span {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 7px 11px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.tpd-service-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpd-service-card,
.tpd-writing-card {
    transition: 180ms ease;
}

.tpd-service-card:hover,
.tpd-writing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.09);
}

.tpd-price {
    display: inline-flex;
    margin: 0 0 18px;
    border-radius: 999px;
    padding: 7px 12px;
    background: #eff6ff;
    color: var(--tpd-sky);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tpd-service-card h3,
.tpd-case-card h3 {
    font-size: 26px;
}

.tpd-service-card p:not(.tpd-price),
.tpd-case-card p:not(.tpd-mini-label),
.tpd-writing-card p {
    margin: 16px 0 0;
}

.tpd-service-card ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tpd-service-card li {
    position: relative;
    padding-left: 18px;
    color: #334155;
    font-size: 14px;
    font-weight: 850;
}

.tpd-service-card li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tpd-sky);
}

.tpd-case-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpd-case-card h3,
.tpd-writing-card h3 {
    margin-top: 16px;
}

.tpd-writing-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tpd-writing-card strong {
    display: inline-flex;
    margin-top: 24px;
    color: var(--tpd-sky);
    font-size: 14px;
    font-weight: 950;
}

.tpd-contact-section {
    padding-top: 52px;
}

.tpd-contact-card {
    overflow: hidden;
    border-radius: 40px;
    padding: 48px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #0ea5e9 100%);
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.2);
}

.tpd-contact-card > p {
    margin: 0;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.tpd-contact-card h2 {
    max-width: 880px;
    margin-top: 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.tpd-contact-card span {
    display: block;
    max-width: 720px;
    margin-top: 20px;
    color: #eff6ff;
}

@media (max-width: 980px) {
    .tpd-hero__grid,
    .tpd-proof-grid,
    .tpd-case-grid,
    .tpd-writing-grid {
        grid-template-columns: 1fr;
    }

    .tpd-service-grid {
        grid-template-columns: 1fr;
    }

    .tpd-profile {
        max-width: 390px;
    }

    .tpd-timeline__card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tpd-header__inner,
    .tpd-container {
        width: min(100% - 24px, 1180px);
    }

    .tpd-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tpd-nav {
        width: 100%;
        margin-left: 0;
    }

    .tpd-section {
        padding: 54px 0;
        scroll-margin-top: 128px;
    }

    .tpd-hero {
        min-height: auto;
    }

    .tpd-hero__grid {
        padding-top: 12px;
    }

    .tpd-stat-grid {
        grid-template-columns: 1fr;
    }

    .tpd-actions {
        flex-direction: column;
    }

    .tpd-button {
        width: 100%;
    }

    .tpd-card,
    .tpd-contact-card {
        padding: 24px;
        border-radius: 28px;
    }

    .tpd-timeline {
        padding-left: 46px;
    }

    .tpd-timeline::before {
        left: 16px;
    }

    .tpd-timeline__dot {
        left: -44px;
        width: 32px;
        height: 32px;
    }

    .tpd-timeline__dot::after {
        width: 16px;
        height: 16px;
    }

    .tpd-timeline__card {
        padding: 22px;
        border-radius: 28px;
    }

    .tpd-contact-card h2 {
        font-size: 32px;
    }
}
