.pf-detail {
    --pf-navy: #344568;
    --pf-pink: #ef83b1;
    color: var(--pf-navy);
    font-family: 'Nunito', sans-serif;
    overflow-wrap: anywhere;
}
.work-section { --work-ink: #344568; --work-line: #34456825; padding: 88px 24px 64px; color: var(--work-ink); background: #faf5eb; scroll-margin-top: 72px; }
.work-container { max-width: 1200px; margin: 0 auto; }
.work-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.work-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.work-kicker > span { width: 8px; height: 8px; background: #dc6596; border-radius: 50%; }
.work-heading :is(h1, h2) { margin: 20px 0 0; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -.035em; }
.work-heading :is(h1, h2) > span { color: #bb4b7b; }
.work-heading-aside { max-width: 330px; padding-bottom: 3px; }
.work-heading-aside p { margin: 0 0 20px; font-size: 14px; line-height: 1.8; color: #66718a; }
.work-cta { display: inline-flex; align-items: center; gap: 28px; padding: 12px 20px; border: 1.5px solid var(--work-ink); border-radius: 50px; background: #f7bbd2; font-size: 13px; font-weight: 800; box-shadow: 3px 3px 0 var(--work-ink); }
.work-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; padding: 20px 0; border-top: 1px solid var(--work-line); border-bottom: 1px solid var(--work-line); }
.work-total { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.work-total > span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 50px; background: #f6dbe5; font-size: 12px; }
.work-search { display: flex; align-items: center; gap: 10px; }
.work-search input { max-width: 280px; width: 100%; background: transparent; padding: 6px 0; border: 0; font: inherit; font-size: 13px; color: inherit; box-shadow: none; }
.work-search input:focus { outline: 0; box-shadow: none; }
.work-search:focus-within { outline: 2px solid #bb4b7b; outline-offset: 6px; border-radius: 4px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.work-card { min-width: 0; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--work-line); border-radius: 20px; background: #fffdf9; color: inherit; text-align: left; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #34456810; }
.work-card:focus-visible, .pf-detail button:focus-visible, .work-cta:focus-visible, .portfolio-lightbox button:focus-visible { outline: 3px solid #bb4b7b; outline-offset: 4px; }
.work-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.5; background: #eee9e3; overflow: hidden; padding: 0; }
.work-card:nth-child(4n + 2) .work-media { background: #e4ebe4; }
.work-card:nth-child(4n + 3) .work-media { background: #f3e1e7; }
.work-card:nth-child(4n + 4) .work-media { background: #e2e7f1; }
.work-media > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .4s; }
.work-card:hover .work-media > img { transform: scale(1.035); }
.work-index { position: absolute; top: 17px; left: 18px; font-size: 11px; font-weight: 800; z-index: 1; }
.work-open { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fffdf9dd; font-size: 20px; }
.work-image-count { position: absolute; bottom: 14px; right: 14px; padding: 5px 11px; border-radius: 20px; background: #fffdf9ee; font-size: 10px; font-weight: 800; }
.work-card-body { display: flex; flex-direction: column; flex: 1; padding: 25px 28px 24px; }
.work-card-meta { display: flex; justify-content: space-between; gap: 12px; color: #788198; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.work-card h3 { margin: 12px 0 10px; font-size: 26px; line-height: 1.25; }
.work-card-body > p { margin: 0 0 22px; font-size: 13px; line-height: 1.8; color: #6b7489; }
.work-card-bottom { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags > span { padding: 4px 9px; border: 1px solid var(--work-line); border-radius: 20px; font-size: 10px; }
.work-detail-link { display: inline-flex; gap: 18px; font-size: 12px; font-weight: 800; }
.work-mini-gallery { display: flex; gap: 8px; padding-top: 20px; }
.work-mini-gallery img { width: 68px; height: 48px; object-fit: contain; background: #f0ede8; border-radius: 6px; border: 1px solid var(--work-line); }
.work-placeholder { font-family: 'Fredoka', sans-serif; font-size: 35px; font-weight: 600; }
.work-placeholder > span { color: #bb4b7b; }
.work-placeholder small { display: block; text-align: center; font: 11px 'Nunito', sans-serif; margin-top: 10px; }
.work-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 36px; border-top: 1px solid var(--work-line); padding-top: 24px; font-size: 12px; }
.work-end > span { color: #788198; }
.work-end > a { font-weight: 800; }
.work-end-teaser { align-items: center; }
.work-back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 12px; font-weight: 800; }
.work-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: #6b7489; }
.work-section [hidden], .pf-detail [hidden], .portfolio-lightbox [hidden] { display: none !important; }
.work-preview-nav { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 24px; background: white; border-bottom: 1px solid #34456820; flex-wrap: wrap; }
.work-preview-nav > span { font-size: 9px; letter-spacing: .14em; font-weight: 800; margin-right: 22px; }
.work-preview-nav > a { border-radius: 30px; padding: 9px 17px; font-size: 12px; font-weight: 800; }
.work-preview-nav > a[aria-current] { background: #344568; color: #fffaf1; }
.work-editorial { background: #fffdf8; }
.work-editorial .work-heading :is(h1, h2) { font-family: Georgia, serif; font-weight: 400; font-size: clamp(42px, 5.5vw, 76px); letter-spacing: -.05em; }
.work-editorial .work-heading :is(h1, h2) > span { font-style: italic; }
.work-editorial .work-grid { grid-template-columns: 1fr; gap: 0; }
.work-editorial .work-card { display: grid; grid-template-columns: 1.15fr 1fr; border: 0; border-bottom: 1px solid var(--work-line); border-radius: 0; padding: 32px 0; gap: 40px; background: transparent; }
.work-editorial .work-card:nth-child(even) .work-media { order: 2; }
.work-editorial .work-card:hover { transform: none; box-shadow: none; }
.work-editorial .work-media { aspect-ratio: 1.3; border-radius: 6px; }
.work-editorial .work-card-body { justify-content: center; padding: 28px 16px; }
.work-editorial .work-card h3 { font-family: Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.2; margin: 22px 0 16px; }
.work-editorial .work-card-bottom { margin-top: 8px; }
.work-gallery,
.portfolio-surface {
    --portfolio-ink: #f5eee5;
    --portfolio-muted: #aeb7c9;
    --portfolio-accent: #f7bbd2;
    background-color: #232d42;
}
.portfolio-surface-heading { color: var(--portfolio-ink); }
.portfolio-surface-muted { color: var(--portfolio-muted); }
.portfolio-surface-accent { color: var(--portfolio-accent); }
.portfolio-surface-decoration { opacity: .25; }

.portfolio-surface { --portfolio-shadow: #d888ad; }
.portfolio-surface .chunky-card:not(dialog *) {
    box-shadow: 6px 6px 0 0 var(--portfolio-shadow);
}
.portfolio-surface .chunky-card:not(dialog *):hover {
    box-shadow: 10px 10px 0 0 var(--portfolio-shadow);
}
.portfolio-surface .btn-chunky:not(.chunky-card *) {
    box-shadow: 4px 4px 0 0 var(--portfolio-shadow);
}
.portfolio-surface .portfolio-shadow-badge {
    box-shadow: 3px 3px 0 0 var(--portfolio-shadow);
}
.portfolio-surface .btn-chunky:not(.chunky-card *):hover {
    box-shadow: 6px 6px 0 0 var(--portfolio-shadow);
}
.portfolio-surface .btn-chunky:not(.chunky-card *):active {
    box-shadow: 2px 2px 0 0 var(--portfolio-shadow);
}

.work-gallery { --work-ink: var(--portfolio-ink); --work-line: #f5eee526; }
.work-gallery .work-heading :is(h1, h2) > span { color: var(--portfolio-accent); }
.work-gallery .work-heading-aside p, .work-gallery .work-end > span { color: var(--portfolio-muted); }
.work-gallery .work-cta { color: #344568; border-color: #f7bbd2; box-shadow: none; }
.work-gallery .work-total > span { color: #344568; }
.work-gallery .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.work-gallery .work-card { border: 0; border-radius: 10px; background: #2c374e; }
.work-gallery .work-media { aspect-ratio: 1; color: #344568; }
.work-gallery .work-card-body { padding: 20px; }
.work-gallery .work-card-meta { color: #aeb7c9; }
.work-gallery .work-card h3 { font-size: 21px; }
.work-gallery .work-card-body > p { display: none; }
.work-gallery .work-card-bottom { padding-top: 14px; }
.work-gallery .work-search input::placeholder { color: #aeb7c9; }
.work-gallery .work-empty { color: #aeb7c9; }
.pf-gallery { min-width: 0; }
.pf-zoom { width: 100%; display: block; padding: 0; background: transparent; border: 0; position: relative; cursor: zoom-in; }
.pf-zoom-label { position: absolute; bottom: 14px; right: 14px; font-size: 10px; padding: 7px 12px; background: #fffdf1ee; border-radius: 30px; color: #344568; font-weight: 800; }
.pf-thumbnails { display: flex; gap: 9px; overflow-x: auto; padding: 12px 2px 6px; }
.pf-thumbnails button { flex: 0 0 68px; width: 68px; height: 54px; border-radius: 8px; border: 2px solid transparent; background: white; padding: 3px; cursor: pointer; }
.pf-thumbnails button[aria-pressed='true'] { border-color: #bb4b7b; }
.pf-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.pf-gallery-note { font-size: 10px; margin: 10px 0 0; color: #6b7489; letter-spacing: .04em; }
.project-back { display: inline-flex; align-items: center; gap: 12px; color: #344568; font-size: 12px; font-weight: 800; }
.portfolio-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px; background: #172033; color: white; }
.portfolio-lightbox::backdrop { background: #172033f5; }
.portfolio-lightbox > header { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 13px; }
.portfolio-lightbox button { padding: 10px 15px; border: 1px solid #ffffff40; border-radius: 30px; background: #ffffff0d; cursor: pointer; color: white; flex-shrink: 0; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; gap: 20px; height: calc(100% - 110px); margin-top: 14px; }
.lightbox-stage > img { width: 100%; height: 100%; object-fit: contain; min-width: 0; }
.portfolio-lightbox > p { margin: 10px 0 0; text-align: center; font-size: 12px; }
.pf-overview {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px;
    background: #fffaf1;
    border-bottom: 1px solid #34456820;
}
.pf-cover {
    border: 1px solid #34456825;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}
.pf-cover img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: contain;
}
.pf-eyebrow,
.pf-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}
.pf-eyebrow {
    color: #b7497b;
}
.pf-intro h2 {
    margin: 12px 0 18px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}
.pf-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pf-technologies span {
    padding: 5px 11px;
    border: 1px solid #34456830;
    border-radius: 9px;
    background: white;
    font-size: 11px;
    font-weight: 800;
}
.pf-date {
    margin: 18px 0 0;
    font-size: 13px;
    color: #586785;
}
.pf-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 18px;
    background: #f9bfd7;
    border: 2px solid var(--pf-navy);
    border-radius: 30px;
    color: var(--pf-navy);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.pf-link:hover {
    background: #f5a7c8;
}
.pf-story {
    padding: 40px clamp(24px, 7vw, 100px) 50px;
    background: white;
}
.pf-section-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #65718b;
}
.pf-section-label span {
    width: 8px;
    height: 8px;
    background: var(--pf-pink);
    border-radius: 50%;
}
.pf-description {
    font-size: 15px;
    line-height: 1.9;
    color: #53617d;
}
.pf-description > :first-child {
    margin-top: 0;
}
.pf-description p {
    margin: 0 0 18px;
}
.pf-description h2 {
    margin: 36px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f9d9e7;
    color: var(--pf-navy);
    font-family: 'Fredoka', sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
}
.pf-description h3,
.pf-description h4,
.pf-description h5,
.pf-description h6 {
    margin: 24px 0 14px;
    padding: 12px 16px;
    border-left: 4px solid #ef83b1;
    border-radius: 0 10px 10px 0;
    background: #fdf0f5;
    color: var(--pf-navy);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}
.pf-description ul,
.pf-description ol {
    margin: 0 0 22px;
    padding-left: 26px;
}
.pf-description ul {
    list-style: disc;
}
.pf-description ol {
    list-style: decimal;
}
.pf-description li {
    padding-left: 5px;
    margin: 7px 0;
}
.pf-description li::marker {
    color: #b7497b;
    font-weight: 800;
}
.pf-description a {
    color: #9e3c6b;
    text-decoration: underline;
}
.pf-description blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    background: #fff8e3;
    border-left: 4px solid #e7bc4c;
    border-radius: 0 12px 12px 0;
}
.pf-description pre {
    padding: 16px;
    overflow-x: auto;
    background: #f1f3f7;
    border-radius: 12px;
}
.pf-description figure {
    margin: 24px 0;
    overflow-x: auto;
}
.pf-description table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pf-description td,
.pf-description th {
    border: 1px solid #dce0e8;
    padding: 10px 14px;
    text-align: left;
}
.pf-description th {
    background: #fff5df;
}
.pf-description hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #dce0e8;
}
.pf-detail [hidden] {
    display: none !important;
}
html.project-dialog-open {
    overflow: hidden;
}
dialog.dialog-chunky.project-dialog {
    width: calc(100% - 32px);
    max-width: 1080px;
    max-height: 88dvh;
    padding: 0;
    border: 1px solid #34456830;
    border-radius: 24px;
    background: white;
    box-shadow: 0 30px 100px #17203340;
    overscroll-behavior: contain;
}
dialog.project-dialog::backdrop { background: #172033a8; backdrop-filter: blur(5px); }
.project-dialog-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 28px;
    background: #fffaf1;
    border-bottom: 1px solid #34456825;
}
.project-dialog-label {
    font-size: 9px;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #a14d7d;
}
.project-dialog-head h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 19px;
    margin: 3px 0 0;
    color: #344568;
}
.project-dialog-head button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 2px solid #344568;
    border-radius: 50%;
    background: #f9bfd7;
    color: #344568;
    cursor: pointer;
}
.project-dialog-head button:focus-visible {
    outline: 3px solid #b7497b;
    outline-offset: 3px;
}
@media (max-width: 640px) {
    .work-section { padding: 46px 20px 40px; }
    .work-heading { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
    .work-heading :is(h1, h2) { font-size: 42px; }
    .work-heading-aside p br { display: none; }
    .work-heading-aside p { margin-bottom: 16px; }
    .work-toolbar { gap: 12px; }
    .work-search { width: 100%; border-top: 1px solid var(--work-line); padding-top: 12px; }
    .work-search input { max-width: none; }
    .work-grid, .work-gallery .work-grid { grid-template-columns: 1fr; gap: 24px; }
    .work-card-body { padding: 22px; }
    .work-card h3 { font-size: 23px; }
    .work-media { aspect-ratio: 1.25; }
    .work-editorial .work-card { grid-template-columns: 1fr; gap: 0; padding: 0 0 26px; }
    .work-editorial .work-card:nth-child(even) .work-media { order: 0; }
    .work-editorial .work-card-body { padding: 24px 4px 0; }
    .work-editorial .work-card h3 { font-size: 29px; }
    .work-preview-nav { padding: 14px 12px; gap: 3px; }
    .work-preview-nav > span { width: 100%; text-align: center; margin: 0 0 8px; }
    .work-preview-nav > a { padding: 9px 13px; font-size: 11px; }
    .project-dialog-head > .project-dialog-label { display: none; }
    .portfolio-lightbox { padding: 16px; }
    .portfolio-lightbox > header { font-size: 11px; }
    .lightbox-stage { gap: 8px; }
    .lightbox-stage > button { padding: 10px; }
    dialog.dialog-chunky.project-dialog {
        border-radius: 20px;
        width: calc(100% - 24px);
        max-height: 92dvh;
    }
    .project-dialog-head {
        padding: 14px 20px;
    }
    .pf-overview {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
        gap: 22px;
    }
    .pf-cover img {
        max-height: 300px;
    }
    .pf-story {
        padding: 26px 22px 30px;
    }
    .pf-description {
        font-size: 14px;
        line-height: 1.85;
    }
    .pf-description h2 {
        font-size: 22px;
    }
    .pf-description h3 {
        font-size: 16px;
    }
}
