body.portfolio-page {
    background:
        radial-gradient(circle at top left, rgba(233, 30, 99, 0.16), transparent 24%),
        radial-gradient(circle at 100% 0, rgba(32, 126, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #05070c 0%, #090d14 46%, #05070c 100%);
    color: #eef2ff;
}

.portfolio-page main {
    overflow: hidden;
}

.portfolio-hero,
.portfolio-section {
    position: relative;
}

.portfolio-hero {
    padding: 152px 0 88px;
    overflow: clip;
}

.portfolio-hero-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.96), transparent 92%);
    pointer-events: none;
}

.portfolio-hero-glow {
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    filter: blur(76px);
    opacity: 0.42;
    pointer-events: none;
}

.portfolio-hero-glow-left {
    top: -180px;
    left: -160px;
    background: rgba(233, 30, 99, 0.3);
}

.portfolio-hero-glow-right {
    right: -220px;
    bottom: -180px;
    background: rgba(42, 143, 255, 0.24);
}

.portfolio-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.portfolio-hero-copy {
    max-width: 720px;
}

.portfolio-hero-title {
    margin: 22px 0 18px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.95rem, 7vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: #ffffff;
}

.portfolio-hero-description,
.portfolio-section-heading p,
.portfolio-model-card p,
.portfolio-card-body p,
.portfolio-cta-copy p,
.portfolio-profile-head p {
    color: rgba(228, 233, 245, 0.78);
    font-size: clamp(1rem, 1.45vw, 1.14rem);
    line-height: 1.78;
}

.portfolio-hero-rotating {
    margin-top: 28px;
    display: inline-grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portfolio-hero-rotating-label,
.portfolio-profile-list span,
.portfolio-panel-intro p,
.portfolio-floating-note span,
.portfolio-card-category,
.portfolio-card-year,
.portfolio-modal-category,
.portfolio-contact-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-hero-rotating strong {
    min-height: 1.4em;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.1rem, 1.7vw, 1.38rem);
    color: #ffffff;
}

.portfolio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.portfolio-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.portfolio-stat-card,
.portfolio-profile-card,
.portfolio-model-card,
.portfolio-card,
.portfolio-cta-panel,
.portfolio-modal-dialog {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.portfolio-stat-card {
    padding: 20px 18px;
}

.portfolio-stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 1.28rem;
}

.portfolio-stat-card span {
    color: rgba(223, 229, 242, 0.68);
    font-size: 0.92rem;
    line-height: 1.55;
}

.portfolio-hero-panel {
    position: relative;
    min-height: 520px;
}

.portfolio-panel-shell {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(12, 16, 27, 0.96), rgba(6, 10, 18, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 36px 70px rgba(0, 0, 0, 0.42);
}

.portfolio-panel-header {
    display: flex;
    gap: 10px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-panel-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.portfolio-panel-header span:nth-child(1) {
    background: #ff5f57;
}

.portfolio-panel-header span:nth-child(2) {
    background: #ffbd2e;
}

.portfolio-panel-header span:nth-child(3) {
    background: #27c93f;
}

.portfolio-panel-body {
    padding: 30px;
    display: grid;
    gap: 22px;
}

.portfolio-panel-intro strong,
.portfolio-panel-item strong,
.portfolio-floating-note strong,
.portfolio-model-card h3,
.portfolio-card h3,
.portfolio-cta-copy h2,
.portfolio-profile-head h2,
.portfolio-section-heading h2,
.portfolio-modal-sidebar h3,
.portfolio-contact-list strong {
    color: #ffffff;
    font-family: 'Sora', sans-serif;
}

.portfolio-panel-intro strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.28rem, 1.6vw, 1.6rem);
    line-height: 1.35;
}

.portfolio-panel-list,
.portfolio-panel-footer,
.portfolio-profile-list,
.portfolio-model-grid,
.portfolio-grid,
.portfolio-contact-list,
.portfolio-modal-stack,
.portfolio-modal-tags {
    display: grid;
    gap: 14px;
}

.portfolio-panel-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-panel-item-meta {
    display: grid;
    gap: 8px;
}

.portfolio-panel-item-meta span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-panel-item-meta strong {
    font-size: 1rem;
    line-height: 1.45;
}

.portfolio-panel-item small {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
}

.portfolio-panel-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-panel-footer > div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-panel-footer span,
.portfolio-modal-meta span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-panel-footer strong {
    line-height: 1.55;
}

