/* Website Hero | Selected Work -- scoped and WordPress-safe */
.wh-portfolio, .wh-portfolio * {box-sizing:border-box}
.wh-portfolio {--whp-red:#ef3947;--whp-red2:#ff5e59;--whp-bg:#101011;--whp-text:#f6f2f1;--whp-muted:#aea8a7;position:relative;isolation:isolate;background:var(--whp-bg);color:var(--whp-text);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;overflow:hidden;padding:clamp(72px,8vw,138px) clamp(18px,4vw,70px) clamp(90px,9vw,146px)}
.wh-portfolio::before{content:"";position:absolute;inset:-330px -240px auto auto;width:820px;height:820px;border-radius:50%;background:radial-gradient(circle,rgba(176,25,40,.23),rgba(176,25,40,.065) 40%,transparent 72%);pointer-events:none;z-index:-1}
.wh-portfolio::after{content:"";position:absolute;left:-250px;bottom:-450px;width:920px;height:850px;background:radial-gradient(circle,rgba(148,20,33,.14),transparent 68%);pointer-events:none;z-index:-1}
.wh-portfolio__wrap{width:100%;max-width:var(--wh-container-max);margin:0 auto}
.wh-portfolio__eyebrow{display:inline-flex;gap:11px;align-items:center;letter-spacing:.18em;font-size:11px;font-weight:850;color:#e8e1dd;text-transform:uppercase;margin-bottom:26px}
.wh-portfolio__eyebrow::before{content:"";display:block;width:8px;height:8px;background:var(--whp-red);border-radius:50%;box-shadow:0 0 0 5px #491d22}
.wh-portfolio__head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,6vw,118px);align-items:end;margin-bottom:42px}
.home-premium .wh-portfolio__title{font-size:clamp(58px,6.6vw,112px);font-weight:880;line-height:.98;letter-spacing:-.082em;text-transform:uppercase;margin:0;max-width:990px}
.wh-portfolio__title span{color:var(--whp-red);display:block}
.wh-portfolio__lead{max-width:450px;margin:0 0 6px auto;color:#bcb5b3;font-size:clamp(16px,1.3vw,20px);line-height:1.65}






.wh-portfolio__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:stretch}
.wh-project{grid-column:span 4;min-width:0;background:#1a191a;border:1px solid #353031;border-radius:21px;overflow:hidden;transition:transform .38s cubic-bezier(.2,.75,.2,1),border-color .3s,box-shadow .38s;display:flex;flex-direction:column}
.wh-project[data-size="large"]{grid-column:span 7}
.wh-project[data-size="medium"]{grid-column:span 5}
.wh-project:hover{transform:translateY(-5px);border-color:#9c4349;box-shadow:0 28px 70px rgba(0,0,0,.28)}
.wh-project[hidden]{display:none !important}
.wh-project__open{cursor:pointer;display:block;position:relative;border:0;margin:0;padding:0;background:#221c1c;width:100%;text-align:left;color:inherit;overflow:hidden;aspect-ratio:1.78}
.wh-project[data-size="large"] .wh-project__open,.wh-project[data-size="medium"] .wh-project__open{aspect-ratio:1.62}
.wh-project__open::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.15));pointer-events:none}
.wh-project__image{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .7s cubic-bezier(.2,.7,.2,1);filter:saturate(.87)}
.wh-project:hover .wh-project__image{transform:scale(1.045);filter:saturate(1)}
.wh-project__browser{position:absolute;left:16px;top:14px;background:rgba(19,16,16,.75);border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:50px;padding:9px 12px;display:flex;align-items:center;gap:6px;z-index:1}
.wh-project__browser span{height:6px;width:6px;border-radius:50%;background:#ff6865}.wh-project__browser span:nth-child(2){background:#d7b0a6}.wh-project__browser span:nth-child(3){background:#8f8d8c}
.wh-project__image-label{position:absolute;right:15px;top:15px;z-index:1;border:1px solid rgba(255,255,255,.25);background:rgba(20,16,17,.72);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#f2eeee;border-radius:100px;font-size:10px;font-weight:750;letter-spacing:.1em;padding:10px 13px}
.wh-project__meta{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:23px clamp(18px,2.3vw,33px) 28px;min-height:142px;flex:1}
.wh-project__eyebrow{margin:0 0 10px;color:var(--whp-red2);font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}
.home-premium .wh-project__name{margin:0;color:#fff;font-size:clamp(24px,2.2vw,34px);line-height:1.05;font-weight:820;letter-spacing:-.05em}
.wh-project__summary{margin:9px 0 0;font-size:13px;line-height:1.5;color:#aca5a5;max-width:460px}
.wh-project__arrow{width:48px;height:48px;border:1px solid #6e3c40;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:#2b2022;color:#fff;transition:background .25s,transform .25s}
.wh-project__arrow svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wh-project:hover .wh-project__arrow{transform:rotate(45deg);background:var(--whp-red);border-color:var(--whp-red)}
.wh-portfolio__footer{margin-top:39px;border-top:1px solid #343030;padding-top:32px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.wh-portfolio__footer p{margin:0;color:#e1d8d6;font-size:clamp(18px,1.5vw,24px);font-weight:750;letter-spacing:-.035em}
.wh-portfolio__footer p strong{color:var(--whp-red2)}
.wh-portfolio__cta{display:inline-flex;align-items:center;gap:26px;white-space:nowrap;color:#fff;background:#d92737;border-radius:99px;text-decoration:none;font-size:13px;font-weight:800;padding:8px 8px 8px 23px;transition:background .2s,transform .2s}
.wh-portfolio__cta:hover{background:#f13e4d;transform:translateY(-2px)}
.wh-portfolio__cta svg{width:40px;height:40px;border-radius:50%;padding:11px;background:rgba(255,255,255,.18);stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wh-portfolio__dialog{border:1px solid #3a3334;background:#121112;color:#fff;position:fixed;inset:0;margin:auto;width:min(1070px,calc(100vw - 32px));max-height:min(94vh,950px);border-radius:20px;padding:0;overflow:auto;box-shadow:0 30px 150px rgba(0,0,0,.75)}
.wh-portfolio__dialog::backdrop{background:rgba(0,0,0,.84);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.wh-portfolio__dialog-close{position:sticky;top:15px;float:right;z-index:3;margin:15px 16px -55px 0;border:1px solid #645d5d;background:rgba(25,23,24,.92);color:#fff;border-radius:50%;height:42px;width:42px;font-size:24px;cursor:pointer}
.wh-portfolio__dialog-media img{display:block;width:100%;height:auto}
.wh-portfolio__dialog-info{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:21px 27px 28px;flex-wrap:wrap}
.wh-portfolio__dialog-info p{margin:0 0 7px;font-size:11px;color:#ef737b;font-weight:800;letter-spacing:.12em}
.wh-portfolio__dialog-info h3{margin:0;font-size:30px;letter-spacing:-.05em}
.wh-portfolio__dialog-live{display:inline-flex;gap:9px;align-items:center;border:1px solid #5e4143;color:white;text-decoration:none;border-radius:100px;padding:13px 19px;font-size:12px;font-weight:750}
.wh-portfolio__dialog-live[hidden]{display:none}
.wh-portfolio button:focus-visible,.wh-portfolio a:focus-visible{outline:3px solid #ff7a80;outline-offset:3px}
@media(max-width:1080px){.wh-portfolio__head{grid-template-columns:1fr 1fr}.home-premium .wh-portfolio__title{font-size:clamp(53px,6.7vw,87px)}.wh-project[data-size="large"]{grid-column:span 7}.wh-project[data-size="medium"]{grid-column:span 5}.wh-project{grid-column:span 6}.wh-project__meta{min-height:135px}}
@media(max-width:720px){.wh-portfolio{padding:72px 17px 89px}.wh-portfolio__head{grid-template-columns:1fr;gap:24px;margin-bottom:29px}.home-premium .wh-portfolio__title{font-size:clamp(48px,10vw,80px)}.wh-portfolio__lead{margin:0;max-width:550px}.wh-portfolio__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wh-project,.wh-project[data-size="large"],.wh-project[data-size="medium"]{grid-column:span 2}.wh-project__open,.wh-project[data-size="large"] .wh-project__open,.wh-project[data-size="medium"] .wh-project__open{aspect-ratio:1.67}.wh-project__meta{padding:18px 20px 22px;min-height:unset}.home-premium .wh-project__name{font-size:27px}.wh-project__footer{flex-direction:column;align-items:flex-start}.wh-portfolio__footer{flex-direction:column;align-items:flex-start}.wh-project__arrow{width:42px;height:42px}}
@media(max-width:440px){.home-premium .wh-portfolio__title{font-size:clamp(44px,10.8vw,61px)}.wh-project__summary{font-size:12px}.wh-project__image-label{font-size:9px;padding:8px 10px}.wh-project__meta{gap:12px}}
@media(prefers-reduced-motion:reduce){.wh-portfolio *{animation:none !important;transition:none !important;scroll-behavior:auto !important}}

.wh-project{color:inherit;text-decoration:none}
.wh-portfolio__eyebrow{font-size:16px;letter-spacing:.04em}
.wh-project__eyebrow{font-size:12px;letter-spacing:.05em}
.wh-project__summary{font-size:16px}
.wh-project__meta{align-items:flex-start;padding:22px;gap:14px}
.home-premium .wh-project__name{font-size:clamp(23px,2vw,30px);max-width:none}
.wh-project__arrow{width:40px;height:40px;margin-top:24px}
.wh-portfolio__dialog{overscroll-behavior:contain}
.wh-portfolio__dialog-info h3{color:#fff}
.wh-portfolio__dialog-live{flex:none}
@media(max-width:720px){.wh-project__summary{font-size:16px}.home-premium .wh-project__name{font-size:27px}.wh-project__meta{padding:20px}.wh-portfolio__dialog-info{padding:20px}}
@media(prefers-reduced-motion:reduce){.wh-project:hover,.wh-project:hover .wh-project__image,.wh-project:hover .wh-project__arrow,.wh-portfolio__cta:hover{transform:none}}

.wh-portfolio__intro-copy{width:100%;max-width:450px;margin-left:auto}
.wh-portfolio__more{display:flex;justify-content:flex-start;margin-top:24px}
@media(max-width:720px){.wh-portfolio__intro-copy{max-width:550px;margin-left:0}}

/* Homepage: two continuous rows, with native scrolling as the static fallback. */
.wh-portfolio__carousel{--project-card-width:clamp(260px,32vw,410px);--project-gap:22px;display:grid;gap:22px}
.wh-portfolio__carousel-toolbar{display:flex;justify-content:flex-end;min-height:32px}
.wh-portfolio__carousel-toolbar:has([hidden]){display:none}
.wh-portfolio__motion-control{font:inherit;font-size:12px;font-weight:650;color:#d8cbcb;border:1px solid #514044;background:transparent;border-radius:99px;padding:8px 14px;cursor:pointer}
.wh-portfolio__motion-control:hover{color:white;border-color:#dc5561}
.wh-portfolio__row{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#765054 #211b1d;padding:9px 0 16px}
.wh-portfolio__track{display:flex;width:max-content;align-items:stretch;translate:var(--project-focus-shift,0px) 0}
.wh-portfolio__project-group{display:flex;align-items:stretch;gap:var(--project-gap);padding-right:var(--project-gap);flex:none}
.wh-portfolio__project-group>.wh-project{flex:0 0 var(--project-card-width);width:var(--project-card-width)}
.wh-portfolio__carousel .wh-project__meta{min-height:124px}
.wh-portfolio__project-group[data-project-group-clone]{display:none}
.wh-portfolio__carousel[data-carousel-ready]:not(.is-static) .wh-portfolio__row{overflow:hidden}
.wh-portfolio__carousel[data-carousel-ready]:not(.is-static) .wh-portfolio__project-group[data-project-group-clone]{display:flex}
.wh-portfolio__carousel[data-carousel-ready]:not(.is-static) .wh-portfolio__track{animation:wh-project-row 68s linear infinite;animation-play-state:paused}
.wh-portfolio__carousel[data-carousel-ready]:not(.is-static) .wh-portfolio__row:nth-of-type(3) .wh-portfolio__track{animation-duration:78s;animation-direction:reverse}
.wh-portfolio__carousel.is-carousel-playing:not(.is-static) .wh-portfolio__track{animation-play-state:running}
.wh-portfolio__motion-control[hidden]{display:none}
@keyframes wh-project-row{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:720px){.wh-portfolio__carousel{--project-card-width:min(82vw,340px);--project-gap:16px;gap:16px}.wh-portfolio__carousel .wh-project__meta{min-height:124px}}
@media(prefers-reduced-motion:reduce){.wh-portfolio__carousel .wh-portfolio__row{overflow-x:auto!important}.wh-portfolio__carousel .wh-portfolio__track{animation:none!important;transform:none;translate:none}.wh-portfolio__carousel .wh-portfolio__project-group[data-project-group-clone]{display:none!important}}

/* Keep the editorial introduction contained; let project rows reach both edges. */
.websitehero-marketing-page .wh-portfolio{padding-inline:0}
.websitehero-marketing-page .wh-portfolio__wrap{width:calc(100% - 2 * clamp(18px,4vw,70px));max-width:var(--wh-container-max)}
.websitehero-marketing-page .wh-portfolio__carousel{width:100%;max-width:none;margin-inline:0;border:0;border-radius:0}
.websitehero-marketing-page .wh-portfolio__carousel-toolbar{width:calc(100% - 2 * clamp(18px,4vw,70px));max-width:var(--wh-container-max);margin-inline:auto}

/* Keep the same gentle travel speed when more projects extend each row. */
.wh-portfolio__carousel[data-carousel-ready]:not(.is-static) .wh-portfolio__track{animation-duration:var(--project-row-duration,68s)}
.wh-portfolio__carousel[data-carousel-ready]:not(.is-static) .wh-portfolio__row:nth-of-type(3) .wh-portfolio__track{animation-duration:var(--project-row-reverse-duration,78s)}

/* Soft edge fades blend both moving rows into the section background. */
.wh-portfolio__carousel .wh-portfolio__row{
    --project-edge-fade:clamp(24px,7vw,120px);
    -webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--project-edge-fade),#000 calc(100% - var(--project-edge-fade)),transparent 100%);
    mask-image:linear-gradient(to right,transparent 0,#000 var(--project-edge-fade),#000 calc(100% - var(--project-edge-fade)),transparent 100%);
}
.wh-portfolio__carousel .wh-portfolio__row:focus-within{-webkit-mask-image:none;mask-image:none}
@media(max-width:720px){.wh-portfolio__carousel .wh-portfolio__row{--project-edge-fade:24px}}
