.nyp, .nyp-preview {
    --nyp-accent: #8e2e48;
    --nyp-paper: #f8f6f3;
    --nyp-ink: #201e1d;
    --nyp-muted: #595552;
    --nyp-line: #e3dcd5;
    --nyp-display: "Cormorant Garamond", Georgia, serif;
    --nyp-sans: Inter, Arial, sans-serif;
    color: var(--nyp-ink);
    font: 400 15px/1.55 var(--nyp-sans);
    font-variant-numeric: lining-nums tabular-nums;
}
.nyp *, .nyp-preview * { box-sizing: border-box; }
.nyp a { color: var(--nyp-accent); text-decoration: none; }
.nyp a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nyp :focus-visible, .nyp-skip:focus-visible { outline: 2px solid #8e2e48; outline-offset: 4px; }
.nyp h1, .nyp h2, .nyp h3 { margin: 0; color: inherit; font: 700 32px/1.03 var(--nyp-display); text-transform: none; }
.nyp h1, .nyp h2, .nyp h3 { font-variant-numeric: lining-nums tabular-nums; }
.nyp h1 { font-size: clamp(43px, 5vw, 70px); }
.nyp h2 { font-size: clamp(30px, 3vw, 43px); }
.nyp h3 { font-size: 25px; }
.nyp p { margin: 0; }
.nyp-wrap { width: min(1280px, calc(100% - clamp(32px, 11vw, 160px))); margin-inline: auto; }
.nyp-intro { background: var(--nyp-paper); padding: 28px 0 46px; }
.nyp-intro:has(> .nyp-section) { padding: 0; }
.nyp-breadcrumb, .nyp-switch, .nyp-filters, .nyp-service-links, .nyp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.nyp-breadcrumb { font-size: 12px; color: var(--nyp-muted); margin: 0 0 15px; }
.nyp-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.nyp-heading, .nyp-section-head { display: flex; gap: 20px; justify-content: space-between; align-items: end; }
.nyp-heading { margin: 19px 0 26px; }
.nyp-heading p { max-width: 31ch; color: var(--nyp-muted); }
.nyp-tiles, .nyp-cards, .nyp-service-tiles { display: grid; gap: clamp(14px, 1.7vw, 25px); }
.nyp-tiles, .nyp-service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nyp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nyp-segments .nyp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nyp-tile { display: grid; align-items: end; overflow: hidden; position: relative; min-height: clamp(300px, 34vw, 475px); border-radius: 16px; background: #3d292b; isolation: isolate; }
.nyp-tile::after { content: ""; position: absolute; inset: 30% 0 0; z-index: -1; background: linear-gradient(transparent, #1e1315ef); }
.nyp-tile img, .nyp-card img, .nyp-stage img, .nyp-thumbs img, .nyp-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nyp-tile img { position: absolute; inset: 0; z-index: -2; }
.nyp-tile div { padding: clamp(20px, 3vw, 34px); color: #fff; }
.nyp-tile h2 { margin: 4px 0 8px; }
.nyp-tile b { display: inline-block; margin-top: 14px; }
.nyp-tile span, .nyp .nyp-kicker { color: var(--nyp-accent); font-size: 11px; letter-spacing: .13em; font-weight: 700; text-transform: uppercase; }
.nyp-tile span { color: #fff; }
.nyp-section { padding-block: clamp(36px, 5.5vw, 78px); }
.nyp-section-head { margin-bottom: clamp(16px, 2.6vw, 38px); }
.nyp-section-head > a { flex: none; font-weight: 600; font-size: 13px; }
.nyp-section-head h2 small { font: 500 15px var(--nyp-sans); color: var(--nyp-muted); }
.nyp .nyp-kicker { margin-bottom: 7px; }
.nyp-card > a { display: block; height: 100%; color: var(--nyp-ink); transition: transform .18s ease; }
.nyp-card > a:hover { transform: translateY(-2px); text-decoration: none; }
.nyp-card > a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.nyp-card h3 { margin: 5px 0 9px; }
.nyp-card p:not(.nyp-kicker) { color: var(--nyp-muted); font-size: 13px; }
.nyp-card__photo { aspect-ratio: 4 / 3; overflow: hidden; position: relative; border-radius: 11px; background: #e4dcd4; margin-bottom: 10px; }
.nyp-card__photo img, .nyp-tile img { transition: transform .24s ease; }
.nyp-card a:hover img, .nyp-tile:hover img { transform: scale(1.025); }
.nyp-card__photo span, .nyp-counter { position: absolute; bottom: 10px; right: 10px; color: #fff; background: #201817df; border-radius: 20px; padding: 4px 9px; font: 600 12px var(--nyp-sans); }
.nyp-switch a, .nyp-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 13px; border: 1px solid #d2c9c4; border-radius: 999px; color: var(--nyp-ink); background: #fff; font-size: 13px; font-weight: 600; }
.nyp-switch a[aria-current], .nyp-filters a[aria-current] { border-color: var(--nyp-accent); }
.nyp-filters a[aria-current] { color: #fff; background: var(--nyp-accent); }
.nyp-segments > section + section { border-top: 1px solid var(--nyp-line); padding-top: clamp(26px, 4vw, 52px); margin-top: clamp(30px, 4vw, 55px); }
.nyp-service-links { font-size: 12px; margin-top: 7px; }
.nyp-case-hero, .nyp-about { display: grid; grid-template-columns: 1fr 1.03fr; align-items: start; gap: clamp(22px, 5vw, 72px); }
.nyp-case-hero { grid-template-areas: "title viewer" "copy viewer"; grid-template-rows: auto 1fr; row-gap: 15px; }
.nyp-case-title { grid-area: title; }
.nyp-case-title h1 { font-size: clamp(37px, 4.2vw, 64px); }
.nyp-case-copy { grid-area: copy; }
.nyp-viewer { grid-area: viewer; min-width: 0; }
.nyp-teaser { color: var(--nyp-muted); max-width: 55ch; }
.nyp .nyp-did-title { font-size: 23px; margin-top: 17px; }
.nyp-did { list-style: none; padding: 0; margin: 10px 0; }
.nyp-did li { padding-left: 20px; position: relative; margin-bottom: 5px; }
.nyp-did li::before { content: "✓"; position: absolute; left: 0; color: var(--nyp-accent); }
.nyp-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0; }
.nyp-facts dt { color: var(--nyp-muted); font-size: 11px; }
.nyp-facts dd { margin: 1px 0 0; font-size: 13px; font-weight: 600; }
.nyp .nyp-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid var(--nyp-accent); border-radius: 5px; background: var(--nyp-accent); color: #fff; font-size: 13px; font-weight: 600; }
.nyp .nyp-button--line { background: #fff; color: var(--nyp-accent); }
.nyp-stage { aspect-ratio: 5 / 4; position: relative; border-radius: 13px; overflow: hidden; background: #e4dcd4; touch-action: pan-y; }
.nyp-stage a { display: block; height: 100%; }
.nyp-peek { display: none; }
.nyp-stage button, .nyp-dialog button { border: none; border-radius: 50%; background: #fff; color: #222; width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; cursor: pointer; }
.nyp-stage button { position: absolute; top: calc(50% - 22px); }
.nyp-stage [data-nyp-prev] { left: 10px; }
.nyp-stage [data-nyp-next] { right: 10px; }
.nyp .nyp-caption { margin: 6px 0; min-height: 1.45em; color: var(--nyp-muted); font-size: 12px; }
.nyp-thumbs, .nyp-gallery-grid { display: grid; gap: 7px; }
.nyp-thumbs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nyp-thumbs a, .nyp-gallery-grid a { display: block; min-height: 44px; aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; }
.nyp-thumbs a[aria-current] { outline: 2px solid var(--nyp-accent); outline-offset: 1px; }
.nyp-thumbs .nyp-more { display: grid; place-items: center; background: #352b2a; color: #fff; font-weight: 700; }
.nyp-gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nyp-gallery-grid a:hover { opacity: .9; }
.nyp-dialog { width: min(95vw, 1050px); max-height: 95vh; border: 0; border-radius: 12px; padding: 54px 48px 12px; background: #211b1c; color: #fff; }
.nyp-dialog::backdrop { background: #171214de; }
.nyp-dialog img { display: block; margin: auto; width: 100%; height: min(68vh, 700px); object-fit: contain; }
.nyp-dialog button { position: absolute; top: 50%; }
.nyp-dialog [data-nyp-prev] { left: 4px; }
.nyp-dialog [data-nyp-next] { right: 4px; }
.nyp-dialog .nyp-dialog-close { top: 6px; right: 8px; }
.nyp-dialog p { text-align: center; margin-top: 8px; }
.nyp-case-services h2, .nyp-about h2 { margin-bottom: 18px; }
.nyp-service-tiles a { border: 1px solid var(--nyp-line); border-radius: 7px; min-height: 53px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; color: var(--nyp-ink); }
.nyp-service-tiles span { color: var(--nyp-accent); }
.nyp-prose { max-width: 88ch; }
.nyp-prose p, .nyp-prose ul { margin: 0 0 10px; }
.nyp-prose h2, .nyp-prose h3 { margin: 15px 0 10px; }
.nyp-contact { background: var(--nyp-accent); color: #fff; border-radius: 13px; padding: clamp(23px, 4vw, 48px); display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.nyp-contact .nyp-button { background: #fff; color: var(--nyp-accent); }
.nyp-contact .nyp-button--tel { color: #fff; background: transparent; border-color: #ffffff73; }
.nyp-contact p { margin-top: 6px; }
.nyp-skip { position: fixed; top: 10px; left: 10px; transform: translateY(-150%); z-index: 999; background: #fff; padding: 10px; }
.nyp-skip:focus { transform: none; }
@media (max-width: 800px) {
    .nyp-wrap { width: calc(100% - 44px); }
    .nyp-case-hero, .nyp-about { grid-template-columns: 1fr; }
    .nyp-case-hero { grid-template-areas: "title" "viewer" "copy"; grid-template-rows: auto; }
    .nyp-case-title h1 { max-width: 18ch; }
}
@media (max-width: 580px) {
    .nyp-wrap { width: calc(100% - 32px); }
    .nyp-intro { padding: 15px 0 30px; }
    .nyp-heading, .nyp-section-head { align-items: start; flex-direction: column; gap: 8px; }
    .nyp-tiles, .nyp-cards, .nyp-service-tiles { grid-template-columns: 1fr; }
    .nyp-tile { min-height: 265px; }
    .nyp-cards { gap: 25px; }
    .nyp-segments .nyp-cards { grid-template-columns: 1fr; }
    .nyp-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 5px 4px 12px; scroll-snap-type: x proximity; }
    .nyp-filters a { flex: none; white-space: nowrap; scroll-snap-align: start; }
    .nyp-featured .nyp-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
        gap: 14px; overflow-x: auto; padding: 5px 5px 14px; scroll-snap-type: x proximity; }
    .nyp-featured { display: flex; flex-direction: column; gap: 12px; }
    .nyp-featured .nyp-section-head { display: contents; }
    .nyp-featured .nyp-section-head > a { order: 3; align-self: start; }
    .nyp-featured .nyp-card { scroll-snap-align: start; }
    .nyp-stage[data-nyp-multiple] > a { width: 89%; border-radius: 11px; overflow: hidden; }
    .nyp-peek { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 9%; border-radius: 8px; overflow: hidden; }
    .nyp-stage[data-nyp-multiple] [data-nyp-next], .nyp-stage[data-nyp-multiple] .nyp-counter { right: calc(11% + 8px); }
    .nyp-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nyp-thumbs { grid-template-columns: none; grid-auto-columns: minmax(46px, 1fr); grid-auto-flow: column; overflow-x: auto; padding: 4px; }
    .nyp-contact { align-items: stretch; flex-direction: column; }
    .nyp-contact .nyp-actions, .nyp-contact .nyp-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nyp * { transition: none !important; } }
