body.pex-portfolio-page #shorts .section-header > h2,
body.pex-portfolio-page #testimonials > h2 {
  text-align: center;
}
body.pex-portfolio-page {
  overflow-x: clip;
  overflow-y: visible;
  --font-kanit: 'Kanit'; --font-quicksand: 'Quicksand';
  line-height: 1.5; padding: 0; max-width: none;
}
body.pex-portfolio-page .pex-site :where(figure, .wp-block-group, .wp-block-buttons, .wp-block-button, .wp-block-image) { margin-block-start: 0; margin-block-end: 0; }
body.pex-portfolio-page .pex-site :where(h1,h2,h3,p) { padding: 0; border: 0; }
body.pex-portfolio-page .pex-site .creator-hero-bottom { margin-top: auto; }
body.pex-portfolio-page .hero-video-anchor { top: max(35%, calc(15.1vw + 110px)); }
body.pex-portfolio-page .pex-site :where(h1,h2,h3,p,a) { font-family: var(--font-quicksand), Arial, sans-serif; }
body.pex-portfolio-page .pex-site :where(h1,h2,h3) { font-family: var(--font-kanit), Arial, sans-serif; }
body.pex-portfolio-page .pex-site :where(.wp-block-image) { max-width: none; }
body.pex-portfolio-page .pex-site .wp-block-image img { border-radius: 0; }
body.pex-portfolio-page .pex-site :where(.pex-button-group, .wp-block-button, .creator-nav > p) { display: contents; }
body.pex-portfolio-page .pex-site .wp-block-button { background: none; border: 0; box-shadow: none; padding: 0; }
body.pex-portfolio-page .pex-site .wp-block-button > a { font: inherit; text-decoration: none; }
body.pex-portfolio-page .pex-site .wp-block-button.contact-button > a {
  display: inline-flex; align-items: center; justify-content: center; background: #20b37d; color: white; border: 0;
  padding: 18px 28px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s, background .2s;
}
body.pex-portfolio-page .pex-site .wp-block-button.contact-button > a:hover { background: #17996a; transform: translateY(-3px); }
body.pex-portfolio-page .pex-site .wp-block-button.outline-button > a { display: inline-flex; border: 2px solid currentColor; border-radius: 999px; padding: 14px 25px; background: transparent; color: inherit; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
body.pex-portfolio-page .pex-video > a { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; }
body.pex-portfolio-page .pex-video > a > img { width: 100%; height: 100%; object-fit: cover; }
body.pex-portfolio-page .pex-video > a::after { content: '▶'; display: grid; place-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #e2e8f0ed; color: #0c0c0c; border: 1px solid white; border-radius: 50%; width: 78px; height: 78px; font: 26px Arial,sans-serif; }
body.pex-portfolio-page .short-screen > a::after { left: 50%; top: 50%; bottom: auto; transform: translate(-50%,-50%); width: 44px; height: 44px; font-size: 18px; }
body.pex-portfolio-page .hero-video figcaption { pointer-events: none; position: absolute; inset: auto 0 0; margin: 0; display: flex; justify-content: space-between; align-items: center; padding: 48px 23px 24px; background: linear-gradient(transparent,#060606 50%); color: #d7e2ea; font-size: 13px; }
body.pex-portfolio-page .hero-video figcaption span { font-size: 11px; letter-spacing: .09em; }
body.pex-portfolio-page .pex-site .hero-meta p { margin: 0; }
body.pex-portfolio-page .pex-site .creator-title { margin-top: 13px; }
body.pex-portfolio-page .motion-control { cursor: pointer; }
body.pex-portfolio-page .pex-motion-switch { width: 32px; height: 18px; background: #d7e2ea; border: 0; border-radius: 20px; padding: 2px; }
body.pex-portfolio-page .pex-motion-switch::after { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: #0c0c0c; transform: translateX(14px); }
body.pex-portfolio-page .pex-motion-switch[aria-checked='false']::after { transform: none; }
body.pex-portfolio-page .pex-site .tech-tile figure { flex: none; margin: 0; }
body.pex-portfolio-page .tech-tile .logo-monochrome img { filter: invert(1); }
body.pex-portfolio-page .tech-tile p { font-size: 25px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
body.pex-portfolio-page .pex-site .marquee-row + .marquee-row { margin-top: 14px; }
body.pex-portfolio-page .pex-site .section-header { margin-bottom: 60px; }
body.pex-portfolio-page .pex-site .section-header p { margin-top: 30px; }
body.pex-portfolio-page .pex-site .short-item h3, body.pex-portfolio-page .pex-site .client-collection h3 { margin-top: 17px; }
body.pex-portfolio-page .pex-site .creator-projects { margin-top: -60px; }
body.pex-portfolio-page .pex-site .stack-card { margin-bottom: 18vh; }
body.pex-portfolio-page .pex-site .stack-card:last-child { margin-bottom: 0; }
body.pex-portfolio-page .pex-site .project-card-header { margin-bottom: 25px; }
body.pex-portfolio-page .pex-site .client-collection { margin-top: 60px; }
body.pex-portfolio-page .pex-site .template-section { margin: 0 3%; }
body.pex-portfolio-page .pex-site .creator-footer { margin: 0 3%; }
body.pex-portfolio-page .creator-footer .social-links { display: flex; gap: 30px; }
body.pex-portfolio-page .pex-site .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.pex-portfolio-page .pex-site [hidden] { display: none !important; }
body.pex-portfolio-page .video-dialog { margin: auto; position: fixed; inset: 0; max-height: 90svh; overflow: auto; }
body.pex-portfolio-page .video-dialog::backdrop { background: #000c; backdrop-filter: blur(8px); }
body.pex-portfolio-page .video-dialog:not([open]) { display: none; }
body.pex-portfolio-page .quote-dialog { width: min(620px, calc(100% - 32px)); max-height: 90svh; margin: auto; padding: 38px; border: 1px solid #46505a; border-radius: 28px; background: #101214; color: #d7e2ea; overflow: auto; }
body.pex-portfolio-page .quote-dialog::backdrop { background: #000c; backdrop-filter: blur(8px); }
body.pex-portfolio-page .quote-dialog:not([open]) { display: none; }
body.pex-portfolio-page .quote-dialog h2 { margin: 5px 42px 24px 0; color: #d7e2ea; font-size: clamp(32px, 5vw, 54px); line-height: .95; }
body.pex-portfolio-page .quote-dialog .small-label { margin: 0 0 12px; font-size: 11px; letter-spacing: .2em; }
body.pex-portfolio-page .quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
body.pex-portfolio-page .quote-form label { margin-top: 8px; font-size: 12px; letter-spacing: .06em; }
body.pex-portfolio-page .quote-form input, body.pex-portfolio-page .quote-form select, body.pex-portfolio-page .quote-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #46505a; border-radius: 10px; background: #090a0b; color: #fff; font: 15px var(--font-quicksand),Arial,sans-serif; }
body.pex-portfolio-page .quote-form label:nth-of-type(5), body.pex-portfolio-page .quote-form textarea, body.pex-portfolio-page .quote-form label:nth-of-type(6), body.pex-portfolio-page .quote-form select:last-of-type, body.pex-portfolio-page .quote-form button { grid-column: 1 / -1; }
body.pex-portfolio-page .quote-form textarea { min-height: 110px; resize: vertical; }
body.pex-portfolio-page .quote-form button.contact-button { justify-self: start; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; background: #20b37d; color: #fff; border: 0; padding: 16px 26px; border-radius: 999px; font: 500 13px var(--font-quicksand),Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
body.pex-portfolio-page .quote-honeypot { position: absolute; left: -9999px; }
body.pex-portfolio-page .quote-error { color: #ff9d9d; }
body.pex-portfolio-page .quote-result { padding: 25px; border: 1px solid #20b37d; border-radius: 16px; }
body.pex-portfolio-page .pex-dialog-close { position: absolute; right: 12px; top: 8px; width: 44px; height: 44px; padding: 0; background: transparent; color: #fff; border: 0; font-size: 32px; }
body.pex-portfolio-page .video-dialog-title { margin: 0 0 15px; padding-right: 40px; }
body.pex-portfolio-page.admin-bar .stack-card { top: calc(87px + var(--stack-index) * 28px); }
body.pex-portfolio-page .pex-site[data-motion-off='true'] .stack-card { position: relative; top: auto; margin-bottom: 35px; }
@media(max-width:767px) {
  body.pex-portfolio-page .quote-dialog { padding: 28px 22px; border-radius: 22px; }
  body.pex-portfolio-page .quote-form { grid-template-columns: 1fr; }
  body.pex-portfolio-page .quote-form > * { grid-column: 1 !important; }
  body.pex-portfolio-page .hero-video-anchor { top: 24%; }
  body.pex-portfolio-page .pex-site .creator-title { margin-top: 36px; }
  body.pex-portfolio-page .pex-site .wp-block-button.contact-button > a { font-size: 12px; }
  body.pex-portfolio-page .pex-site .creator-hero-bottom .wp-block-button.contact-button > a { font-size: 10px; padding: 15px; letter-spacing: .03em; }
  body.pex-portfolio-page .pex-video > a::after { width: 60px; height: 60px; }
  body.pex-portfolio-page .short-screen > a::after { width: 35px; height: 35px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%,-50%); font-size: 15px; }
  body.pex-portfolio-page .hero-video figcaption { padding: 35px 15px 18px; font-size: 12px; }
  body.pex-portfolio-page .hero-video figcaption span { font-size: 9px; }
  body.pex-portfolio-page .tech-tile p { font-size: 19px; }
  body.pex-portfolio-page .pex-site .marquee-row + .marquee-row { margin-top: 10px; }
  body.pex-portfolio-page .pex-site .section-header { margin-bottom: 35px; }
  body.pex-portfolio-page .pex-site .section-header p { margin-top: 25px; }
  body.pex-portfolio-page .pex-site .short-item h3 { margin-top: 12px; }
  body.pex-portfolio-page .pex-site .creator-projects { margin-top: -35px; }
  body.pex-portfolio-page .pex-site .stack-card { margin-bottom: 28px; top: auto; }
  body.pex-portfolio-page .pex-site .project-card-header { margin-bottom: 20px; }
  body.pex-portfolio-page .pex-site .client-collection { margin-top: 35px; }
  body.pex-portfolio-page .pex-site .template-section, body.pex-portfolio-page .pex-site .creator-footer { margin: 0 5%; }
  body.pex-portfolio-page .creator-footer .social-links { gap: 15px; }
}

@media (min-width: 768px) {
  body.pex-portfolio-page .project-stack { max-width: 800px; margin-inline: auto; }
  body.pex-portfolio-page .project-film { height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
  body.pex-portfolio-page .shorts-collection, body.pex-portfolio-page .client-collection { max-width: 900px; margin-inline: auto; }
}
@media (min-width: 900px) {
  body.pex-portfolio-page #shorts .section-header > h2,
  body.pex-portfolio-page #testimonials > h2,
  body.pex-portfolio-page #shorts .section-header > p { white-space: nowrap; text-align: center; }
}

body.pex-portfolio-page .project-card-header h3 { color: #d7e2ea; }

/* Split hero: editable copy and CTA beside an inline 16:9 introduction. */
body.pex-portfolio-page .pex-site .hero-split { height: auto; min-height: min(820px, 100svh); max-height: none; padding-bottom: 75px; }
body.pex-portfolio-page .hero-main { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 4vw, 72px); padding: clamp(65px, 9vw, 140px) 0 45px; }
body.pex-portfolio-page .hero-copy { min-width: 0; }
body.pex-portfolio-page .pex-site .hero-copy .creator-title { margin: 0 0 34px; overflow: visible; }
body.pex-portfolio-page .hero-copy .creator-title h1 { font-size: clamp(56px, 6.85vw, 114px); line-height: .98; letter-spacing: -.045em; white-space: normal; text-align: left; margin: 0; text-wrap: initial; }
body.pex-portfolio-page .hero-copy .contact-button { margin: 0; justify-self: start; }
body.pex-portfolio-page .hero-media { min-width: 0; align-self: center; }
body.pex-portfolio-page .pex-site .hero-media .creator-role { text-align: right; margin: 0 0 20px; }
body.pex-portfolio-page .hero-split .hero-video-anchor { position: relative; inset: auto; transform: none; width: 100%; max-width: none; animation: none; }
body.pex-portfolio-page .hero-split .magnetic-video { height: auto; }
body.pex-portfolio-page .hero-split .hero-video { height: auto; aspect-ratio: 16 / 9; border-radius: 22px; margin: 0; background: #000; }
body.pex-portfolio-page .hero-split .hero-video > a { position: absolute; inset: 0; }
body.pex-portfolio-page .hero-split .hero-video iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.pex-portfolio-page .hero-split .hero-video figcaption { display: none; }
body.pex-portfolio-page .creator-footer > p:first-child { font-size: 12px; letter-spacing: .04em; }
/* Let the first moving logo row peek above the desktop fold. */
@media(min-width: 901px) {
  body.pex-portfolio-page .pex-site .hero-split { min-height: calc(100svh - 115px); padding-bottom: 24px; }
  body.pex-portfolio-page.admin-bar .pex-site .hero-split { min-height: calc(100svh - 147px); }
  body.pex-portfolio-page .hero-main { padding: clamp(40px, 6svh, 72px) 0 32px; }
  body.pex-portfolio-page .hero-split + .work-marquee { padding-top: 40px; }
}
@media(max-width: 900px) {
  body.pex-portfolio-page .pex-site .hero-split { min-height: auto; padding-bottom: 50px; }
  body.pex-portfolio-page .hero-main { grid-template-columns: 1fr; gap: 55px; padding: 65px 0 20px; }
  body.pex-portfolio-page .hero-copy .creator-title h1 { font-size: clamp(40px, 8.3vw, 72px); }
  body.pex-portfolio-page .hero-media { width: 100%; max-width: 660px; justify-self: end; }
  body.pex-portfolio-page .hero-split .hero-video { border-radius: 18px; }
  body.pex-portfolio-page .creator-footer { flex-wrap: wrap; gap: 24px; }
}

body.pex-portfolio-page .hero-split .hero-video > video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
body.pex-portfolio-page .video-dialog video { display: block; width: 100%; max-height: 70vh; background: #000; }