.portfolio-floating-note {
    position: absolute;
    max-width: 240px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(7, 9, 14, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.portfolio-floating-note-top {
    top: 28px;
    right: -12px;
    animation: portfolioFloat 7s ease-in-out infinite;
}

.portfolio-floating-note-bottom {
    bottom: 18px;
    left: -24px;
    animation: portfolioFloat 8s ease-in-out infinite reverse;
}

@keyframes portfolioFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.portfolio-section {
    padding: clamp(76px, 10vw, 112px) 0;
}

.portfolio-about-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.portfolio-profile-card,
.portfolio-cta-panel {
    padding: 30px;
}

.portfolio-profile-head {
    margin-bottom: 24px;
}

.portfolio-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.12);
    border: 1px solid rgba(233, 30, 99, 0.22);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-profile-head h2,
.portfolio-section-heading h2,
.portfolio-cta-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.portfolio-profile-list > div {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-profile-list strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    line-height: 1.58;
}

.portfolio-section-heading {
    max-width: 820px;
    margin-bottom: 36px;
}

.portfolio-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-model-card {
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.portfolio-model-card:hover,
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 30, 99, 0.22);
}

.portfolio-model-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(233, 30, 99, 0.12);
    border: 1px solid rgba(233, 30, 99, 0.2);
    color: #ffffff;
    font-weight: 700;
}

.portfolio-model-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.34;
}

.portfolio-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.portfolio-filter {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(235, 239, 248, 0.72);
    font-size: 0.95rem;
    font-weight: 700;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
    border-color: rgba(233, 30, 99, 0.32);
    background: rgba(233, 30, 99, 0.12);
    color: #ffffff;
}

.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.portfolio-card.is-hidden {
    display: none;
}

.portfolio-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(233, 30, 99, 0.24), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card-placeholder {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(233, 30, 99, 0.18), rgba(33, 150, 243, 0.12)),
        linear-gradient(180deg, rgba(6, 10, 18, 0.4), rgba(6, 10, 18, 0.86));
}

.portfolio-card-placeholder span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-card-placeholder strong {
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 1.16rem;
    line-height: 1.35;
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, rgba(5, 7, 12, 0.12), rgba(5, 7, 12, 0.82));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-overlay-copy {
    display: grid;
    gap: 10px;
}

.portfolio-card-overlay-copy span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-card-overlay-copy strong {
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 1.24rem;
    line-height: 1.35;
}

.portfolio-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.portfolio-card-action-secondary {
    background: rgba(5, 7, 12, 0.34);
}

.portfolio-card-body {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.portfolio-card-topline,
.portfolio-card-footer,
.portfolio-cta-panel,
.portfolio-footer-grid,
.portfolio-modal-meta,
.portfolio-modal-actions {
    display: flex;
    gap: 16px;
}

.portfolio-card-topline,
.portfolio-card-footer,
.portfolio-modal-meta {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.portfolio-card h3 {
    font-size: 1.2rem;
    line-height: 1.38;
}

.portfolio-card-title-link {
    color: inherit;
    text-decoration: none;
}

.portfolio-card-title-link:hover {
    color: #ffffff;
}

.portfolio-card-tags,
.portfolio-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-card-tags span,
.portfolio-modal-tags span,
.portfolio-card-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(241, 244, 252, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
}

.portfolio-card-badge {
    background: rgba(233, 30, 99, 0.12);
    border-color: rgba(233, 30, 99, 0.18);
    color: #ffffff;
}

.portfolio-cta-panel {
    justify-content: space-between;
    align-items: center;
    padding: clamp(26px, 4vw, 40px);
}

.portfolio-cta-copy {
    flex: 1 1 360px;
    max-width: 780px;
}

.portfolio-cta-actions {
    flex: 0 1 320px;
    display: grid;
    gap: 18px;
}

.portfolio-contact-list a {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.portfolio-footer {
    padding: 32px 0 28px;
    background: rgba(4, 6, 12, 0.86);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-footer-grid {
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-logo {
    width: 132px;
    height: auto;
}

.footer-text {
    max-width: 420px;
    margin-top: 14px;
    color: rgba(228, 233, 245, 0.66);
    line-height: 1.75;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(238, 242, 252, 0.8);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(228, 233, 245, 0.58);
}

.portfolio-modal[hidden] {
    display: none;
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 10, 0.74);
    backdrop-filter: blur(10px);
}

.portfolio-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 32px));
    margin: 40px auto;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(10, 14, 24, 0.98), rgba(6, 9, 16, 0.98));
}

