/* ==========================================================================
   Portfolio app — Windows 11 / Fluent content surface
   ========================================================================== */

.portfolio-app {
    --pf-brand: linear-gradient(135deg, #36faff 0%, #3aa8ff 52%, #8c55ff 100%);
    --pf-brand-soft: rgba(54, 168, 255, 0.13);
    --pf-brand-line: rgba(54, 168, 255, 0.34);

    container-type: inline-size;
    container-name: pf;

    display: flex;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
        var(--window-bg);
}

[data-theme="dark"] .portfolio-app,
body.theme-dark .portfolio-app {
    --pf-brand-soft: rgba(54, 168, 255, 0.19);
    --pf-brand-line: rgba(86, 198, 255, 0.3);
}

/* ---------- Sidebar ---------- */

.pf-sidebar {
    flex: 0 0 226px;
    width: 226px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 10px 12px;
    border-right: 1px solid var(--stroke);
    background: color-mix(in srgb, var(--surface) 62%, transparent);
    backdrop-filter: blur(22px) saturate(1.12);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.pf-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 8px 12px;
}

.pf-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--pf-brand);
    color: #062a3d;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.06em;
    box-shadow: 0 8px 20px -10px rgba(54, 168, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.pf-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.pf-brand-text strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pf-brand-text small {
    margin-top: 2px;
    color: var(--text-3);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.pf-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
}

.pf-nav-btn {
    position: relative;
    height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 12.5px;
    text-align: left;
}

.pf-nav-btn .icon {
    width: 18px;
    height: 18px;
    color: var(--text-2);
}

.pf-nav-btn:hover {
    background: var(--hover);
}

.pf-nav-btn.active {
    background: var(--card);
    border-color: var(--stroke);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pf-nav-btn.active .icon {
    color: var(--accent);
}

.pf-nav-btn.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    transform: translateY(-50%);
}

.pf-nav-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-side-spacer {
    flex: 1;
}

.pf-side-card {
    margin: 4px 2px 0;
    padding: 12px;
    border: 1px solid var(--stroke);
    border-radius: 9px;
    background: linear-gradient(150deg, var(--pf-brand-soft), transparent 75%), var(--card);
}

.pf-side-card-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
}

.pf-side-card-top .pf-dot {
    width: 7px;
    height: 7px;
}

.pf-side-card p {
    margin: 0;
    color: var(--text-2);
    font-size: 10.5px;
    line-height: 1.45;
}

.pf-side-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 600;
}

.pf-side-card a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pf-side-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 2px;
    border-top: 1px solid var(--stroke);
    color: var(--text-3);
    font-size: 10px;
}

.pf-side-foot .pf-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pf-brand);
    color: #062a3d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pf-side-foot strong {
    display: block;
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 600;
}

.pf-side-foot small {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
}

/* ---------- Main surface ---------- */

.pf-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pf-topbar {
    flex: 0 0 auto;
    height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(16px, 3vw, 28px);
    border-bottom: 1px solid var(--stroke);
    background: color-mix(in srgb, var(--surface) 35%, transparent);
}

.pf-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-2);
    font-size: 11.5px;
}

.pf-crumbs .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.pf-crumbs strong {
    color: var(--text);
    font-weight: 600;
}

.pf-topbar-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 10.5px;
    white-space: nowrap;
}

.pf-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #38c26e;
    box-shadow: 0 0 0 3px rgba(56, 194, 110, 0.13);
}

.pf-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 22px clamp(16px, 3.2vw, 36px) 44px;
    scrollbar-color: color-mix(in srgb, var(--text-3) 45%, transparent) transparent;
}

.pf-page {
    width: min(100%, 940px);
    margin: 0 auto;
    animation: pfPageIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes pfPageIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
}

/* ---------- Shared elements ---------- */

.pf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pf-eyebrow .icon {
    width: 14px;
    height: 14px;
}

.pf-page-head {
    margin-bottom: 20px;
}

.pf-page-head h1,
.pf-page-head h2 {
    margin: 8px 0 6px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.pf-page-head p {
    max-width: 690px;
    margin: 0;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.6;
}

.pf-card {
    border: 1px solid var(--stroke);
    border-radius: 11px;
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.pf-btn {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--stroke-strong);
    border-radius: 5px;
    background: var(--card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pf-btn:hover {
    background: var(--card-hover);
    border-color: var(--text-3);
}

.pf-btn:active {
    transform: translateY(1px);
}

.pf-btn .icon {
    width: 16px;
    height: 16px;
}

.pf-btn-primary {
    border-color: color-mix(in srgb, var(--accent) 72%, #000);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 22%, transparent);
}

.pf-btn-primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.pf-btn-ghost {
    background: transparent;
}

.pf-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--stroke);
    border-radius: 5px;
    background: color-mix(in srgb, var(--surface-2) 62%, transparent);
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Hero ---------- */

.pf-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: clamp(20px, 3vw, 34px);
    align-items: center;
    padding: clamp(22px, 3.2vw, 36px);
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--pf-brand-soft), transparent 44%),
        linear-gradient(160deg, var(--card), color-mix(in srgb, var(--surface) 55%, transparent));
    box-shadow: var(--shadow-card);
}

.pf-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pf-brand);
    opacity: 0.7;
}

.pf-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -120px;
    top: -150px;
    border-radius: 50%;
    background: var(--pf-brand);
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}

.pf-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pf-hero h1 {
    margin: 8px 0 5px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(28px, 4.6vw, 44px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.01;
}

.pf-hero-role {
    margin: 0 0 12px;
    font-size: clamp(15px, 2.2vw, 19px);
    font-weight: 650;
    letter-spacing: -0.02em;
    background: var(--pf-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pf-hero-lead {
    max-width: 560px;
    margin: 0;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.65;
}

.pf-value-props {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 600;
}

.pf-value-props li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pf-value-props li::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.pf-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 17px;
}

.pf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pf-photo-wrap {
    position: relative;
    z-index: 1;
    align-self: stretch;
    min-height: 230px;
    max-height: 330px;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--stroke-strong);
    background: var(--surface);
    box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.55);
}

.pf-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(3, 14, 24, 0.38));
    pointer-events: none;
}

.pf-photo-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.pf-photo-wrap img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.pf-photo-badge {
    position: absolute;
    z-index: 2;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(12, 20, 28, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pf-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.pf-stat {
    padding: 15px 16px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: var(--card);
}

.pf-stat strong {
    display: block;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(22px, 3.2vw, 31px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.035em;
}

.pf-stat span {
    display: block;
    margin-top: 6px;
    color: var(--text-2);
    font-size: 10.5px;
    line-height: 1.35;
}

/* ---------- About / overview ---------- */

.pf-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 12px;
    margin-top: 18px;
}

.pf-section-card {
    padding: 20px;
}

.pf-section-card h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.pf-section-card p {
    margin: 0 0 9px;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.7;
}

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

.pf-guarantees {
    display: grid;
    gap: 8px;
}

.pf-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
}

.pf-guarantee:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pf-guarantee-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--pf-brand-soft);
    color: var(--accent);
}

.pf-guarantee-icon .icon {
    width: 16px;
    height: 16px;
}

.pf-guarantee strong {
    display: block;
    color: var(--text);
    font-size: 11.5px;
    font-weight: 650;
}

.pf-guarantee small {
    display: block;
    margin-top: 2px;
    color: var(--text-2);
    font-size: 10.5px;
    line-height: 1.45;
}

/* ---------- Services ---------- */

.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.pf-service {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 19px;
    border: 1px solid var(--stroke);
    border-radius: 11px;
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.pf-service:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--stroke));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.4);
}

.pf-service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pf-service h2,
.pf-service h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pf-price {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--pf-brand-line);
    border-radius: 999px;
    background: var(--pf-brand-soft);
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.pf-service p {
    margin: 0;
    color: var(--text-2);
    font-size: 11.5px;
    line-height: 1.55;
}

.pf-service ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-service li {
    position: relative;
    padding-left: 14px;
    color: var(--text-2);
    font-size: 11px;
    line-height: 1.4;
}

.pf-service li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.pf-service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.pf-service-meta span {
    color: var(--text-3);
    font-size: 10px;
}

.pf-service-meta .pf-btn {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10.5px;
}

/* ---------- Projects ---------- */

.pf-projects {
    grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
}

.pf-project {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 11px;
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: border-color 0.18s, transform 0.18s;
}

.pf-project:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--stroke));
    transform: translateY(-2px);
}

.pf-project::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    width: 42px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--pf-brand);
}

.pf-project h2,
.pf-project h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.pf-project p {
    margin: 0;
    color: var(--text-2);
    font-size: 11px;
    line-height: 1.55;
}

.pf-results {
    display: flex;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.pf-result strong {
    display: block;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
}

.pf-result span {
    display: block;
    margin-top: 3px;
    color: var(--text-3);
    font-size: 9.5px;
    line-height: 1.35;
}

.pf-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.pf-project-tags .pf-tag {
    min-height: 20px;
    padding: 0 6px;
    font-size: 9.5px;
}

.pf-blog-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

/* ---------- Process ---------- */

.pf-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 9px;
}