.portfolio-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.portfolio-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.portfolio-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.portfolio-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.portfolio-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    min-height: min(78vh, 720px);
}

.portfolio-modal-stage {
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 16px;
}

.portfolio-modal-stage-media {
    min-height: 380px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(233, 30, 99, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-stage-media img,
.portfolio-modal-stage-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-modal-stage-media img {
    object-fit: cover;
}

.portfolio-modal-empty {
    display: grid;
    gap: 12px;
    text-align: center;
    color: rgba(235, 239, 248, 0.76);
    padding: 32px;
}

.portfolio-modal-empty strong {
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
}

.portfolio-modal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.portfolio-modal-thumb {
    width: 92px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
}

.portfolio-modal-thumb img,
.portfolio-modal-thumb span {
    width: 100%;
    height: 100%;
}

.portfolio-modal-thumb img {
    object-fit: cover;
}

.portfolio-modal-thumb span {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-modal-thumb.is-active {
    border-color: rgba(233, 30, 99, 0.32);
    box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.24);
}

.portfolio-modal-sidebar {
    padding: 34px 30px;
    display: grid;
    align-content: start;
    gap: 18px;
    overflow-y: auto;
}

.portfolio-modal-sidebar h3 {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    line-height: 1.08;
}

.portfolio-modal-description {
    color: rgba(228, 233, 245, 0.78);
    line-height: 1.8;
}

.portfolio-modal-stack {
    gap: 10px;
}

.portfolio-modal-stack li {
    list-style: none;
    position: relative;
    padding-left: 18px;
    color: rgba(236, 240, 248, 0.76);
    line-height: 1.7;
}

.portfolio-modal-stack li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #ff7b54);
}

.portfolio-modal-meta {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-modal-meta strong {
    color: #ffffff;
}

.portfolio-modal-actions {
    flex-wrap: wrap;
}

html[data-site-theme='light'] .portfolio-page {
    background: #ffffff;
    color: #141826;
}

html[data-site-theme='light'] .portfolio-page main {
    background: #ffffff;
    background-image: none;
}

html[data-site-theme='light'] .portfolio-hero-noise {
    opacity: 0;
    background: none;
    background-image: none;
}

html[data-site-theme='light'] .portfolio-hero-glow-left,
html[data-site-theme='light'] .portfolio-hero-glow-right {
    background: transparent;
    opacity: 0;
}

html[data-site-theme='light'] .portfolio-hero-title,
html[data-site-theme='light'] .portfolio-section-heading h2,
html[data-site-theme='light'] .portfolio-profile-head h2,
html[data-site-theme='light'] .portfolio-cta-copy h2,
html[data-site-theme='light'] .portfolio-model-card h3,
html[data-site-theme='light'] .portfolio-card h3,
html[data-site-theme='light'] .portfolio-card-placeholder strong,
html[data-site-theme='light'] .portfolio-modal-sidebar h3,
html[data-site-theme='light'] .portfolio-modal-empty strong,
html[data-site-theme='light'] .portfolio-contact-list strong {
    color: #141826;
}

html[data-site-theme='light'] .portfolio-hero-description,
html[data-site-theme='light'] .portfolio-section-heading p,
html[data-site-theme='light'] .portfolio-model-card p,
html[data-site-theme='light'] .portfolio-card-body p,
html[data-site-theme='light'] .portfolio-cta-copy p,
html[data-site-theme='light'] .portfolio-profile-head p,
html[data-site-theme='light'] .portfolio-modal-description,
html[data-site-theme='light'] .portfolio-modal-stack li,
html[data-site-theme='light'] .footer-text,
html[data-site-theme='light'] .footer-bottom {
    color: rgba(20, 24, 38, 0.72);
}

html[data-site-theme='light'] .portfolio-stat-card,
html[data-site-theme='light'] .portfolio-profile-card,
html[data-site-theme='light'] .portfolio-model-card,
html[data-site-theme='light'] .portfolio-card,
html[data-site-theme='light'] .portfolio-cta-panel,
html[data-site-theme='light'] .portfolio-modal-dialog {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(20, 24, 38, 0.08);
}

html[data-site-theme='light'] .portfolio-panel-intro p,
html[data-site-theme='light'] .portfolio-panel-item-meta span,
html[data-site-theme='light'] .portfolio-hero-rotating-label,
html[data-site-theme='light'] .portfolio-profile-list span,
html[data-site-theme='light'] .portfolio-card-category,
html[data-site-theme='light'] .portfolio-card-year,
html[data-site-theme='light'] .portfolio-modal-category,
html[data-site-theme='light'] .portfolio-contact-list span {
    color: rgba(20, 24, 38, 0.54);
}

html[data-site-theme='light'] .portfolio-panel-item small,
html[data-site-theme='light'] .portfolio-card-badge,
html[data-site-theme='light'] .portfolio-stat-card strong,
html[data-site-theme='light'] .portfolio-contact-list strong,
html[data-site-theme='light'] .portfolio-hero-rotating strong {
    color: #141826;
}

html[data-site-theme='light'] .portfolio-panel-footer > div,
html[data-site-theme='light'] .portfolio-panel-item,
html[data-site-theme='light'] .portfolio-contact-list a,
html[data-site-theme='light'] .portfolio-modal-stage-media,
html[data-site-theme='light'] .portfolio-hero-rotating,
html[data-site-theme='light'] .portfolio-card-tags span,
html[data-site-theme='light'] .portfolio-modal-tags span {
    background: rgba(20, 24, 38, 0.03);
    border-color: rgba(20, 24, 38, 0.08);
}

html[data-site-theme='light'] .portfolio-stat-card,
html[data-site-theme='light'] .portfolio-hero-rotating {
    background: rgba(233, 30, 99, 0.04);
    border-color: rgba(20, 24, 38, 0.08);
}

html[data-site-theme='light'] .portfolio-stat-card span,
html[data-site-theme='light'] .portfolio-card-tags span,
html[data-site-theme='light'] .portfolio-modal-tags span,
html[data-site-theme='light'] .portfolio-panel-item small {
    color: rgba(20, 24, 38, 0.7);
}

html[data-site-theme='light'] .portfolio-panel-shell {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(9, 13, 24, 0.96)),
        #0f172a;
}

html[data-site-theme='light'] .portfolio-panel-intro strong,
html[data-site-theme='light'] .portfolio-panel-item strong,
html[data-site-theme='light'] .portfolio-panel-footer strong,
html[data-site-theme='light'] .portfolio-floating-note strong {
    color: #ffffff;
}

html[data-site-theme='light'] .portfolio-panel-intro p,
html[data-site-theme='light'] .portfolio-panel-item-meta span,
html[data-site-theme='light'] .portfolio-panel-footer span,
html[data-site-theme='light'] .portfolio-floating-note span {
    color: rgba(255, 255, 255, 0.68);
}

html[data-site-theme='light'] .portfolio-footer {
    background: rgba(255, 255, 255, 0.88);
    border-top-color: rgba(20, 24, 38, 0.08);
}

html[data-site-theme='light'] .footer-links a,
html[data-site-theme='light'] .footer-contact a {
    color: rgba(20, 24, 38, 0.76);
}

html[data-site-theme='light'] .portfolio-card-title-link:hover {
    color: #141826;
}

@media (max-width: 1180px) {
    .portfolio-hero-grid,
    .portfolio-about-grid,
    .portfolio-cta-panel,
    .portfolio-modal-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-hero-panel {
        min-height: auto;
    }

    .portfolio-panel-footer,
    .portfolio-model-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-modal-stage {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 900px) {
    .portfolio-hero {
        padding-top: 132px;
    }

    .portfolio-hero-stats,
    .portfolio-panel-footer,
    .portfolio-model-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(5, 7, 12, 0.08), rgba(5, 7, 12, 0.74));
    }
}

@media (max-width: 680px) {
    .portfolio-hero-actions,
    .portfolio-modal-actions {
        flex-direction: column;
    }

    .portfolio-hero-actions .btn,
    .portfolio-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-profile-card,
    .portfolio-model-card,
    .portfolio-card-body,
    .portfolio-cta-panel,
    .portfolio-modal-sidebar,
    .portfolio-modal-stage {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio-modal-dialog {
        width: calc(100% - 20px);
        margin: 16px auto;
        max-height: calc(100vh - 32px);
    }

    .portfolio-floating-note {
        position: relative;
        max-width: none;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin-top: 18px;
        animation: none;
    }

    .portfolio-panel-body {
        padding: 22px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-floating-note,
    .portfolio-model-card,
    .portfolio-card,
    [data-reveal] {
        animation: none;
        transition: none;
    }
}