.pf-step {
    position: relative;
    padding: 18px;
    border: 1px solid var(--stroke);
    border-radius: 11px;
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.pf-step-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border: 1px solid var(--pf-brand-line);
    border-radius: 9px;
    background: var(--pf-brand-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 650;
}

.pf-step h2,
.pf-step h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.pf-step p {
    margin: 0 0 12px;
    color: var(--text-2);
    font-size: 10.5px;
    line-height: 1.55;
}

.pf-step-time {
    display: inline-flex;
    padding: 3px 7px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 9.5px;
    font-weight: 600;
}

/* ---------- FAQ ---------- */

.pf-faq-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pf-faq {
    border: 1px solid var(--stroke);
    border-radius: 9px;
    background: var(--card);
    overflow: hidden;
}

.pf-faq[open] {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--stroke));
}

.pf-faq summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    color: var(--text);
    font-size: 11.5px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.pf-faq summary::-webkit-details-marker {
    display: none;
}

.pf-faq summary:hover {
    background: var(--hover);
}

.pf-faq summary .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--accent);
    transition: transform 0.18s ease;
}

.pf-faq[open] summary .icon {
    transform: rotate(180deg);
}

.pf-faq p {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--text-2);
    font-size: 11px;
    line-height: 1.65;
}

/* ---------- Contact ---------- */

.pf-contact {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
    text-align: center;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background:
        linear-gradient(145deg, var(--pf-brand-soft), transparent 58%),
        var(--card);
    box-shadow: var(--shadow-card);
}

.pf-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--pf-brand);
    opacity: 0.75;
}

.pf-contact h1,
.pf-contact h2 {
    margin: 9px 0 9px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.pf-contact > p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.65;
}

.pf-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    max-width: 540px;
    margin: 20px auto 22px;
    padding: 4px;
    border: 1px solid var(--stroke);
    border-radius: 9px;
    background: var(--surface-2);
}

.pf-contact-item {
    flex: 1 1 150px;
    padding: 12px 16px;
    text-align: center;
}

.pf-contact-item + .pf-contact-item {
    border-left: 1px solid var(--stroke);
}

.pf-contact-item small {
    display: block;
    margin-bottom: 3px;
    color: var(--text-3);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pf-contact-item strong,
.pf-contact-item a {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.pf-contact-item a:hover {
    color: var(--accent);
}

.pf-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pf-contact-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--stroke);
    color: var(--text-3);
    font-size: 10px;
}

.pf-contact-footer a {
    color: var(--text-2);
    text-decoration: none;
}

.pf-contact-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Compact window sizes ---------- */

@container pf (max-width: 840px) {
    .pf-sidebar {
        flex-basis: 68px;
        width: 68px;
        align-items: center;
        padding-left: 6px;
        padding-right: 6px;
    }

    .pf-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .pf-brand-text,
    .pf-nav-btn span,
    .pf-side-card,
    .pf-side-foot div {
        display: none;
    }

    .pf-nav {
        width: 100%;
    }

    .pf-nav-btn {
        justify-content: center;
        padding: 0;
    }

    .pf-nav-btn.active::before {
        left: -6px;
    }

    .pf-side-foot {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .pf-side-spacer {
        display: block;
    }
}

@container pf (max-width: 660px) {
    .pf-hero {
        grid-template-columns: 1fr;
    }

    .pf-photo-wrap {
        max-height: 280px;
        min-height: 210px;
        order: -1;
    }

    .pf-photo-wrap img {
        min-height: 210px;
        object-position: center 22%;
    }

    .pf-overview-grid {
        grid-template-columns: 1fr;
    }

    .pf-stats {
        grid-template-columns: 1fr;
    }

    .pf-stat {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .pf-stat span {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-page {
        animation: none;
    }

    .pf-service,
    .pf-project,
    .pf-btn {
        transition: none;
    }
}

/* ---------- Public SEO page ---------- */

body.public-body {
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #050a16;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.public-body a {
    color: inherit;
    text-decoration: none;
}

body.public-body .portfolio-app {
    height: 100vh;
}

body.public-body .pf-scroll {
    scroll-behavior: smooth;
}

body.public-body .pf-topbar {
    justify-content: space-between;
}

body.public-body .pf-topbar .pf-btn {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
}

body.public-body .pf-public-section {
    margin-top: 30px;
}

body.public-body section[id] {
    scroll-margin-top: 12px;
}

body.public-body .pf-nav-btn {
    text-decoration: none;
}

body.public-body .pf-page {
    padding-bottom: 12px;
}

body.public-body .pf-service h3,
body.public-body .pf-project h3,
body.public-body .pf-step h3 {
    margin: 0;
}

body.public-body .pf-contact {
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    body.public-body .pf-scroll {
        scroll-behavior: auto;
    }
}
