/*
Theme Name: Pixelle Theme
Theme URI: https://pixelleagency.ca
Author: Pixelle Agency
Description: Custom WordPress theme generated from the Pixelle Restore Point 4 homepage concept.
Version: 1.4.8
Text Domain: pixelle
*/

/* =========================================================
   PIXELLE WORDPRESS THEME
   Restore Point 4 production build.
   Stable systems only: layout, hero, nav, blog, ACF, and modals.
   ========================================================= */


/* =========================================================
   CSS CLEANUP NOTE
   This file intentionally keeps the existing cascade order.
   Late production/mobile overrides are documented below instead
   of being moved, because the current JS/CSS pairing and Safari
   mobile tuning are considered stable.
   ========================================================= */

/* Accessibility helpers */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  overflow: visible;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
}

:root {
      --black: #030303;
      --black2: #08080b;
      --white: #f7f4f2;
      --muted: #aaa4aa;
      --soft: rgba(255,255,255,.075);
      --line: rgba(255,255,255,.14);
      --cyan: #00aeea;
      --pink: #ec008c;
      --yellow: #fff200;
      --max: 1180px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: auto; }


    body {
      font-family: Inter, Arial, sans-serif;
      background: var(--black);
      color: var(--white);
      overflow-x: hidden;
      position: relative;
    }

    body::before {
      content: "";
      position: fixed;
      inset: -4%;
      z-index: -5;
      pointer-events: none;
      background:
        radial-gradient(circle at 18% 18%, rgba(236,0,140,.16), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(0,174,234,.13), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(255,242,0,.07), transparent 30%);
      background-size: auto, auto, auto, 46px 46px, 46px 46px;
      animation: ambientShift 18s ease-in-out infinite alternate;
      transform: translate3d(var(--bg-shift-x, 0px), var(--bg-shift-y, 0px), 0) scale(1.025);
      transition: transform .18s ease-out;
    }

    @keyframes ambientShift {
      from {
        filter: hue-rotate(0deg) brightness(1);
      }
      to {
        filter: hue-rotate(8deg) brightness(1.08);
      }
    }

        a { color: inherit; text-decoration: none; }

    .topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      backdrop-filter: blur(18px);
      background: rgba(3,3,3,.64);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .topbar-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 14px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 24px;
    }

    .mini-logo {
      height: 56px;
      width: auto;
      display: block;
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 24px;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .menu a {
      position: relative;
      transition: color .25s ease, transform .25s ease;
    }

    .menu a::after {
      content: "";
      position: absolute;
      left: 50%;
      right: 50%;
      bottom: -8px;
      height: 1px;
      background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
      transition: left .25s ease, right .25s ease, opacity .25s ease;
      opacity: 0;
    }

    .menu a:hover,
    .menu a.active {
      color: var(--white);
    }

    .menu a:hover::after,
    .menu a.active::after {
      left: 0;
      right: 0;
      opacity: 1;
    }


    .brand-left {
      display: flex;
      align-items: center;
      gap: 28px;
      min-width: 0;
    }

    .mobile-contact-pill {
      display: none;
    }

    .desktop-contact-pill {
      display: inline-flex;
      font-weight: 700;
      color: var(--white);
    }

    .social-connect {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: .14em;
      text-transform: uppercase;
      white-space: nowrap;
      margin-left: 92px;
    }

    .social-icons {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .social-icon {
      position: relative;
      overflow: hidden;
      width: 35px;
      height: 35px;
      border-radius: 13px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.045);
      transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
    }

    .social-icon svg {
      width: 25px;
      height: 25px;
      fill: currentColor;
    }

    .social-icon.facebook { color: var(--cyan); }
    .social-icon.instagram { color: var(--pink); }
    .social-icon.linkedin { color: var(--yellow); }
    .social-icon.email { color: rgba(255,255,255,.9); }

    .social-icon:hover {
      transform: translateY(-2px) scale(1.08);
      border-color: rgba(255,255,255,.28);
      background: rgba(255,255,255,.08);
    }

    section {
      position: relative;
      min-height: 100vh;
      padding: 125px 24px;
      overflow: hidden;
      display: grid;
      align-items: center;
      isolation: isolate;
      transform-origin: center top;
      will-change: transform, opacity;
    }

    .container {
      width: 100%;
      max-width: var(--max);
      margin: 0 auto;
      position: relative;
      z-index: 3;
    }

    .hero {
      text-align: center;
      padding-top: 110px;
      position: relative;
      overflow: visible;
      z-index: 5;
    }

    .hero-stage {
      position: relative;
      width: min(82vw, 1050px);
      margin: 0 auto 50px;
      min-height: clamp(230px, 30vw, 410px);
      display: grid;
      place-items: center;
      overflow: visible;
      z-index: 6;
    }


    .hero-logo {
      width: 100%;
      margin: 0 auto;
      display: block;
      filter: drop-shadow(0 0 42px rgba(255,255,255,.08));
      animation: logoFloat 7s ease-in-out infinite alternate;
      transform-origin: center;
      transition: opacity .08s ease-out, transform .08s ease-out, filter .08s ease-out;
      position: relative;
      z-index: 4;
      min-height: 220px;
    }

    .embedded-logo {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(14px, 2vw, 34px);
      transform-origin: center;
      transition: opacity .15s linear, transform .15s linear, filter .15s linear;
      position: relative;
      z-index: 4;
      animation: logoFloat 7s ease-in-out infinite alternate;
    }

    .embedded-p-mark {
      position: relative;
      width: clamp(120px, 12vw, 180px);
      height: clamp(170px, 18vw, 250px);
      flex-shrink: 0;
    }

    .p-column {
      position: absolute;
      right: 0;
      top: 0;
      width: 26%;
      height: 100%;
      border-radius: 100px;
      border: clamp(10px, 1vw, 16px) solid rgba(255,255,255,.96);
      border-left: none;
    }

    .p-shape {
      position: absolute;
      right: 0;
      top: 0;
      width: 78%;
      height: 58%;
      border-radius: 120px;
      border: clamp(10px, 1vw, 16px) solid rgba(255,255,255,.96);
      border-left: none;
    }

    .pixel-burst {
      position: absolute;
      left: -22%;
      top: 14%;
      width: 120px;
      height: 120px;
    }

    .pixel-burst span {
      position: absolute;
      width: 12px;
      height: 12px;
      transform: rotate(12deg);
    }

    .pixel-burst .c { background: var(--cyan); }
    .pixel-burst .m { background: var(--pink); }
    .pixel-burst .y { background: var(--yellow); }

    .pixel-burst span:nth-child(1){left:0;top:10px}
    .pixel-burst span:nth-child(2){left:18px;top:36px}
    .pixel-burst span:nth-child(3){left:8px;top:68px}
    .pixel-burst span:nth-child(4){left:38px;top:4px}
    .pixel-burst span:nth-child(5){left:48px;top:34px}
    .pixel-burst span:nth-child(6){left:38px;top:72px}
    .pixel-burst span:nth-child(7){left:76px;top:0}
    .pixel-burst span:nth-child(8){left:82px;top:28px}
    .pixel-burst span:nth-child(9){left:78px;top:60px}
    .pixel-burst span:nth-child(10){left:106px;top:18px}
    .pixel-burst span:nth-child(11){left:108px;top:48px}
    .pixel-burst span:nth-child(12){left:104px;top:80px}
    .pixel-burst span:nth-child(13){left:56px;top:96px}
    .pixel-burst span:nth-child(14){left:24px;top:100px}
    .pixel-burst span:nth-child(15){left:92px;top:102px}

    .embedded-wordmark {
      text-align: left;
    }

    .pixelle {
      font-size: clamp(56px, 8vw, 150px);
      font-weight: 300;
      letter-spacing: -.06em;
      line-height: .9;
      color: rgba(255,255,255,.97);
    }

    .agency-row {
      margin-top: 8px;
      display: flex;
      align-items: center;
      gap: 18px;
      justify-content: center;
    }

    .agency-row small {
      font-size: clamp(12px, 1.2vw, 22px);
      letter-spacing: .5em;
      font-weight: 700;
    }

    .agency-row span {
      width: 100px;
      height: 6px;
      background: linear-gradient(90deg,var(--cyan) 0 33%, var(--pink) 33% 66%, var(--yellow) 66% 100%);
      border-radius: 999px;
    }

    .logo-particles {
      position: absolute;
      inset: -120vh -60vw;
      z-index: 2;
      pointer-events: none;
      overflow: visible;
    }

    .logo-particles i {
      --x: 0px;
      --y: 0px;
      --r: 0deg;
      --s: 1;
      --delay: 0;
      --float: 0px;
      position: absolute;
      width: 12px;
      height: 12px;
      background: var(--pink);
      border-radius: 3px;
      opacity: 0;
      transform: translate(0,0) rotate(0deg) scale(.35);
      transition: none;
      box-shadow: 0 0 20px rgba(255,255,255,.10);
    }

    .logo-particles i.cyan { background: var(--cyan); box-shadow: 0 0 22px rgba(0,174,234,.28); }
    .logo-particles i.yellow { background: var(--yellow); box-shadow: 0 0 22px rgba(255,242,0,.24); }
    .logo-particles i.white { background: rgba(255,255,255,.92); box-shadow: 0 0 20px rgba(255,255,255,.18); }
    .logo-particles i.pink { background: var(--pink); box-shadow: 0 0 22px rgba(236,0,140,.28); }

    .hero.exploding .hero-logo {
      opacity: 0;
      transform: scale(1.035) translateY(-10px);
      filter: blur(8px) drop-shadow(0 0 42px rgba(255,255,255,.08));
    }

    .hero.exploding .logo-particles i {
      opacity: clamp(
        .08,
        calc(1 - ((var(--explode-progress) - .56) * 2.35)),
        1
      );
      transform:
        translate3d(
          calc(var(--x) * var(--explode-progress)),
          calc((var(--y) * var(--explode-progress)) + (var(--float) * var(--explode-progress))),
          0
        )
        rotate(calc(var(--r) * var(--explode-progress)))
        scale(calc(.35 + (var(--explode-progress) * var(--s))));
      filter: blur(calc(var(--explode-progress) * .55px));
    }

    @supports not (opacity: smoothstep(0,1,0.5)) {
      .hero.exploding .logo-particles i {
        opacity: clamp(
          .08,
          calc(1 - ((var(--explode-progress) - .56) * 2.35)),
          1
        );
      }
    }

    @keyframes logoFloat {
      from { transform: translateY(0) scale(1); }
      to { transform: translateY(-16px) scale(1.015); }
    }

    .scroll-enter {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: .18em;
      text-transform: uppercase;
    }

    .scroll-enter span {
      width: 1px;
      height: 70px;
      background: linear-gradient(var(--cyan), var(--pink), var(--yellow));
      animation: pulseLine 1.6s ease-in-out infinite alternate;
    }

    @keyframes pulseLine {
      from { opacity: .35; transform: scaleY(.7); }
      to { opacity: 1; transform: scaleY(1); }
    }

    .pixel-field {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: .22;
    }

    .pixel-field i {
      position: absolute;
      width: 14px;
      height: 14px;
      background: var(--pink);
      animation: drift 8s ease-in-out infinite alternate;
    }

    .pixel-field i:nth-child(2n) { background: var(--cyan); width: 10px; height: 10px; }
    .pixel-field i:nth-child(3n) { background: var(--yellow); width: 18px; height: 18px; }
    .pixel-field i:nth-child(1) { left: 12%; top: 28%; }
    .pixel-field i:nth-child(2) { left: 18%; top: 70%; animation-delay: .6s; }
    .pixel-field i:nth-child(3) { right: 15%; top: 20%; animation-delay: 1s; }
    .pixel-field i:nth-child(4) { right: 22%; bottom: 18%; animation-delay: 1.4s; }
    .pixel-field i:nth-child(5) { left: 48%; bottom: 15%; animation-delay: .2s; }
    .pixel-field i:nth-child(6) { right: 45%; top: 18%; animation-delay: 1.8s; }

    @keyframes drift {
      from { transform: translate3d(0,0,0) rotate(0deg); }
      to { transform: translate3d(28px,-32px,0) rotate(18deg); }
    }

    .parallax-break {
      min-height: 62vh;
      background:
        radial-gradient(circle at center, rgba(236,0,140,.15), transparent 34%),
        linear-gradient(180deg, var(--black), #09090d, var(--black));
      text-align: center;
      position: relative;
    }

    .parallax-break::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 30%, rgba(236,0,140,.08), transparent 28%),
        radial-gradient(circle at 80% 65%, rgba(0,174,234,.07), transparent 24%);
      pointer-events: none;
      z-index: 1;
    }

    .parallax-break .container {
      padding: 90px 0;
      position: relative;
      z-index: 4;
    }

    .eyebrow {
      display: inline-flex;
      gap: 16px;
      align-items: center;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .17em;
      font-size: 12px;
      margin-bottom: 34px;
      position: relative;
      z-index: 6;
      padding-left: 0;
      line-height: 1;
    }

    .parallax-break .eyebrow {
      margin-bottom: 34px;
    }

    .eyebrow::before {
      content: "";
      position: static;
      display: inline-block;
      flex: 0 0 auto;
      width: 10px;
      height: 10px;
      background: var(--cyan);
      box-shadow: 14px 0 var(--pink), 28px 0 var(--yellow);
      margin-right: 24px;
    }

    h1, h2, h3 { letter-spacing: -.06em; }
    h2 {
      font-size: clamp(34px, 4.8vw, 66px);
      line-height: .92;
      margin-bottom: 26px;
    }

    p {
      color: var(--muted);
      line-height: 1.55;
      font-size: 15px;
    }

    .about-grid {
      display: grid;
      grid-template-columns: .84fr 1.16fr;
      gap: 28px;
      align-items: stretch;
    }

    .photo-card, .glass-card {
      background: rgba(255,255,255,.055);
      border: 1px solid var(--line);
      border-radius: 34px;
      overflow: hidden;
      backdrop-filter: blur(14px);
      box-shadow: 0 30px 90px rgba(0,0,0,.28);
    }

    .photo-card {
      min-height: 470px;
      display: grid;
      place-items: stretch;
      background:
        linear-gradient(135deg, rgba(0,174,234,.18), rgba(236,0,140,.15)),
        rgba(255,255,255,.055);
    }

    .about-display {
      width: 100%;
      height: 100%;
      min-height: 470px;
      padding: 22px;
      display: grid;
      align-items: center;
      overflow: hidden;
    }

    .preview-shell {
      height: 100%;
      min-height: 420px;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 16px;
    }

    .preview-head {
      text-align: center;
    }

    .preview-head .eyebrow {
      margin-bottom: 12px;
    }

    .preview-head h3 {
      font-size: clamp(24px, 2.7vw, 36px);
      line-height: .95;
      margin-bottom: 8px;
    }

    .preview-head p {
      max-width: 420px;
      margin: 0 auto;
      font-size: 12px;
      line-height: 1.35;
    }

    .photo-placeholder {
      width: min(70%, 270px);
      aspect-ratio: 3 / 4;
      border-radius: 28px;
      border: 1px dashed rgba(255,255,255,.28);
      display: grid;
      place-items: center;
      color: var(--muted);
      text-align: center;
      padding: 28px;
      margin: 18px auto 0;
      background: rgba(255,255,255,.035);
    }

    .portrait-wrapper {
      height: 100%;
      display: grid;
      align-content: center;
      justify-items: center;
      gap: 16px;
    }

    .portrait-caption {
      width: min(70%, 270px);
      border: 1px solid rgba(255,255,255,.13);
      background: rgba(255,255,255,.055);
      border-radius: 22px;
      padding: 15px 18px;
      text-align: center;
    }

    .portrait-caption strong {
      display: block;
      font-size: 18px;
      letter-spacing: -.035em;
      margin-bottom: 5px;
    }

    .portrait-caption span {
      color: var(--muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .16em;
    }

    .about-detail-list {
      height: 100%;
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      align-content: center;
      justify-items: center;
    }

    .about-detail-row {
      width: min(100%, 430px);
      min-width: 0;
      display: grid;
      grid-template-columns: 72px minmax(0, 270px);
      gap: 12px;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: translateY(-24px) scale(.96);
      animation: stackDropIn .42s cubic-bezier(.2,.85,.2,1) forwards;
    }

    .about-detail-row:nth-child(1) { animation-delay: .03s; }
    .about-detail-row:nth-child(2) { animation-delay: .09s; }
    .about-detail-row:nth-child(3) { animation-delay: .15s; }
    .about-detail-row:nth-child(4) { animation-delay: .21s; }
    .about-detail-row:nth-child(5) { animation-delay: .27s; }

    @keyframes stackDropIn {
      0% { opacity: 0; transform: translateY(-34px) scale(.94); }
      70% { opacity: 1; transform: translateY(4px) scale(1.01); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .about-mini-photo {
      width: 72px;
      aspect-ratio: 1 / 1;
      border-radius: 13px;
      border: 1px solid rgba(255,255,255,.14);
      background:
        linear-gradient(135deg, rgba(236,0,140,.22), rgba(0,174,234,.15)),
        rgba(255,255,255,.06);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 9px;
      text-align: center;
      padding: 6px;
    }

    .about-mini-text {
      min-height: 72px;
      border-radius: 13px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.045);
      padding: 9px 12px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    .about-mini-text strong {
      display: block;
      margin-bottom: 4px;
      font-size: 13px;
      line-height: 1.08;
    }

    .about-mini-text p {
      font-size: 10px;
      line-height: 1.2;
    }

    .diploma-preview {
      width: min(62%, 270px);
      aspect-ratio: 3 / 4.25;
      border-radius: 24px;
      border: 1px dashed rgba(255,255,255,.24);
      background:
        linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
      display: grid;
      place-items: center;
      color: var(--muted);
      text-align: center;
      padding: 24px;
      margin: 42px auto 0;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(34px) rotate(-4deg) scale(.92);
      animation: diplomaReveal .7s cubic-bezier(.2,.85,.2,1) forwards;
      box-shadow: 0 0 0 rgba(236,0,140,0);
    }

    .diploma-preview::before {
      content: "";
      position: absolute;
      inset: -40%;
      background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
      transform: translateX(-120%) rotate(8deg);
      animation: diplomaShine 1.4s ease .55s forwards;
      pointer-events: none;
    }

    @keyframes diplomaReveal {
      0% {
        opacity: 0;
        transform: translateY(42px) rotate(-5deg) scale(.9);
        box-shadow: 0 0 0 rgba(236,0,140,0);
      }
      70% {
        opacity: 1;
        transform: translateY(-3px) rotate(.8deg) scale(1.015);
        box-shadow: 0 0 34px rgba(236,0,140,.12);
      }
      100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
        box-shadow: 0 0 26px rgba(236,0,140,.08);
      }
    }

    @keyframes diplomaShine {
      from {
        transform: translateX(-120%) rotate(8deg);
        opacity: 0;
      }
      30% {
        opacity: 1;
      }
      to {
        transform: translateX(120%) rotate(8deg);
        opacity: 0;
      }
    }

    .about-copy {
      padding: clamp(24px, 3.6vw, 42px);
    }

    .about-head-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 4px;
    }

    .team-btn {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.055);
      color: var(--white);
      border-radius: 999px;
      padding: 12px 16px;
      font-size: 12px;
      letter-spacing: .14em;
      text-transform: uppercase;
      cursor: pointer;
      transition: .25s ease;
      white-space: nowrap;
      margin-top: -4px;
    }

    .team-btn:hover,
    .team-btn.active {
      transform: translateY(-2px);
      border-color: rgba(255,255,255,.24);
      background: rgba(255,255,255,.09);
    }

    .team-grid {
      height: 100%;
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      align-content: center;
      justify-items: center;
    }

    .team-member {
      width: min(100%, 450px);
      display: grid;
      grid-template-columns: 102px minmax(0, 230px);
      gap: 16px;
      align-items: stretch;
      justify-content: center;
      opacity: 0;
      transform: translateY(-24px) scale(.96);
      animation: teamDropIn .44s cubic-bezier(.2,.85,.2,1) forwards;
    }

    .team-member:nth-child(1) { animation-delay: .04s; }
    .team-member:nth-child(2) { animation-delay: .12s; }
    .team-member:nth-child(3) { animation-delay: .20s; }

    @keyframes teamDropIn {
      0% { opacity: 0; transform: translateY(-34px) scale(.94); }
      70% { opacity: 1; transform: translateY(4px) scale(1.01); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .team-photo {
      width: 102px;
      aspect-ratio: 3 / 4;
      border-radius: 16px;
      border: 1px dashed rgba(255,255,255,.22);
      background:
        linear-gradient(135deg, rgba(236,0,140,.22), rgba(0,174,234,.15)),
        rgba(255,255,255,.06);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 10px;
      text-align: center;
      padding: 8px;
    }

    .team-caption {
      height: 100%;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.045);
      padding: 16px 18px;
      text-align: left;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .team-caption strong {
      display: block;
      font-size: 17px;
      margin-bottom: 5px;
      letter-spacing: -.03em;
    }

    .team-caption span {
      color: var(--muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .12em;
      line-height: 1.35;
    }

    .info-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 24px;
    }

    .info-pill {
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      padding: 14px;
      background: rgba(255,255,255,.04);
      cursor: pointer;
      transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
      text-align: left;
      color: inherit;
      font: inherit;
    }


    .info-pill:hover,
    .info-pill.active {
      transform: translateY(-3px);
      border-color: rgba(255,255,255,.24);
      background: rgba(255,255,255,.075);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }

    .info-pill strong {
      display: block;
      margin-bottom: 4px;
      font-size: 14px;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 46px;
    }

    .service-card {
      --card-glow: rgba(0,174,234,.16);
      --card-accent: var(--cyan);
      min-height: 430px;
      border-radius: 34px;
      border: 1px solid rgba(255,255,255,.16);
      background: #07070a;
      padding: 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      transition: .35s ease;
      filter: grayscale(.08);
      text-align: left;
      color: inherit;
      cursor: pointer;
      appearance: none;
      font-family: inherit;
      isolation: isolate;
    }

    .service-card:hover {
      --card-glow: rgba(0,174,234,.30);
      transform: translateY(-10px) scale(1.015);
      filter: grayscale(0);
      border-color: rgba(255,255,255,.24);
      box-shadow: 0 24px 80px rgba(0,0,0,.35);
    }

    .service-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      border-radius: inherit;
      background:
        linear-gradient(180deg, rgba(3,3,3,.02) 0%, rgba(3,3,3,.18) 38%, rgba(3,3,3,.86) 72%, rgba(3,3,3,.98) 100%),
        radial-gradient(circle at 78% 18%, var(--card-glow), transparent 36%),
        radial-gradient(circle at 22% 46%, rgba(0,174,234,.14), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(236,0,140,.13), transparent 34%);
      background-size: auto, auto, auto, auto;
      pointer-events: none;
      transition: opacity .35s ease, transform .45s ease;
    }

    .service-card:hover::before {
      transform: scale(1.035);
    }

    .service-card .service-tech-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: .95;
    }

    .service-card .service-tech-overlay::before {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 26px;
      border: 1px solid rgba(120,220,255,.10);
      background:
        radial-gradient(circle at 78% 22%, rgba(0,174,234,.20), transparent 24%),
        radial-gradient(circle at 36% 24%, rgba(255,255,255,.08), transparent 18%),
        linear-gradient(140deg, transparent 0%, rgba(255,255,255,.045) 48%, transparent 52%);
      background-size: auto, auto, auto;
      mask-image: linear-gradient(to bottom, black 0 62%, transparent 92%);
      box-shadow: inset 0 0 70px rgba(0,174,234,.045);
    }

    .service-card .service-tech-overlay::after {
      content: "";
      position: absolute;
      left: -30%;
      top: -120%;
      width: 60%;
      height: 260%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
      transform: rotate(18deg);
      animation: glassSweep 9s linear infinite;
      opacity: .38;
    }

    @keyframes glassSweep {
      from { transform: translateX(0) rotate(18deg); }
      to { transform: translateX(340%) rotate(18deg); }
    }

    .service-card::after {
      z-index: 6;
    }

    .digital-marketing-card {
      --card-glow: rgba(0,174,234,.30);
      background:
        radial-gradient(circle at 80% 20%, rgba(0,174,234,.26), transparent 34%),
        radial-gradient(circle at 62% 36%, rgba(236,0,140,.13), transparent 30%),
        linear-gradient(145deg, #07101a, #040407 76%);
      filter: saturate(1.08) brightness(.95);
    }

    .digital-marketing-card::after {
      z-index: 6;
    }

    .digital-marketing-card .digital-dashboard {
      position: absolute;
      inset: 24px 24px 150px;
      z-index: 2;
      pointer-events: none;
      opacity: 1;
    }

    .digital-dashboard .dash-panel,
    .digital-dashboard .dash-chip,
    .digital-dashboard .dash-stat,
    .digital-dashboard .dash-kpi {
      position: absolute;
      border: 1px solid rgba(0,174,234,.28);
      background: rgba(2,12,22,.52);
      border-radius: 14px;
      box-shadow: inset 0 0 26px rgba(0,174,234,.08), 0 0 28px rgba(0,174,234,.12);
      backdrop-filter: blur(7px);
    }

    .digital-dashboard .dash-panel.one {
      left: 0;
      top: 0;
      width: 36%;
      height: 26%;
      display: grid;
      place-items: center;
    }

    .digital-dashboard .dash-panel.one::before {
      content: "68%";
      color: rgba(135,236,255,.95);
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -.04em;
      text-shadow: 0 0 18px rgba(0,174,234,.36);
    }

    .digital-dashboard .dash-panel.one::after {
      content: "TRAFFIC GROWTH";
      position: absolute;
      top: 10px;
      left: 12px;
      color: rgba(255,255,255,.46);
      font-size: 7px;
      letter-spacing: .16em;
    }

    .digital-dashboard .dash-panel.two {
      left: 2%;
      top: 34%;
      width: 32%;
      height: 33%;
      border-radius: 18px;
      background: conic-gradient(from 0deg, var(--cyan), var(--pink), rgba(255,242,0,.75), rgba(0,174,234,.25), var(--cyan));
      mask: radial-gradient(circle, transparent 0 37%, black 39% 100%);
      opacity: .82;
    }

    .digital-dashboard .dash-panel.three {
      right: 0;
      bottom: 0;
      width: 70%;
      height: 52%;
      border-radius: 16px;
      background:
        linear-gradient(150deg, transparent 18%, rgba(0,174,234,.95) 19%, rgba(0,174,234,.95) 20%, transparent 21%),
        linear-gradient(28deg, transparent 42%, rgba(236,0,140,.68) 43%, rgba(236,0,140,.68) 44%, transparent 45%),
        linear-gradient(180deg, transparent 0%, rgba(0,174,234,.12) 100%);
      border-bottom: 1px solid rgba(0,174,234,.36);
      border-left: 1px solid rgba(0,174,234,.18);
    }

    .digital-dashboard .dash-chip { right: 2%; top: 0; width: 32%; height: 24%; }
    .digital-dashboard .dash-chip::before {
      content: "SESSIONS";
      position: absolute;
      top: 10px;
      left: 12px;
      font-size: 7px;
      letter-spacing: .16em;
      color: rgba(255,255,255,.42);
    }
    .digital-dashboard .dash-chip::after {
      content: "32,984";
      position: absolute;
      left: 12px;
      bottom: 12px;
      color: rgba(255,255,255,.92);
      font-size: 18px;
      font-weight: 800;
    }

    .digital-dashboard .dash-chip.two { left: 41%; top: 8%; width: 23%; height: 20%; }
    .digital-dashboard .dash-chip.two::before { content: "ROI"; }
    .digital-dashboard .dash-chip.two::after { content: "4.8x"; color: var(--cyan); }

    .digital-dashboard .dash-stat {
      right: 26%;
      top: 38%;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.92);
      font-size: 18px;
      font-weight: 800;
      background: radial-gradient(circle, rgba(0,174,234,.18), rgba(3,3,3,.50) 62%), conic-gradient(var(--cyan) 0 68%, rgba(255,255,255,.08) 68% 100%);
    }
    .digital-dashboard .dash-stat::before { content: "68%"; }

    .digital-dashboard .dash-kpi { left: 0; bottom: 0; width: 23%; height: 18%; border-radius: 12px; }
    .digital-dashboard .dash-kpi::before {
      content: "+24.5%";
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.82);
      font-size: 15px;
      font-weight: 800;
    }

    .digital-dashboard .dash-map {
      position: absolute;
      right: 2%;
      top: 0;
      width: 74%;
      height: 90%;
      opacity: .26;
      background: radial-gradient(circle, rgba(0,174,234,.9) 1px, transparent 2px);
      background-size: 8px 8px;
      mask-image: radial-gradient(ellipse at center, black 0 50%, transparent 76%);
    }

    .digital-marketing-card .data-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      opacity: .42;
    }

    .digital-marketing-card .data-overlay::before,
    .digital-marketing-card .data-overlay::after {
      content: "";
      position: absolute;
      border: 1px solid rgba(185,240,255,.22);
      backdrop-filter: blur(1px);
    }

    .digital-marketing-card .data-overlay::before {
      width: 38%;
      height: 26%;
      top: 12%;
      right: 10%;
      border-radius: 18px;
      box-shadow:
        inset 0 0 40px rgba(0,174,234,.06),
        0 0 24px rgba(0,174,234,.08);
    }

    .digital-marketing-card .data-overlay::after {
      width: 26%;
      height: 20%;
      bottom: 18%;
      right: 18%;
      border-radius: 16px;
      box-shadow:
        inset 0 0 30px rgba(255,255,255,.04),
        0 0 20px rgba(255,255,255,.06);
    }

        .digital-marketing-card .chart-bars {
      position: absolute;
      top: 33%;
      right: 8%;
      display: flex;
      align-items: end;
      gap: 7px;
      height: 115px;
      z-index: 4;
      opacity: .95;
      filter: drop-shadow(0 0 24px rgba(0,174,234,.26));
    }

    .digital-marketing-card .chart-bars span {
      width: 13px;
      border-radius: 12px 12px 3px 3px;
      background: linear-gradient(180deg, rgba(220,248,255,.98), rgba(0,174,234,.72) 70%, rgba(236,0,140,.58));
      box-shadow: 0 0 18px rgba(0,174,234,.26), 0 0 44px rgba(236,0,140,.10);
      animation: liveBars 3.8s ease-in-out infinite alternate;
    }

    .digital-marketing-card .chart-bars span:nth-child(1) { height: 42px; animation-delay: .1s; }
    .digital-marketing-card .chart-bars span:nth-child(2) { height: 58px; animation-delay: .4s; }
    .digital-marketing-card .chart-bars span:nth-child(3) { height: 82px; animation-delay: .7s; }
    .digital-marketing-card .chart-bars span:nth-child(4) { height: 108px; animation-delay: 1s; }

    @keyframes liveBars {
      from { transform: scaleY(.92); opacity: .82; }
      to { transform: scaleY(1.08); opacity: 1; }
    }

    .digital-marketing-card .chart-line {
      position: absolute;
      left: 20%;
      top: 49%;
      width: 64%;
      height: 2px;
      background: linear-gradient(90deg, rgba(0,174,234,.0), rgba(0,174,234,.88), rgba(255,255,255,.72));
      transform: rotate(-22deg);
      transform-origin: left center;
      z-index: 5;
      opacity: .76;
      box-shadow: 0 0 20px rgba(0,174,234,.32);
    }

    .digital-marketing-card .metric-stack {
      position: absolute;
      left: 10%;
      top: 12%;
      width: 34%;
      display: grid;
      gap: 10px;
      z-index: 3;
      opacity: .58;
      pointer-events: none;
    }

    .digital-marketing-card .metric-stack span {
      height: 38px;
      border-radius: 12px;
      border: 1px solid rgba(185,240,255,.16);
      background:
        linear-gradient(90deg, rgba(0,174,234,.18), rgba(255,255,255,.035)),
        rgba(3,3,3,.28);
      box-shadow: inset 0 0 18px rgba(0,174,234,.05);
    }

    .digital-marketing-card .metric-stack span:nth-child(2) { width: 78%; }
    .digital-marketing-card .metric-stack span:nth-child(3) { width: 58%; }

    .digital-marketing-card .mini-graph {
      position: absolute;
      left: 11%;
      bottom: 19%;
      width: 42%;
      height: 78px;
      z-index: 3;
      opacity: .48;
      pointer-events: none;
      background:
        linear-gradient(135deg, transparent 18%, rgba(0,174,234,.55) 19%, rgba(0,174,234,.55) 21%, transparent 22%),
        linear-gradient(25deg, transparent 36%, rgba(236,0,140,.42) 37%, rgba(236,0,140,.42) 39%, transparent 40%),
        linear-gradient(180deg, transparent, rgba(0,174,234,.12));
      border-bottom: 1px solid rgba(255,255,255,.16);
      border-left: 1px solid rgba(255,255,255,.10);
      border-radius: 0 0 0 12px;
    }

    .service-card.visual-social {
      --card-glow: rgba(112,80,255,.28);
      --card-accent: #8e5cff;
      background:
        radial-gradient(circle at 74% 18%, rgba(112,80,255,.25), transparent 32%),
        radial-gradient(circle at 20% 80%, rgba(236,0,140,.16), transparent 34%),
        linear-gradient(145deg, #0b0b19, #050509 74%);
    }

    .service-card.visual-branding {
      --card-glow: rgba(0,174,234,.22);
      --card-accent: var(--cyan);
      background:
        radial-gradient(circle at 78% 18%, rgba(0,174,234,.24), transparent 32%),
        radial-gradient(circle at 16% 76%, rgba(236,0,140,.16), transparent 34%),
        linear-gradient(145deg, #07101a, #050509 74%);
    }

    .service-visual {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      overflow: hidden;
      border-radius: inherit;
    }

    .service-visual::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: .22;
      background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: radial-gradient(circle at 68% 32%, black 0 36%, transparent 76%);
    }

    .social-nodes span {
      z-index: 8;
      backdrop-filter: blur(10px);
      position: absolute;
      width: 72px;
      height: 72px;
      border-radius: 22px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(142,92,255,.42);
      background: rgba(16,8,30,.62);
      box-shadow: 0 0 34px rgba(142,92,255,.24), inset 0 0 24px rgba(255,255,255,.06);
      color: rgba(255,255,255,.92);
      font-size: 24px;
      font-weight: 800;
      opacity: .96;
      animation: socialFloat 6s ease-in-out infinite alternate;
    }

    @keyframes socialFloat {
      from { transform: translateY(0px) scale(1); }
      to { transform: translateY(-12px) scale(1.04); }
    }

    .social-nodes span:nth-child(1) {
      right: 6%;
      top: 6%;
      background: linear-gradient(135deg,#fd5949,#d6249f,#285AEB);
    }

    .social-nodes span:nth-child(2) {
      right: 36%;
      top: 28%;
      width: 64px;
      height: 64px;
      color: white;
      background: #1877f2;
      animation-delay: .8s;
    }

    .social-nodes span:nth-child(3) {
      right: 10%;
      top: 48%;
      width: 60px;
      height: 60px;
      color: white;
      background: #000;
      animation-delay: 1.5s;
    }

    .social-nodes span:nth-child(4) {
      right: 28%;
      bottom: 14%;
      width: 62px;
      height: 62px;
      color: white;
      background: #0a66c2;
      animation-delay: 2s;
    }

    .social-phone {
      z-index: 6;
      position: absolute;
      left: 18%;
      top: 8%;
      width: 150px;
      height: 250px;
      border-radius: 38px;
      border: 1px solid rgba(255,255,255,.18);
      background:
        linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)),
        radial-gradient(circle at 50% 38%, rgba(236,0,140,.26), transparent 34%),
        #09090f;
      box-shadow: inset 0 0 34px rgba(255,255,255,.06), 0 0 52px rgba(142,92,255,.26);
      opacity: .98;
      transform: rotate(-8deg);
      overflow: hidden;
    }

    .social-phone::before {
      content: "";
      position: absolute;
      inset: 14px;
      border-radius: 28px;
      background:
        radial-gradient(circle at 50% 20%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(180deg, rgba(142,92,255,.18), rgba(0,174,234,.12));
    }

    .social-phone::after {
      content: "+12.4K";
      position: absolute;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%);
      color: rgba(255,255,255,.92);
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -.03em;
      text-shadow: 0 0 18px rgba(236,0,140,.34);
    }

    .social-lines {
      z-index: 2;
      position: absolute;
      right: 2%;
      top: 10%;
      width: 78%;
      height: 70%;
      opacity: .5;
      background:
        linear-gradient(24deg, transparent 49%, rgba(142,92,255,.66) 50%, transparent 51%),
        linear-gradient(-32deg, transparent 49%, rgba(236,0,140,.46) 50%, transparent 51%),
        linear-gradient(80deg, transparent 49%, rgba(0,174,234,.46) 50%, transparent 51%);
      filter: drop-shadow(0 0 22px rgba(142,92,255,.24));
    }

    .social-feed {
      position: absolute;
      left: 8%;
      top: 12%;
      width: 120px;
      display: grid;
      gap: 10px;
      z-index: 7;
      opacity: .92;
    }

    .social-feed span {
      position: relative;
      width: 100%;
      height: 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      border: none;
      box-shadow: none;
      animation: none;
    }

    .social-feed span:nth-child(2) { width: 82%; }
    .social-feed span:nth-child(3) { width: 60%; background: linear-gradient(90deg,var(--cyan),var(--pink)); }

    .brand-prism {
      z-index: 5;
      transform: perspective(900px) rotateY(-10deg) rotateX(8deg);
      position: absolute;
      right: 8%;
      top: 6%;
      width: 220px;
      height: 220px;
      opacity: 1;
      filter: drop-shadow(0 0 28px rgba(236,0,140,.22)) drop-shadow(0 0 38px rgba(255,242,0,.12));
    }

    .brand-prism::before {
      content: "N";
      position: absolute;
      inset: 36px;
      border-radius: 28px;
      background: rgba(8,8,12,.84);
      border: 1px solid rgba(255,255,255,.16);
      display: grid;
      place-items: center;
      font-size: 84px;
      font-weight: 800;
      color: rgba(255,255,255,.9);
      letter-spacing: -.08em;
      box-shadow: inset 0 0 24px rgba(255,255,255,.04);
    }

    .social-nodes span:nth-child(1) { right: 11%; top: 10%; }
    .social-nodes span:nth-child(2) { right: 35%; top: 36%; width: 58px; height: 58px; color: var(--pink); }
    .social-nodes span:nth-child(3) { right: 8%; top: 50%; width: 54px; height: 54px; color: var(--cyan); }
    .social-nodes span:nth-child(4) { right: 25%; bottom: 18%; width: 58px; height: 58px; color: var(--yellow); }

    .social-phone {
      z-index: 6;
      position: absolute;
      left: 24%;
      top: 10%;
      width: 126px;
      height: 205px;
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,.18);
      background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)), radial-gradient(circle at 50% 38%, rgba(236,0,140,.22), transparent 34%);
      box-shadow: inset 0 0 34px rgba(255,255,255,.06), 0 0 42px rgba(142,92,255,.20);
      opacity: .96;
      transform: rotate(-7deg);
    }

    .social-phone::before {
      content: "♥";
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: var(--pink);
      font-size: 42px;
      text-shadow: 0 0 26px rgba(236,0,140,.40);
    }

    .social-phone::after {
      content: "7.6K";
      position: absolute;
      left: 50%;
      bottom: 34px;
      transform: translateX(-50%);
      color: rgba(255,255,255,.82);
      font-size: 16px;
      font-weight: 800;
    }

    .social-lines {
      z-index: 2;
      position: absolute;
      right: 8%;
      top: 14%;
      width: 74%;
      height: 60%;
      opacity: .48;
      background:
        linear-gradient(28deg, transparent 49%, rgba(142,92,255,.62) 50%, transparent 51%),
        linear-gradient(-32deg, transparent 49%, rgba(236,0,140,.42) 50%, transparent 51%),
        linear-gradient(85deg, transparent 49%, rgba(0,174,234,.40) 50%, transparent 51%);
      filter: drop-shadow(0 0 18px rgba(142,92,255,.22));
    }

    .social-sparkline {
      z-index: 3;
      position: absolute;
      left: 11%;
      bottom: 16%;
      width: 78%;
      height: 96px;
      opacity: .64;
      background:
        linear-gradient(145deg, transparent 20%, rgba(142,92,255,.82) 21%, rgba(142,92,255,.82) 23%, transparent 24%),
        linear-gradient(28deg, transparent 41%, rgba(0,174,234,.58) 42%, rgba(0,174,234,.58) 44%, transparent 45%);
      border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .social-metric-card {
      z-index: 7;
      position: absolute;
      left: 8%;
      top: 10%;
      width: 118px;
      height: 76px;
      border-radius: 15px;
      border: 1px solid rgba(142,92,255,.26);
      background: rgba(9,4,24,.52);
      box-shadow: 0 0 28px rgba(142,92,255,.12), inset 0 0 22px rgba(255,255,255,.04);
      color: rgba(255,255,255,.9);
      display: grid;
      align-content: center;
      padding: 12px;
      opacity: .82;
    }

    .social-metric-card::before {
      content: "ENGAGEMENT";
      font-size: 7px;
      letter-spacing: .14em;
      color: rgba(255,255,255,.42);
      margin-bottom: 4px;
    }

    .social-metric-card::after {
      content: "6.72%";
      color: #d45cff;
      font-size: 20px;
      font-weight: 800;
    }

    .brand-prism {
      z-index: 6;
      transform: perspective(900px) rotateY(-12deg) rotateX(8deg);
      position: absolute;
      right: 12%;
      top: 10%;
      width: 205px;
      height: 205px;
      opacity: 1;
      filter: drop-shadow(0 0 24px rgba(236,0,140,.22)) drop-shadow(0 0 34px rgba(255,242,0,.12));
    }

    .brand-prism span {
      position: absolute;
      clip-path: polygon(50% 0%, 96% 76%, 50% 100%, 4% 76%);
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.16);
      background: linear-gradient(135deg, rgba(0,174,234,.34), rgba(236,0,140,.34), rgba(255,242,0,.24));
      box-shadow: inset 0 0 28px rgba(255,255,255,.10);
    }

    .brand-prism span:nth-child(1) {
      inset: 12px 52px 42px 18px;
      transform: rotate(-16deg);
    }

    .brand-prism span:nth-child(2) {
      inset: 42px 12px 12px 60px;
      transform: rotate(14deg);
      background: linear-gradient(135deg, rgba(236,0,140,.34), rgba(255,242,0,.34), rgba(0,174,234,.20));
    }

    .brand-prism span:nth-child(3) {
      width: 74px;
      height: 74px;
      right: 60px;
      top: 64px;
      border-radius: 50%;
      clip-path: none;
      background: radial-gradient(circle, rgba(255,242,0,.34), rgba(236,0,140,.18), rgba(255,255,255,.035));
    }

    .brand-strategy-card,
    .brand-typo-card,
    .brand-impact-card {
      z-index: 7;
    }

    .brand-strategy-card,
    .brand-typo-card,
    .brand-impact-card {
      position: absolute;
      border-radius: 15px;
      border: 1px solid rgba(236,0,140,.22);
      background: rgba(18,4,14,.42);
      box-shadow: 0 0 28px rgba(236,0,140,.11), inset 0 0 22px rgba(255,255,255,.035);
      backdrop-filter: blur(7px);
      opacity: .92;
    }

    .brand-strategy-card {
      left: 7%;
      top: 10%;
      width: 132px;
      height: 104px;
    }

    .brand-strategy-card::before {
      content: "BRAND STRATEGY";
      position: absolute;
      left: 14px;
      top: 13px;
      color: rgba(255,255,255,.68);
      font-size: 8px;
      letter-spacing: .12em;
    }

    .brand-strategy-card::after {
      content: "Purpose  ·  Positioning  ·  Voice";
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 16px;
      color: rgba(255,255,255,.46);
      font-size: 9px;
      line-height: 1.5;
    }

    .brand-typo-card {
      right: 6%;
      top: 9%;
      width: 112px;
      height: 112px;
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.78);
      font-size: 42px;
      font-weight: 800;
    }

    .brand-typo-card::before { content: "Aa"; }

    .brand-impact-card {
      right: 8%;
      bottom: 22%;
      width: 132px;
      height: 78px;
    }

    .brand-impact-card::before {
      content: "92%";
      position: absolute;
      left: 14px;
      top: 18px;
      color: rgba(255,255,255,.9);
      font-size: 24px;
      font-weight: 800;
    }

    .brand-impact-card::after {
      content: "BRAND IMPACT";
      position: absolute;
      left: 14px;
      bottom: 14px;
      color: rgba(255,255,255,.42);
      font-size: 7px;
      letter-spacing: .12em;
    }

    .brand-palette {
      position: absolute;
      left: 10%;
      top: 16%;
      display: flex;
      gap: 10px;
      opacity: .72;
    }

    .brand-palette span {
      width: 32px;
      height: 94px;
      border-radius: 999px;
      box-shadow: 0 0 24px rgba(255,255,255,.08);
    }

    .brand-palette span:nth-child(1) { background: var(--cyan); }
    .brand-palette span:nth-child(2) { background: var(--pink); height: 72px; }
    .brand-palette span:nth-child(3) { background: var(--yellow); height: 54px; }

    .brand-type-lines {
      position: absolute;
      left: 10%;
      bottom: 20%;
      width: 46%;
      display: grid;
      gap: 10px;
      opacity: .42;
    }

    .brand-type-lines span {
      height: 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.22);
    }

    .brand-type-lines span:nth-child(2) { width: 74%; }
    .brand-type-lines span:nth-child(3) { width: 52%; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow)); opacity: .86; }

    .digital-marketing-card::before {
      background:
        linear-gradient(180deg, rgba(3,3,3,.08) 0%, rgba(3,3,3,.38) 42%, rgba(3,3,3,.92) 100%),
        linear-gradient(90deg, rgba(3,3,3,.82) 0%, rgba(3,3,3,.42) 54%, rgba(3,3,3,.18) 100%),
        radial-gradient(circle at 82% 20%, rgba(255,242,0,.10), transparent 28%),
        radial-gradient(circle at 34% 22%, rgba(0,174,234,.14), transparent 34%);
      backdrop-filter: none;
    }

    .digital-marketing-card .service-icon,
    .digital-marketing-card h3,
    .digital-marketing-card p,
    .digital-marketing-card .service-link {
      text-shadow: 0 2px 18px rgba(0,0,0,.72);
    }

    .digital-marketing-card::after {
      z-index: 5;
    }

    .digital-marketing-card:hover {
      filter: grayscale(0) saturate(1.05) brightness(.88);
    }

    .service-icon {
      width: 76px;
      height: 76px;
      border-radius: 24px;
      display: grid;
      place-items: center;
      font-size: 34px;
      background: rgba(3,3,3,.36);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(8px);
      position: relative;
      z-index: 2;
      box-shadow: 0 18px 50px rgba(0,0,0,.26);
    }

    .service-card-content {
      position: absolute !important;
      left: 30px;
      right: 30px;
      bottom: 30px;
      z-index: 12;
      min-height: 150px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    .service-card h3 {
      position: relative;
      z-index: 12;
      font-size: clamp(26px, 2.4vw, 38px);
      line-height: 1;
      margin-bottom: 14px;
      min-height: 38px;
      display: flex;
      align-items: flex-end;
    }

    .service-card p {
      position: relative;
      z-index: 12;
      color: rgba(247,244,242,.76);
      max-width: 92%;
    }

    .service-link {
      margin-top: 18px;
      display: inline-flex;
      color: var(--white);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .15em;
      position: relative;
      z-index: 3;
    }

    .service-modal-grid {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 22px;
      margin-top: 26px;
      align-items: stretch;
    }

    .service-image-stack {
      display: grid;
      gap: 12px;
    }

    .service-image {
      min-height: 130px;
      border-radius: 22px;
      border: 1px solid rgba(255,255,255,.13);
      background:
        linear-gradient(135deg, rgba(236,0,140,.22), rgba(0,174,234,.15)),
        rgba(255,255,255,.06);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 13px;
      text-align: center;
      padding: 18px;
    }

    .service-textboxes {
      display: grid;
      gap: 12px;
    }

    .service-textbox {
      border-radius: 22px;
      border: 1px solid rgba(255,255,255,.13);
      background: rgba(255,255,255,.045);
      padding: 20px;
    }

    .service-textbox strong {
      display: block;
      margin-bottom: 8px;
    }

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-top: 30px;
    }

    .portfolio-card {
      --portfolio-art: none;
      min-height: 320px;
      border: 1px solid var(--line);
      border-radius: 30px;
      padding: 24px;
      background:
        linear-gradient(135deg, rgba(0,174,234,.12), rgba(236,0,140,.10), rgba(255,242,0,.045)),
        #07070a;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: .35s ease;
    }

    .portfolio-card:hover {
      transform: translateY(-8px) scale(1.012);
      border-color: rgba(255,255,255,.24);
      box-shadow: 0 24px 80px rgba(0,0,0,.35);
    }

    .portfolio-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-image:
        linear-gradient(180deg, rgba(3,3,3,.04) 0%, rgba(3,3,3,.10) 42%, rgba(3,3,3,.78) 76%, rgba(3,3,3,.98) 100%),
        var(--portfolio-art),
        radial-gradient(circle at 70% 22%, rgba(0,174,234,.12), transparent 34%);
      background-size: 100% 100%, cover, auto;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 1;
      pointer-events: none;
      filter: grayscale(1) brightness(.78) contrast(1.05);
      transition: filter .38s ease, transform .45s ease, opacity .38s ease;
      z-index: 0;
    }

    .portfolio-card:hover::before {
      filter: grayscale(0) brightness(1) contrast(1.02);
      transform: scale(1.035);
    }

    .portfolio-card::after {
      z-index: 10;
    }

    .portfolio-card:nth-child(1) { --portfolio-art: none; }
    .portfolio-card:nth-child(2) { --portfolio-art: none; }
    .portfolio-card:nth-child(3) { --portfolio-art: none; }
    .portfolio-card:nth-child(4) { --portfolio-art: none; }

    .portfolio-card h3,
    .portfolio-card p {
      position: relative;
      z-index: 12;
      text-shadow: 0 3px 20px rgba(0,0,0,.9);
    }

    .portfolio-card h3 {
      font-size: 24px;
      line-height: 1;
      min-height: 48px;
      display: flex;
      align-items: flex-end;
      margin-bottom: 8px;
    }

    .portfolio-card p {
      font-size: 12px;
      line-height: 1.45;
      min-height: 52px;
      max-width: 92%;
    }

    .brand-strip {
      margin-top: 38px;
      border: 1px solid var(--line);
      border-radius: 26px;
      background: rgba(255,255,255,.045);
      overflow: hidden;
      padding: 18px 0;
      position: relative;
    }

    .brand-strip::before,
    .brand-strip::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 120px;
      z-index: 2;
      pointer-events: none;
    }

    .brand-strip::before {
      left: 0;
      background: linear-gradient(90deg, #07070a, transparent);
    }

    .brand-strip::after {
      right: 0;
      background: linear-gradient(270deg, #07070a, transparent);
    }

    .brand-strip-head {
      padding: 0 54px 14px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: end;
      position: relative;
      z-index: 5;
    }

    .brand-strip-head h3 {
      font-size: clamp(20px, 2.2vw, 30px);
      line-height: .95;
      letter-spacing: -.055em;
      max-width: 520px;
    }

    .brand-strip-head p {
      max-width: 320px;
      font-size: 12px;
      line-height: 1.4;
    }


    .logo-marquee {
      overflow: hidden;
      width: 100%;
    }

    .logo-track {
      display: flex;
      gap: 16px;
      width: max-content;
      animation: logoScroll 34s linear infinite;
      padding: 8px 16px 10px;
    }

    .brand-strip:hover .logo-track {
      animation-play-state: paused;
    }

    .brand-logo {
      position: relative;
      width: 124px;
      height: 58px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.055);
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.76);
      font-weight: 800;
      letter-spacing: -.03em;
      font-size: 14px;
      flex: 0 0 auto;
      filter: grayscale(1);
      opacity: .72;
      transition: .25s ease;
      position: relative;
      overflow: visible;
    }


    .brand-logo img {
      max-width: 86%;
      max-height: 58%;
      object-fit: contain;
      display: block;
      filter: inherit;
    }

    /* Brand underline removed */

    .brand-logo:hover {
      filter: grayscale(0);
      opacity: 1;
      transform: translateY(-2px);
      border-color: rgba(255,255,255,.26);
    }

    @keyframes logoScroll {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    .contact-card {
      max-width: 880px;
      margin: 0 auto;
      padding: clamp(18px, 3.5vw, 40px);
    }

    .contact-card h2,
    .contact-card > p {
      text-align: center;
    }

    .contact-card h2 {
      margin-bottom: 14px;
    }

    .contact-card > p {
      margin-top: 8px;
    }

        .contact-card .eyebrow {
      display: flex;
      justify-content: center;
      align-items: center;
      width: fit-content;
      margin: 0 auto 34px;
      left: auto;
      transform: none;
      text-align: center;
    }

    .contact-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 18px;
    }

    .contact-form label {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .14em;
    }

    .contact-form label.full {
      grid-column: 1 / -1;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(255,255,255,.055);
      color: var(--white);
      border-radius: 18px;
      padding: 13px 14px;
      font: inherit;
      outline: none;
    }

    .contact-form textarea {
      min-height: 92px;
      resize: vertical;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: rgba(255,255,255,.34);
      box-shadow: 0 0 0 4px rgba(236,0,140,.09);
    }

    .submit-btn {
      position: relative;
      overflow: hidden;
      grid-column: 1 / -1;
      justify-self: center;
      margin-top: 4px;
      background: var(--white);
      color: #050505;
      border: 1px solid var(--white);
      border-radius: 999px;
      padding: 12px 22px;
      font-weight: 800;
      cursor: pointer;
      transition: .25s ease;
    }

    .submit-btn:hover {
      transform: translateY(-2px);
    }

    .form-note {
      text-align: center;
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted);
    }

    dialog {
      width: min(960px, calc(100% - 28px));
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 34px;
      padding: 0;
      background: #07070a;
      color: var(--white);
      box-shadow: 0 40px 120px rgba(0,0,0,.8);
      margin: auto;
      opacity: 0;
      transform: translateY(24px) scale(.97);
      transition: opacity .25s ease, transform .25s ease;
    }

    dialog[open] {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    dialog::backdrop {
      background: rgba(0,0,0,.76);
      backdrop-filter: blur(10px);
    }

    .modal-inner { padding: 34px; animation: modalContentIn .35s ease both; }

    @keyframes modalContentIn {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .modal-top {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 24px;
    }

    .close-btn {
      position: relative;
      overflow: hidden;
      background: rgba(255,255,255,.08);
      color: var(--white);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 14px;
      cursor: pointer;
      transition: .25s ease;
    }

    .close-btn:hover {
      border-color: rgba(255,255,255,.24);
    }

    .thumb-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 22px;
    }

    .thumb {
      aspect-ratio: 1.25 / 1;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.13);
      background:
        linear-gradient(135deg, rgba(236,0,140,.22), rgba(0,174,234,.15)),
        rgba(255,255,255,.06);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 13px;
    }

    .footer {
      position: relative;
      padding: 34px 24px 22px;
      color: var(--muted);
      border-top: 1px solid rgba(255,255,255,.08);
      background:
        radial-gradient(circle at 12% 0%, rgba(236,0,140,.08), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(0,174,234,.08), transparent 30%),
        rgba(3,3,3,.72);
      overflow: hidden;
    }

    .footer::before {
      content: "";
      position: absolute;
      inset: 0 24px auto;
      height: 1px;
      max-width: var(--max);
      margin: 0 auto;
      background: linear-gradient(90deg, transparent, rgba(0,174,234,.34), rgba(236,0,140,.34), rgba(255,242,0,.22), transparent);
      opacity: .55;
      pointer-events: none;
    }

    .footer-inner {
      position: relative;
      z-index: 1;
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.1fr auto .9fr;
      align-items: center;
      gap: 28px;
      font-size: 13px;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .footer-mark {
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.12);
      background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(255,255,255,.04);
      color: var(--white);
      text-decoration: none;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -.06em;
      box-shadow: 0 12px 34px rgba(0,0,0,.28);
    }

    .footer-brand strong {
      display: block;
      color: var(--white);
      font-size: 14px;
      letter-spacing: -.02em;
      margin-bottom: 4px;
    }

    .footer-brand p,
    .footer-bottom p {
      margin: 0;
      color: rgba(247,244,242,.58);
      line-height: 1.45;
    }

    .footer-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .footer-nav a,
    .footer-socials a {
      color: rgba(247,244,242,.68);
      text-decoration: none;
      transition: color .18s ease, opacity .18s ease;
    }

    .footer-nav a:hover,
    .footer-socials a:hover {
      color: var(--white);
    }

    .footer-connect {
      display: grid;
      justify-items: end;
      gap: 7px;
      text-align: right;
    }

    .footer-connect span {
      color: rgba(247,244,242,.46);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .18em;
    }

    .footer-socials {
      display: flex;
      justify-content: flex-end;
      gap: 14px;
      flex-wrap: wrap;
    }

    .footer-bottom {
      position: relative;
      z-index: 1;
      max-width: var(--max);
      margin: 22px auto 0;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,.06);
      font-size: 12px;
      text-align: center;
    }
    @media (prefers-reduced-motion: no-preference) {
      .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 35%;
      }

      .service-card:nth-child(2),
      .portfolio-card:nth-child(2),
      .info-pill:nth-child(2) { transition-delay: .04s; }

      .service-card:nth-child(3),
      .portfolio-card:nth-child(3),
      .info-pill:nth-child(3) { transition-delay: .08s; }

      .portfolio-card:nth-child(4),
      .info-pill:nth-child(4) { transition-delay: .12s; }

      @keyframes reveal {
        from { opacity: 0; transform: translateY(60px) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
      }
    }

    @media (max-width: 980px) {
      .about-display {
        scroll-margin-top: 110px;
      }

      .topbar-inner {
        padding: 12px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
      }

      .brand-left {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
      }

      .social-connect {
        margin-left: 0;
        gap: 8px;
      }

      .social-connect > span {
        display: none;
      }

      .desktop-contact-pill {
        display: none;
      }

      .mobile-contact-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        padding: 10px 14px;
        border-radius: 999px;
        color: var(--white);
        background: rgba(255,255,255,.045);
        font-size: 10px;
        letter-spacing: .12em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .social-icons {
        gap: 7px;
      }

      .social-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
      }

      .social-icon svg {
        width: 19px;
        height: 19px;
      }

      .menu {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        padding-top: 4px;
        font-size: 10px;
        letter-spacing: .12em;
      }

      .menu a {
        padding: 8px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.045);
        border: 1px solid rgba(255,255,255,.08);
      }

      .about-grid, .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
      .portfolio-card { min-height: 240px; }
      .info-list, .thumb-grid, .service-modal-grid { grid-template-columns: 1fr; }
      .contact-form { grid-template-columns: 1fr; }
      section { padding: 92px 20px; }
      .mini-logo { height: 32px; }
    }

    @media (max-width: 560px) {
      #portfolio {
        min-height: auto;
        padding-left: 18px;
        padding-right: 18px;
      }

      #portfolio .container {
        width: 100%;
        max-width: 100%;
        overflow: visible;
      }

      #portfolio .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 34px;
        width: 100%;
      }

      #portfolio .portfolio-card {
        width: 100%;
        min-height: 210px;
        border-radius: 24px;
        padding: 22px;
      }

      #portfolio .portfolio-card::before {
        inset: 0;
        border-radius: inherit;
        background-image:
          linear-gradient(180deg, rgba(3,3,3,.05) 0%, rgba(3,3,3,.20) 44%, rgba(3,3,3,.84) 78%, rgba(3,3,3,.98) 100%),
          var(--portfolio-art);
        background-size: 100% 100%, cover;
        background-position: center center;
        background-repeat: no-repeat;
        transform: none;
        rotate: 0deg;
        filter: grayscale(1) brightness(.82) contrast(1.04);
      }

      #portfolio .brand-strip {
        width: 100%;
        margin-top: 42px;
        border-radius: 24px;
      }

      #portfolio .brand-strip-head {
        display: grid;
        gap: 12px;
        padding: 0 28px 22px;
      }

      #portfolio .brand-strip-head p {
        max-width: none;
      }

      #portfolio .brand-strip::before,
      #portfolio .brand-strip::after {
        width: 48px;
      }

.topbar-inner {
        padding: 10px 14px;
      }

      .mini-logo {
        height: 28px;
        max-width: 145px;
        object-fit: contain;
      }

      .social-icon {
        width: 31px;
        height: 31px;
        border-radius: 10px;
      }

      .social-icon svg {
        width: 17px;
        height: 17px;
      }

      .hero-logo { width: 92vw; }
      .info-list, .thumb-grid { grid-template-columns: 1fr; }
      .photo-card { min-height: 380px; }
      .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }

      .footer-brand {
        justify-content: center;
        text-align: left;
      }

      .footer-connect {
        justify-items: center;
        text-align: center;
      }

      .footer-socials { justify-content: center; }
    }

    /* Strong mobile override for portfolio section */
    @media (max-width: 640px) {
      section#portfolio {
        display: block;
        min-height: auto;
        padding: 92px 16px 72px;
        overflow: visible;
      }

      section#portfolio .container {
        width: 100%;
        max-width: 100%;
        overflow: visible;
      }

      section#portfolio .portfolio-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100%;
        margin-top: 34px;
      }

      section#portfolio .portfolio-card {
        width: 100%;
        max-width: 100%;
        min-height: 220px;
        padding: 22px;
        border-radius: 24px;
      }

      section#portfolio .portfolio-card h3 {
        font-size: 25px;
      }

      section#portfolio .portfolio-card p {
        font-size: 13px;
      }

      section#portfolio .portfolio-card::before {
        inset: 0;
        border-radius: inherit;
        background-image:
          linear-gradient(180deg, rgba(3,3,3,.05) 0%, rgba(3,3,3,.20) 44%, rgba(3,3,3,.84) 78%, rgba(3,3,3,.98) 100%),
          var(--portfolio-art) !important;
        background-size: 100% 100%, cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        transform: none !important;
        rotate: 0deg !important;
        filter: grayscale(1) brightness(.82) contrast(1.04);
      }

      section#portfolio .brand-strip {
        width: 100%;
        max-width: 100%;
        margin-top: 44px;
        border-radius: 24px;
        overflow: hidden;
      }

      section#portfolio .brand-strip-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 28px 22px;
      }

      section#portfolio .brand-strip-head h3 {
        font-size: 28px;
      }

      section#portfolio .brand-strip-head p {
        max-width: none;
        font-size: 13px;
      }

      section#portfolio .brand-strip::before,
      section#portfolio .brand-strip::after {
        width: 44px;
      }

      dialog {
        width: calc(100vw - 22px);
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        border-radius: 24px;
      }

      .modal-inner {
        padding: 22px;
      }

      .modal-top {
        display: grid;
        gap: 16px;
      }

      .thumb-grid {
        grid-template-columns: 1fr;
      }
    }

    .floating-pixels {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 2;
      opacity: .24;
      mix-blend-mode: screen;
    }

    .floating-pixels i {
      position: absolute;
      width: 11px;
      height: 11px;
      background: var(--cyan);
      animation: softPixelFloat 14s ease-in-out infinite alternate;
      filter: drop-shadow(0 0 10px rgba(255,255,255,.10));
      box-shadow: 0 0 10px currentColor;
    }

    .floating-pixels i:nth-child(2n) { background: var(--pink); width: 9px; height: 9px; }
    .floating-pixels i:nth-child(3n) { background: var(--yellow); width: 13px; height: 13px; }
    .floating-pixels i:nth-child(4n) { width: 7px; height: 7px; opacity: .72; }
    .floating-pixels i:nth-child(5n) { width: 16px; height: 16px; opacity: .45; filter: blur(.3px) drop-shadow(0 0 14px rgba(236,0,140,.22)); }

    .floating-pixels i:nth-child(1) { left: 8%; top: 18%; animation-delay: .2s; }
    .floating-pixels i:nth-child(2) { left: 18%; top: 72%; animation-delay: 1s; }
    .floating-pixels i:nth-child(3) { left: 42%; top: 14%; animation-delay: 2s; }
    .floating-pixels i:nth-child(4) { right: 16%; top: 31%; animation-delay: .6s; }
    .floating-pixels i:nth-child(5) { right: 9%; bottom: 14%; animation-delay: 1.8s; }
    .floating-pixels i:nth-child(6) { left: 58%; bottom: 10%; animation-delay: .3s; }
    .floating-pixels i:nth-child(7) { left: 28%; top: 46%; animation-delay: 2.4s; }
    .floating-pixels i:nth-child(8) { right: 34%; top: 68%; animation-delay: 1.4s; }
    .floating-pixels i:nth-child(9) { left: 6%; top: 42%; animation-delay: 3.1s; }
    .floating-pixels i:nth-child(10) { left: 14%; bottom: 8%; animation-delay: 2.6s; }
    .floating-pixels i:nth-child(11) { left: 36%; top: 83%; animation-delay: 1.9s; }
    .floating-pixels i:nth-child(12) { left: 51%; top: 36%; animation-delay: 3.4s; }
    .floating-pixels i:nth-child(13) { right: 43%; top: 9%; animation-delay: .9s; }
    .floating-pixels i:nth-child(14) { right: 24%; top: 52%; animation-delay: 2.9s; }
    .floating-pixels i:nth-child(15) { right: 8%; top: 76%; animation-delay: 4.2s; }
    .floating-pixels i:nth-child(16) { left: 72%; bottom: 24%; animation-delay: 3.8s; }
    .floating-pixels i:nth-child(17) { left: 22%; top: 8%; animation-delay: 4.7s; }
    .floating-pixels i:nth-child(18) { right: 18%; bottom: 42%; animation-delay: 5.1s; }
    .floating-pixels i:nth-child(19) { left: 64%; top: 58%; animation-delay: 4.4s; }
    .floating-pixels i:nth-child(20) { right: 48%; bottom: 5%; animation-delay: 5.7s; }

    @keyframes softPixelFloat {
      from { transform: translate3d(0,0,0) rotate(0deg); opacity: .14; }
      to { transform: translate3d(28px,-34px,0) rotate(14deg); opacity: .42; }
    }

    /* Premium polish layer: cursor glow, glass depth, hover lighting, micro text motion */
    body.has-custom-cursor {
      cursor: auto;
    }

    body.has-custom-cursor a,
    body.has-custom-cursor button,
    body.has-custom-cursor [onclick],
    body.has-custom-cursor .info-pill,
    body.has-custom-cursor .service-card,
    body.has-custom-cursor .portfolio-card,
    body.has-custom-cursor .brand-logo,
    body.has-custom-cursor .scroll-enter,
    body.has-custom-cursor .social-icon {
      cursor: pointer;
    }

    body.has-custom-cursor input,
    body.has-custom-cursor textarea {
      cursor: text;
    }

    .cursor-glow {
      position: fixed;
      left: 0;
      top: 0;
      width: 74px;
      height: 74px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      opacity: 0;
      transform: translate3d(-50%, -50%, 0) scale(.75);
      background:
        radial-gradient(circle at 38% 40%, rgba(0,174,234,.52), transparent 7%),
        radial-gradient(circle at 62% 40%, rgba(236,0,140,.50), transparent 7%),
        radial-gradient(circle at 50% 62%, rgba(255,242,0,.40), transparent 8%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.05), transparent 6%);
      filter: blur(5px) saturate(1.7);
      mix-blend-mode: screen;
      transition: opacity .25s ease, transform .25s ease;
    }

    .cursor-glow.active {
      opacity: 0;
      transform: translate3d(-50%, -50%, 0) scale(.82);
    }

        .cursor-glow.hovering {
      opacity: .92;
      transform: translate3d(-50%, -50%, 0) scale(1.06);
    }

    .glass-card,
    .photo-card,
    .service-card,
    .portfolio-card,
    .brand-strip,
    .contact-card,
    .info-pill,
    .brand-logo,
    .team-caption,
    .about-mini-text,
    .service-textbox,
    .thumb,
    .service-image {
      position: relative;
      isolation: isolate;
    }

    .service-card::after,
    .portfolio-card::after,
    .info-pill::before,
    .team-btn::after,
    .submit-btn::after,
    .close-btn::after,
    .social-icon::after,
    .brand-logo::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      pointer-events: none;
      z-index: 4;
      background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
      opacity: 0;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      transition: opacity .25s ease;
    }

    .service-card:hover::after,
    .portfolio-card:hover::after,
    .info-pill:hover::before,
    .info-pill.active::before,
    .team-btn:hover::after,
    .team-btn.active::after,
    .submit-btn:hover::after,
    .close-btn:hover::after,
    .social-icon:hover::after,
    .brand-logo:hover::after {
      opacity: 1;
    }

    .glass-card,
    .contact-card {
      background:
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        rgba(255,255,255,.052);
      box-shadow:
        0 34px 110px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.08);
    }

    .photo-card,
    .service-card,
    .portfolio-card,
    .brand-strip {
      box-shadow:
        0 28px 90px rgba(0,0,0,.26),
        inset 0 1px 0 rgba(255,255,255,.06);
    }

    .service-card,
    .portfolio-card,
    .info-pill,
    .brand-logo {
      transform-style: preserve-3d;
    }

    .service-card > *,
    .portfolio-card > *,
    .info-pill > *,
    .brand-logo > * {
      position: relative;
      z-index: 3;
    }

    .micro-reveal {
      opacity: 0;
      transform: translateY(18px);
      filter: blur(8px);
      transition:
        opacity .72s ease,
        transform .72s cubic-bezier(.2,.85,.2,1),
        filter .72s ease;
      transition-delay: var(--micro-delay, 0ms);
    }

    .micro-reveal.in-view {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }

    /* Upload-ready service card artwork placeholders */
    .digital-marketing-card,
    .visual-social,
    .visual-branding {
      background-image:
        linear-gradient(180deg, rgba(3,3,3,.04) 0%, rgba(3,3,3,.14) 42%, rgba(3,3,3,.82) 74%, rgba(3,3,3,.98) 100%),
        var(--service-art, none) !important;
      background-size: 100% 100%, cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      filter: saturate(1.02) brightness(.94) !important;
    }

    .digital-marketing-card {
      --service-art: none;
    }

    .visual-social {
      --service-art: none;
    }

    .visual-branding {
      --service-art: none;
    }

    .service-card::before {
      background:
        linear-gradient(180deg, rgba(3,3,3,.02) 0%, rgba(3,3,3,.10) 42%, rgba(3,3,3,.74) 72%, rgba(3,3,3,.96) 100%),
        radial-gradient(circle at 50% 12%, rgba(255,255,255,.06), transparent 34%) !important;
      opacity: 1 !important;
      z-index: 2 !important;
    }

    .service-card::after {
      z-index: 14 !important;
    }

    .service-card-content {
      position: absolute !important;
      left: 30px !important;
      right: 30px !important;
      bottom: 20px !important;
      z-index: 15 !important;
      height: 172px !important;
      min-height: 172px !important;
      max-height: 172px !important;
      display: grid !important;
      grid-template-rows: 42px auto 24px !important;
      align-content: start !important;
      gap: 10px !important;
      background: linear-gradient(180deg, transparent, rgba(3,3,3,.46));
      margin-left: -30px;
      margin-right: -30px;
      margin-bottom: -20px;
      padding: 0 30px 24px;
    }

    .service-card h3 {
      margin: 0 !important;
      min-height: 42px !important;
      height: 42px !important;
      display: flex !important;
      align-items: flex-end !important;
      white-space: nowrap;
    }

    .service-card p {
      margin: 0 !important;
      min-height: 64px !important;
      height: auto !important;
      overflow: visible;
    }

    .service-link {
      margin-top: 0 !important;
      align-self: end;
      padding-bottom: 2px;
    }

    .service-card h3,
    .service-card p,
    .service-link {
      text-shadow: 0 3px 22px rgba(0,0,0,.9);
    }

    .digital-marketing-card > .service-tech-overlay,
    .digital-marketing-card > .digital-dashboard,
    .digital-marketing-card > .grid-overlay,
    .digital-marketing-card > .scan-line,
    .digital-marketing-card > .floating-ui,
    .digital-marketing-card > .data-overlay,
    .digital-marketing-card > .chart-bars,
    .digital-marketing-card > .hud-ring,
    .digital-marketing-card > .chart-line,
    .digital-marketing-card > .metric-stack,
    .digital-marketing-card > .mini-graph,
    .visual-social > .service-tech-overlay,
    .visual-social > .service-visual,
    .visual-branding > .service-tech-overlay,
    .visual-branding > .service-visual {
      display: none !important;
    }

    .service-card:hover {
      filter: saturate(1.14) brightness(1) !important;
    }

    /* Force coded service artwork to remain visible as background layers */
    .service-card > .service-tech-overlay,
    .service-card > .service-visual,
    .service-card > .digital-dashboard,
    .service-card > .grid-overlay,
    .service-card > .scan-line,
    .service-card > .floating-ui,
    .service-card > .data-overlay,
    .service-card > .chart-bars,
    .service-card > .hud-ring,
    .service-card > .chart-line,
    .service-card > .metric-stack,
    .service-card > .mini-graph {
      position: absolute !important;
      pointer-events: none;
    }

    .service-card > .service-tech-overlay { inset: 0; z-index: 1; }
    .service-card > .service-visual { inset: 0; z-index: 5; opacity: 1; }
    .service-card > .digital-dashboard { z-index: 5; }
    .service-card > .grid-overlay,
    .service-card > .scan-line,
    .service-card > .floating-ui,
    .service-card > .data-overlay { inset: 0; z-index: 4; }
    .service-card > .chart-bars,
    .service-card > .hud-ring,
    .service-card > .chart-line,
    .service-card > .metric-stack,
    .service-card > .mini-graph { z-index: 6; }

    .service-card > .service-icon,
    .service-card > .service-card-content {
      z-index: 12;
    }

    .visual-social .service-visual,
    .visual-branding .service-visual {
      opacity: 1 !important;
      mix-blend-mode: screen;
    }

    .visual-social .service-tech-overlay::before,
    .visual-branding .service-tech-overlay::before {
      opacity: .72;
    }

    @media (max-width: 980px), (pointer: coarse), (prefers-reduced-motion: reduce) {
      body.has-custom-cursor,
      body.has-custom-cursor a,
      body.has-custom-cursor button,
      body.has-custom-cursor input,
      body.has-custom-cursor textarea {
        cursor: auto;
      }

      .cursor-glow { display: none; }

      .micro-reveal {
        opacity: 1;
        transform: none;
        filter: none;
      }
    }

    /* Final polish pass: button physics, portfolio reveal, ambient breathing, mobile luxury */
    :root {
      --ambient-pulse: 1;
    }

    body::after {
      content: "";
      position: fixed;
      inset: -10%;
      pointer-events: none;
      z-index: -4;
      opacity: calc(.28 * var(--ambient-pulse));
      background:
        radial-gradient(circle at 28% 22%, rgba(0,174,234,.10), transparent 28%),
        radial-gradient(circle at 76% 68%, rgba(236,0,140,.10), transparent 30%),
        radial-gradient(circle at 52% 86%, rgba(255,242,0,.045), transparent 24%);
      filter: blur(8px);
      animation: ambientBreath 8.5s ease-in-out infinite alternate;
    }

    @keyframes ambientBreath {
      from { transform: scale(1) translate3d(0,0,0); opacity: .18; }
      to { transform: scale(1.045) translate3d(10px,-8px,0); opacity: .34; }
    }

    a,
    button,
    .info-pill,
    .service-card,
    .portfolio-card,
    .brand-logo,
    .social-icon,
    .submit-btn,
    .close-btn,
    .team-btn {
      transition-timing-function: cubic-bezier(.2,.85,.2,1) !important;
    }

    button:active,
    .info-pill:active,
    .service-card:active,
    .portfolio-card:active,
    .brand-logo:active,
    .social-icon:active,
    .submit-btn:active,
    .close-btn:active,
    .team-btn:active {
      transform: translateY(1px) scale(.985) !important;
    }

    .menu a:active,
    .scroll-enter:active {
      transform: translateY(1px) scale(.98);
    }


    .portfolio-card h3,
    .portfolio-card p {
      transition: transform .38s cubic-bezier(.2,.85,.2,1), opacity .38s ease;
    }

    .portfolio-card:hover h3,
    .portfolio-card:hover p {
      transform: translateY(-3px);
    }

    .portfolio-card.is-revealed::before {
      animation: portfolioSharpen .72s cubic-bezier(.2,.85,.2,1) both;
    }

    @keyframes portfolioSharpen {
      from { filter: grayscale(1) brightness(.55) blur(5px); transform: scale(1.065); }
      to { filter: grayscale(1) brightness(.78) contrast(1.05) blur(0); transform: scale(1); }
    }

    .floating-pixels i {
      animation-duration: calc(13s + (var(--ambient-pulse) * 2s));
    }

    @media (max-width: 980px) {
      body::before,
      body::after {
        transform: none !important;
        transition: none !important;
      }

      .service-card,
      .portfolio-card,
      .glass-card,
      .photo-card,
      .contact-card {
        box-shadow: 0 22px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
      }

      .service-card:hover,
      .portfolio-card:hover,
      .info-pill:hover,
      .brand-logo:hover,
      .social-icon:hover {
        transform: none !important;
      }

      .service-card:active,
      .portfolio-card:active,
      .info-pill:active,
      .brand-logo:active,
      .social-icon:active,
      .submit-btn:active,
      .close-btn:active,
      .team-btn:active {
        transform: scale(.985) !important;
      }

      .service-card-content {
        height: auto !important;
        min-height: 150px !important;
        max-height: none !important;
      }

      .contact-form input,
      .contact-form textarea,
      .submit-btn,
      .team-btn,
      .info-pill,
      .close-btn {
        min-height: 46px;
      }
    }

    @media (max-width: 560px) {
      .menu {
        row-gap: 8px;
      }

      .menu a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
      }

      .service-card {
        min-height: 380px;
      }

      .portfolio-card p {
        min-height: auto;
      }
    }


    /* WordPress logo compatibility */
    .custom-logo {
      height: 38px;
      width: auto;
      display: block;
    }

    @media (max-width: 980px) {
      .custom-logo {
        height: 32px;
      }
    }

    @media (max-width: 560px) {
      .custom-logo {
        height: 28px;
        max-width: 145px;
        object-fit: contain;
      }
    }

    /* Service ACF image rendering */
    .service-card.digital-marketing-card,
    .service-card.visual-social,
    .service-card.visual-branding {
      background-image:
        linear-gradient(180deg, rgba(3,3,3,.04) 0%, rgba(3,3,3,.14) 42%, rgba(3,3,3,.82) 74%, rgba(3,3,3,.98) 100%),
        var(--service-art) !important;
      background-size: 100% 100%, cover !important;
      background-position: center, center !important;
      background-repeat: no-repeat, no-repeat !important;
    }


    /* Brand logo hover cleanup */
    .brand-logo::before {
      display: none !important;
      content: none !important;
    }

    /* About image field rendering */
    img.photo-placeholder,
    img.diploma-preview,
    img.about-mini-photo,
    img.team-photo {
      object-fit: cover;
      display: block;
    }

    img.about-mini-photo {
      padding: 0;
    }

    img.diploma-preview {
      padding: 0;
      border-style: solid;
    }


/* =========================================================
   FINAL PRODUCTION OVERRIDES
   These preserve the approved visual state while keeping
   WordPress/ACF rendering predictable across templates.
   ========================================================= */

/* Global background and visual layer cleanup */
body::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(236,0,140,.16), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(0,174,234,.13), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(255,242,0,.07), transparent 30%) !important;
  background-size: auto !important;
}

.service-card::before,
.portfolio-card::before,
.service-card .service-tech-overlay::before,
.service-visual::before {
  background-image: none;
}

.service-card::before {
  background:
    linear-gradient(180deg, rgba(3,3,3,.02) 0%, rgba(3,3,3,.10) 42%, rgba(3,3,3,.74) 72%, rgba(3,3,3,.96) 100%),
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.06), transparent 34%) !important;
}

.portfolio-card::before {
  background-image:
    linear-gradient(180deg, rgba(3,3,3,.04) 0%, rgba(3,3,3,.10) 42%, rgba(3,3,3,.78) 76%, rgba(3,3,3,.98) 100%),
    var(--portfolio-art),
    radial-gradient(circle at 70% 22%, rgba(0,174,234,.12), transparent 34%) !important;
  background-size: 100% 100%, cover, auto !important;
}

/* About/Team image sizing */
.portrait-wrapper .photo-placeholder,
.portrait-wrapper img.photo-placeholder {
  width: min(70%, 270px) !important;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 28px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.portrait-wrapper img.photo-placeholder {
  border: 1px solid rgba(255,255,255,.18) !important;
}

.team-member .team-photo,
.team-member img.team-photo {
  width: 102px !important;
  aspect-ratio: 3 / 4 !important;
  height: 136px !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.about-detail-row .about-mini-photo,
.about-detail-row img.about-mini-photo {
  width: 72px !important;
  aspect-ratio: 1 / 1 !important;
  height: 72px !important;
  border-radius: 13px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

.diploma-preview,
img.diploma-preview {
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Modal image sizing */
.service-image-stack {
  width: 100%;
}

.service-image,
img.service-image {
  width: 100% !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

img.service-image {
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
}

/* Floating transition moments — no separate background box */
.parallax-break {
  min-height: clamp(240px, 36vh, 390px) !important;
  padding: clamp(64px, 8vw, 110px) 24px !important;
  display: grid !important;
  align-items: center !important;
  overflow: visible !important;
  isolation: isolate !important;
  background: transparent !important;
}

.parallax-break::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 74vw);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(0,174,234,.26), rgba(236,0,140,.22), rgba(255,242,0,.16), transparent);
  filter: blur(.3px);
  opacity: .52;
  z-index: 1;
  pointer-events: none;
}

.parallax-break::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 68vw);
  height: min(220px, 24vw);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 34% 50%, rgba(0,174,234,.12), transparent 36%),
    radial-gradient(circle at 68% 50%, rgba(236,0,140,.11), transparent 38%),
    radial-gradient(circle at 52% 68%, rgba(255,242,0,.045), transparent 40%);
  filter: blur(24px);
  opacity: .64;
  z-index: 0;
  pointer-events: none;
}

.parallax-break .container {
  padding: 0 !important;
  z-index: 3 !important;
}

.parallax-break .eyebrow {
  margin-bottom: 18px !important;
  color: rgba(247,244,242,.48) !important;
  letter-spacing: .32em !important;
  font-size: 10px !important;
  justify-content: center !important;
}

.parallax-break h2 {
  max-width: 1080px;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: clamp(44px, 7.2vw, 104px) !important;
  line-height: .9 !important;
  letter-spacing: -.075em !important;
  color: rgba(247,244,242,.78) !important;
  text-shadow:
    0 0 30px rgba(0,174,234,.10),
    0 0 46px rgba(236,0,140,.08),
    0 20px 70px rgba(0,0,0,.50);
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-break::before {
    animation: floatingTransitionLine 7s ease-in-out infinite alternate;
  }

  .parallax-break::after {
    animation: floatingTransitionGlow 9s ease-in-out infinite alternate;
  }

  .parallax-break h2 {
    animation: floatingTransitionTitle 7.5s ease-in-out infinite alternate;
  }
}

@keyframes floatingTransitionLine {
  from {
    opacity: .22;
    transform: translate(-53%, -50%) scaleX(.76);
  }
  to {
    opacity: .58;
    transform: translate(-47%, -50%) scaleX(1);
  }
}

@keyframes floatingTransitionGlow {
  from {
    transform: translate(-52%, -48%) scale(.96);
    opacity: .42;
  }
  to {
    transform: translate(-48%, -52%) scale(1.05);
    opacity: .68;
  }
}

@keyframes floatingTransitionTitle {
  from {
    transform: translate3d(0, 5px, 0);
    opacity: .78;
  }
  to {
    transform: translate3d(0, -5px, 0);
    opacity: .96;
  }
}

@media (max-width: 760px) {
  .parallax-break {
    min-height: 220px !important;
    padding: 66px 18px !important;
  }

  .parallax-break h2 {
    font-size: clamp(36px, 11vw, 72px) !important;
    line-height: .94 !important;
  }

  .parallax-break .eyebrow {
    font-size: 9px !important;
    letter-spacing: .24em !important;
  }
}


.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-size: 18px;
}

/* Portfolio modal thumbnail image containment + enlarged preview */
.thumb-grid {
  align-items: stretch;
}

.thumb,
button.thumb {
  width: 100%;
  min-height: 190px;
  aspect-ratio: 1.25 / 1;
  border-radius: 18px;
  overflow: hidden;
}

button.thumb {
  appearance: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform .25s cubic-bezier(.2,.85,.2,1), border-color .25s ease, box-shadow .25s ease;
}

button.thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}

.thumb img,
img.thumb,
button.thumb img {
  width: 100% !important;
  height: 100% !important;
  min-height: 190px;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
  padding: 0 !important;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
}

.project-lightbox.active {
  display: grid;
}

.project-lightbox-inner {
  width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,7,10,.94);
  box-shadow: 0 40px 130px rgba(0,0,0,.78);
  overflow: hidden;
  position: relative;
}

.project-lightbox img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  background: #030303;
}

.project-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: rgba(247,244,242,.72);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.10);
}

.project-lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .thumb,
  button.thumb {
    min-height: 180px;
  }

  .thumb img,
  img.thumb,
  button.thumb img {
    min-height: 180px;
  }

  .project-lightbox {
    padding: 16px;
  }

  .project-lightbox-inner {
    border-radius: 22px;
  }
}

/* Restore portfolio popup thumbnail fill while keeping main cards in colour */
.portfolio-card::before,
.portfolio-card:hover::before,
.portfolio-card.is-revealed::before {
  filter: grayscale(0) brightness(1) contrast(1.02) blur(0) !important;
  animation: none !important;
}

.thumb-grid {
  align-items: stretch !important;
}

.thumb,
button.thumb,
.thumb-button {
  width: 100% !important;
  height: auto !important;
  min-height: 190px !important;
  aspect-ratio: 1.25 / 1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  display: block !important;
  padding: 0 !important;
}

button.thumb,
.thumb-button {
  appearance: none !important;
  cursor: pointer !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background:
    linear-gradient(135deg, rgba(236,0,140,.22), rgba(0,174,234,.15)),
    rgba(255,255,255,.06) !important;
}

.thumb img,
button.thumb img,
.thumb-button img {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
  padding: 0 !important;
}

/* If the image itself has class thumb, still fill its own holder */
img.thumb {
  width: 100% !important;
  height: 100% !important;
  min-height: 190px !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  padding: 0 !important;
}

/* Large clicked preview should show the full image */
.project-lightbox img {
  width: 100% !important;
  height: auto !important;
  max-height: 78vh !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #030303 !important;
}

@media (max-width: 640px) {
  .thumb,
  button.thumb,
  .thumb-button {
    min-height: 180px !important;
  }

  img.thumb {
    min-height: 180px !important;
  }
}


/* Header clickability and cursor safety */
.topbar,
.topbar-inner,
.brand-left,
.social-connect,
.social-icons,
.social-icon {
  position: relative !important;
  pointer-events: auto !important;
}

.topbar { z-index: 5000 !important; }
.social-connect { z-index: 5002 !important; }
.social-icons { z-index: 5003 !important; }
.social-icon {
  z-index: 5004 !important;
  cursor: pointer !important;
}

.social-icon svg,
.social-icon path {
  pointer-events: none !important;
}

.social-icon::before,
.social-icon::after {
  pointer-events: none !important;
}

.cursor-glow,
.floating-pixels,
.pixel-field,
.logo-particles,
.parallax-break::before,
.parallax-break::after,
body::before,
body::after {
  pointer-events: none !important;
}


/* Modal controls and portfolio popup */

.close-btn,
.modal-close,
.project-lightbox-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding: 0 18px !important;
  min-height: 42px !important;
  font-weight: 600;
}

/* Remove browser blue glow/focus ring */
.close-btn:focus,
.close-btn:focus-visible,
.modal-close:focus,
.modal-close:focus-visible,
.project-lightbox-close:focus,
.project-lightbox-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Make portfolio popup close button match services popup */
.project-lightbox-close {
  position: relative !important;
  background: rgba(255,255,255,.08) !important;
  color: var(--white) !important;
  border: 1px solid var(--line) !important;
  transition: .25s ease !important;
}

.project-lightbox-close:hover {
  border-color: rgba(255,255,255,.24) !important;
}

.project-lightbox-close::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .25s ease;
}

.project-lightbox-close:hover::after {
  opacity: 1;
}


/* Pixelle premium loading screen */
.pixelle-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 24%, rgba(0,174,234,.13), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(236,0,140,.13), transparent 30%),
    radial-gradient(circle at 52% 80%, rgba(255,242,0,.06), transparent 26%),
    #030303;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .78s cubic-bezier(.2,.85,.2,1), visibility .78s ease;
}

.pixelle-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.pixelle-loader-starting,
html.pixelle-loader-starting body,
body.pixelle-loading {
  overflow: hidden;
}

.pixelle-loader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 82vw);
  height: min(720px, 82vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.055);
  box-shadow:
    inset 0 0 80px rgba(255,255,255,.035),
    0 0 90px rgba(0,174,234,.08),
    0 0 120px rgba(236,0,140,.07);
  opacity: .85;
}

.pixelle-loader::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 102px);
  width: min(420px, 62vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), var(--yellow), transparent);
  opacity: .58;
  filter: blur(.2px);
}

.loader-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .22;
  animation: loaderGlowDrift 2.6s ease-in-out infinite alternate;
}

.loader-glow-cyan { left: 18%; top: 28%; background: var(--cyan); }
.loader-glow-pink { right: 18%; top: 32%; background: var(--pink); animation-delay: .3s; }
.loader-glow-yellow { left: 46%; bottom: 14%; background: var(--yellow); opacity: .12; animation-delay: .6s; }

.loader-mark {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  display: grid;
  grid-template-columns: repeat(3, 22px);
  grid-auto-rows: 22px;
  gap: 10px;
  justify-content: center;
  align-content: center;
  transform: rotate(-8deg);
  animation: loaderMarkSettle 1.25s cubic-bezier(.2,.85,.2,1) both;
}

.loader-pixel {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 24px rgba(255,255,255,.14);
  opacity: 0;
  transform: translateY(18px) scale(.72);
  animation: loaderPixelIn .72s cubic-bezier(.2,.85,.2,1) forwards, loaderPixelPulse 1.6s ease-in-out infinite alternate;
}

.loader-pixel:nth-child(1) { animation-delay: .04s, .86s; }
.loader-pixel:nth-child(2) { animation-delay: .10s, .92s; }
.loader-pixel:nth-child(3) { animation-delay: .16s, .98s; }
.loader-pixel:nth-child(4) { animation-delay: .22s, 1.04s; }
.loader-pixel:nth-child(5) { animation-delay: .28s, 1.10s; }
.loader-pixel:nth-child(6) { animation-delay: .34s, 1.16s; }
.loader-pixel:nth-child(7) { animation-delay: .40s, 1.22s; }
.loader-pixel:nth-child(8) { animation-delay: .46s, 1.28s; }
.loader-pixel:nth-child(9) { animation-delay: .52s, 1.34s; }

.loader-cyan { background: var(--cyan); box-shadow: 0 0 24px rgba(0,174,234,.32); }
.loader-pink { background: var(--pink); box-shadow: 0 0 24px rgba(236,0,140,.32); }
.loader-yellow { background: var(--yellow); box-shadow: 0 0 24px rgba(255,242,0,.24); }
.loader-white { background: rgba(255,255,255,.94); }

.loader-word {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 102px);
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  animation: loaderWordIn .8s cubic-bezier(.2,.85,.2,1) .44s both;
}

.loader-word span {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: -.07em;
  line-height: .8;
  color: rgba(247,244,242,.95);
}

.loader-word small {
  font-size: 10px;
  letter-spacing: .52em;
  text-transform: uppercase;
  color: rgba(247,244,242,.56);
  font-weight: 700;
  padding-left: .52em;
}

body.pixelle-loaded .hero {
  animation: heroAfterLoader .72s cubic-bezier(.2,.85,.2,1) both;
}

@keyframes loaderPixelIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes loaderPixelPulse {
  from { filter: brightness(.92); transform: translateY(0) scale(1); }
  to { filter: brightness(1.18); transform: translateY(-2px) scale(1.045); }
}
@keyframes loaderMarkSettle {
  from { opacity: 0; transform: translateY(18px) rotate(-13deg) scale(.86); }
  to { opacity: 1; transform: translateY(0) rotate(-8deg) scale(1); }
}
@keyframes loaderGlowDrift {
  from { transform: translate3d(0,0,0) scale(.94); }
  to { transform: translate3d(18px,-14px,0) scale(1.06); }
}
@keyframes loaderWordIn {
  from { opacity: 0; transform: translate(-50%, 14px); filter: blur(8px); }
  to { opacity: 1; transform: translate(-50%, 0); filter: blur(0); }
}
@keyframes heroAfterLoader {
  from { opacity: 0; transform: translateY(14px) scale(.992); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 640px) {
  .loader-mark {
    width: 94px;
    height: 94px;
    grid-template-columns: repeat(3, 18px);
    grid-auto-rows: 18px;
    gap: 8px;
  }
  .loader-pixel {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }
  .loader-word,
  .pixelle-loader::after {
    top: calc(50% + 84px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-glow,
  .loader-mark,
  .loader-pixel,
  .loader-word,
  body.pixelle-loaded .hero {
    animation: none !important;
  }
  .loader-pixel,
  .loader-word,
  .loader-mark {
    opacity: 1;
    transform: none;
  }
}


/* Pixelle Blog + Single Post Templates */
.blog-page-wrap,
.single-post-wrap {
  min-height: 100vh;
  padding: 138px 24px 80px;
  position: relative;
  overflow: hidden;
}

.blog-hero-section {
  min-height: 54vh;
  display: grid;
  align-items: center;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.blog-hero-section::before,
.single-post-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(760px, 78vw);
  height: min(260px, 30vw);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 48%, rgba(0,174,234,.13), transparent 38%),
    radial-gradient(circle at 68% 54%, rgba(236,0,140,.13), transparent 38%),
    radial-gradient(circle at 54% 70%, rgba(255,242,0,.055), transparent 40%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

.blog-hero-section h1,
.single-post-hero h1 {
  font-size: clamp(58px, 9vw, 140px);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.075em;
  margin-bottom: 24px;
}

.blog-category-hero h1 {
  font-size: clamp(52px, 8vw, 112px);
}

.blog-hero-section p,
.single-intro {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-tools {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  color: rgba(247,244,242,.78);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: .25s cubic-bezier(.2,.85,.2,1);
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--white);
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.09);
  transform: translateY(-2px);
}

.blog-content-section {
  padding-top: 20px;
}

.featured-post {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(255,255,255,.052);
  box-shadow: 0 34px 110px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.featured-art {
  min-height: 430px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(3,3,3,.05), rgba(3,3,3,.78)),
    radial-gradient(circle at 36% 28%, rgba(0,174,234,.32), transparent 32%),
    radial-gradient(circle at 70% 58%, rgba(236,0,140,.22), transparent 34%),
    #07070a;
  overflow: hidden;
  display: block;
}

.featured-art img,
.post-art img,
.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-art::before {
  content: "FEATURED";
  position: absolute;
  left: 28px;
  top: 28px;
  color: rgba(247,244,242,.42);
  font-size: 10px;
  letter-spacing: .18em;
  z-index: 2;
}

.featured-art::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: 12%;
  top: 18%;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(0,174,234,.25), rgba(236,0,140,.18), rgba(255,242,0,.08)),
    rgba(255,255,255,.05);
  transform: rotate(-8deg);
  box-shadow: 0 0 90px rgba(0,174,234,.12);
}

.featured-art:has(img)::after {
  opacity: .18;
}

.pixel-cluster {
  position: absolute;
  left: 14%;
  bottom: 18%;
  display: grid;
  grid-template-columns: repeat(5, 18px);
  gap: 9px;
  transform: rotate(-8deg);
}

.pixel-cluster i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--white);
  opacity: .85;
  box-shadow: 0 0 22px rgba(255,255,255,.12);
}

.pixel-cluster i:nth-child(2n) { background: var(--cyan); }
.pixel-cluster i:nth-child(3n) { background: var(--pink); }
.pixel-cluster i:nth-child(5n) { background: var(--yellow); }

.featured-copy {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(247,244,242,.48);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.category {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.055);
}

.featured-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: .9;
  letter-spacing: -.06em;
  margin-bottom: 20px;
}

.featured-copy p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}

.read-link {
  margin-top: 28px;
  display: inline-flex;
  width: fit-content;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}

.read-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
}

.section-head {
  margin: 86px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-head h2 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: .92;
  letter-spacing: -.06em;
}

.section-head p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
  position: relative;
  transition: .35s cubic-bezier(.2,.85,.2,1);
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .25s ease;
}

.post-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.post-card:hover::after {
  opacity: 1;
}

.post-art {
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(3,3,3,.02), rgba(3,3,3,.55)),
    radial-gradient(circle at 76% 24%, rgba(0,174,234,.20), transparent 32%),
    radial-gradient(circle at 24% 78%, rgba(236,0,140,.16), transparent 34%),
    #07070a;
  position: relative;
  display: block;
  overflow: hidden;
}

.post-art:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  transform: rotate(-5deg);
}

.post-content {
  padding: 24px;
}

.post-content h3 {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.055em;
  margin: 18px 0 12px;
}

.post-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.blog-pagination {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  background: rgba(255,255,255,.045);
  color: rgba(247,244,242,.78);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.09);
}

.blog-empty {
  padding: 38px;
  text-align: center;
}

.blog-cta {
  max-width: 820px;
  margin: 72px auto 0;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,174,234,.14), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(236,0,140,.10), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035)),
    rgba(255,255,255,.045);
  box-shadow:
    0 28px 90px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.blog-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 54%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), var(--yellow), transparent);
  opacity: .72;
}

.blog-cta h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: .9;
  letter-spacing: -.07em;
  margin-bottom: 18px;
}

.blog-cta p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.cta-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .25s cubic-bezier(.2,.85,.2,1);
}

.cta-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
}

.single-post-shell {
  position: relative;
}

.single-post-hero {
  padding: 80px 0 48px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.single-meta {
  justify-content: center;
}

.single-featured-image {
  height: min(560px, 58vw);
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
  box-shadow: 0 34px 110px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.single-post-content {
  width: min(760px, 100%);
  margin: 56px auto 0;
  color: rgba(247,244,242,.86);
}

.single-post-content > * + * {
  margin-top: 22px;
}

.single-post-content p,
.single-post-content li {
  color: rgba(247,244,242,.74);
  font-size: 17px;
  line-height: 1.78;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 42px;
  color: var(--white);
}

.single-post-content h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: .98;
}

.single-post-content h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 22px;
}

.single-post-content blockquote {
  border-left: 2px solid var(--pink);
  padding: 18px 0 18px 22px;
  color: var(--white);
  background: rgba(255,255,255,.035);
  border-radius: 0 18px 18px 0;
}

.single-post-content img {
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
}

.single-post-nav {
  width: min(820px, 100%);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  color: rgba(247,244,242,.72);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.single-post-nav > div:last-child {
  text-align: right;
}

.single-post-nav a {
  transition: .25s ease;
}

.single-post-nav a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  .blog-page-wrap,
  .single-post-wrap {
    padding: 150px 20px 72px;
  }

  .featured-post,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .featured-art {
    min-height: 320px;
  }

  .single-post-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .single-post-nav > div:last-child {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .blog-page-wrap,
  .single-post-wrap {
    padding: 140px 18px 64px;
  }

  .blog-hero-section {
    min-height: 48vh;
  }

  .blog-hero-section h1,
  .single-post-hero h1 {
    font-size: clamp(46px, 15vw, 76px);
  }

  .post-card {
    min-height: auto;
  }

  .featured-copy,
  .post-content {
    padding: 24px;
  }

  .single-featured-image {
    border-radius: 24px;
  }
}


/* Blog latest-card image sizing */
.post-art {
  height: 190px !important;
  min-height: 190px !important;
}

.post-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

@media (max-width: 560px) {
  .post-art {
    height: 180px !important;
    min-height: 180px !important;
  }
}


/* Featured blog card refinement */
.featured-post {
  border-radius: 34px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(236,0,140,.13), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(0,174,234,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.032)),
    rgba(255,255,255,.045) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow:
    0 34px 110px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.featured-post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(115deg, rgba(0,174,234,.55), rgba(255,255,255,.18), rgba(236,0,140,.38), rgba(255,242,0,.20));
  opacity: .52;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 5;
}

.featured-art {
  margin: 34px !important;
  height: 360px !important;
  min-height: 360px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background:
    linear-gradient(180deg, rgba(3,3,3,.05), rgba(3,3,3,.62)),
    radial-gradient(circle at 36% 28%, rgba(0,174,234,.25), transparent 32%),
    radial-gradient(circle at 70% 58%, rgba(236,0,140,.20), transparent 34%),
    #07070a !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  overflow: hidden !important;
}

.featured-art::before {
  left: 22px !important;
  top: 22px !important;
  z-index: 4 !important;
}

.featured-art::after {
  opacity: .28 !important;
  pointer-events: none !important;
}

.featured-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: inherit !important;
}

/* Hide image area cleanly when no thumbnail exists */
.featured-art img[src=""],
.featured-art img:not([src]) {
  display: none !important;
}

.featured-copy {
  padding: clamp(32px, 4.6vw, 58px) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(0,174,234,.08), transparent 36%),
    radial-gradient(circle at 70% 100%, rgba(236,0,140,.07), transparent 40%),
    rgba(255,255,255,.018) !important;
}

.featured-copy h2 {
  text-shadow: 0 14px 60px rgba(0,0,0,.42);
}

@media (max-width: 980px) {
  .featured-post {
    grid-template-columns: 1fr !important;
  }

  .featured-art {
    height: 320px !important;
    min-height: 320px !important;
    margin: 24px 24px 0 !important;
  }
}

@media (max-width: 560px) {
  .featured-post {
    border-radius: 28px !important;
  }

  .featured-art {
    height: 260px !important;
    min-height: 260px !important;
    margin: 18px 18px 0 !important;
    border-radius: 22px !important;
  }

  .featured-copy {
    padding: 24px !important;
  }
}


/* Blog card read links and compact CTA */
.post-content {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.post-content p {
  margin-bottom: 18px;
}

.post-read-link {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  color: var(--white);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  position: relative;
  opacity: .92;
}

.post-read-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  opacity: .85;
}

.post-read-link:hover {
  opacity: 1;
}

.blog-cta {
  max-width: 760px !important;
  margin-top: 58px !important;
  border-radius: 30px !important;
  padding: clamp(24px, 3.2vw, 34px) !important;
}

.blog-cta h2 {
  max-width: 620px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 14px !important;
  font-size: clamp(25px, 3.1vw, 39px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em !important;
}

.blog-cta p {
  max-width: 500px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  line-height: 1.48 !important;
}

.cta-button {
  padding: 11px 16px !important;
}

@media (max-width: 560px) {
  .post-content {
    min-height: auto;
  }

  .blog-cta {
    margin-top: 48px !important;
    padding: 24px 20px !important;
  }

  .blog-cta h2 {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: 1.04 !important;
  }
}


/* Right-aligned article links */
.featured-copy {
  position: relative;
}

.featured-copy .read-link {
  margin-top: 32px !important;
  margin-left: auto !important;
  text-align: right;
  align-self: flex-end;
}

.post-read-link {
  margin-left: auto !important;
  text-align: right;
  align-self: flex-end;
}

@media (max-width: 560px) {
  .featured-copy .read-link,
  .post-read-link {
    width: fit-content;
  }
}


/* Blog interaction refinement: featured link, full latest cards, CMYK glow buttons */
.featured-copy .read-link {
  transition:
    color .24s cubic-bezier(.2,.85,.2,1),
    text-shadow .24s ease,
    letter-spacing .24s ease,
    font-weight .24s ease !important;
}

.featured-copy .read-link:hover {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .17em;
  text-shadow:
    0 0 14px rgba(0,174,234,.34),
    0 0 20px rgba(236,0,140,.28),
    0 0 28px rgba(255,242,0,.14);
}

.featured-copy .read-link:active {
  transform: translateY(1px) scale(.985) !important;
}

.post-card {
  cursor: pointer;
}

.post-card-click {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
}

.post-card .post-content,
.post-card .post-art {
  pointer-events: none;
}

.post-card .post-read-link {
  pointer-events: none;
}

.post-card:active {
  transform: translateY(1px) scale(.985) !important;
}

.post-card:hover .post-read-link {
  color: var(--white);
  text-shadow:
    0 0 18px rgba(0,174,234,.20),
    0 0 22px rgba(236,0,140,.16);
}

/* Blog filter/category/CTA CMYK border behavior */
.filter-pill,
.category,
.cta-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.filter-pill::after,
.category::after,
.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .25s ease;
}

.filter-pill:hover::after,
.filter-pill.active::after,
.category:hover::after,
.cta-button:hover::after {
  opacity: 1;
}

.filter-pill:hover,
.category:hover,
.cta-button:hover {
  box-shadow:
    0 0 26px rgba(0,174,234,.07),
    0 0 34px rgba(236,0,140,.06);
}

.cta-button:active,
.filter-pill:active,
.category:active {
  transform: translateY(1px) scale(.985) !important;
}


/* Blog category filter state */
.blog-hero-section h1 br {
  display: initial;
}

.blog-tools .filter-pill.active {
  color: var(--white);
}


/* Blog category-filter spacing */
.blog-page-wrap .blog-content-section {
  padding-top: 8px;
}


/* Pinned navbar stability */
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 5000 !important;
  background: rgba(3,3,3,.72) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.35) !important;
  pointer-events: auto !important;
}

.topbar-inner,
.brand-left,
.menu,
.social-connect,
.social-icons,
.social-icon {
  position: relative !important;
  pointer-events: auto !important;
}

.topbar-inner {
  z-index: 5001 !important;
}

.menu {
  z-index: 5002 !important;
}

.social-connect,
.social-icons {
  z-index: 5003 !important;
}

.social-icon {
  z-index: 5004 !important;
}

.pixelle-loader {
  z-index: 99999 !important;
}

@media (max-width: 980px) {
  .topbar {
    position: fixed !important;
  }
}


/* Blog/menu active underline */
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current-menu-ancestor > a,
.menu .current-page-ancestor > a {
  color: var(--white) !important;
}

.menu .current-menu-item > a::after,
.menu .current_page_item > a::after,
.menu .current-menu-ancestor > a::after,
.menu .current-page-ancestor > a::after {
  left: 0 !important;
  right: 0 !important;
  opacity: 1 !important;
}


/* Blog nav underline for blog-related WordPress views */
body.blog .menu a[href*="/blog"],
body.archive .menu a[href*="/blog"],
body.single-post .menu a[href*="/blog"],
body.category .menu a[href*="/blog"],
body.tag .menu a[href*="/blog"],
body.search .menu a[href*="/blog"] {
  color: var(--white) !important;
}

body.blog .menu a[href*="/blog"]::after,
body.archive .menu a[href*="/blog"]::after,
body.single-post .menu a[href*="/blog"]::after,
body.category .menu a[href*="/blog"]::after,
body.tag .menu a[href*="/blog"]::after,
body.search .menu a[href*="/blog"]::after {
  left: 0 !important;
  right: 0 !important;
  opacity: 1 !important;
}

/* 404 template */
.error-404 h1 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: .92;
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}


/* Homepage latest posts preview */
.latest-posts-preview {
  position: relative;
  padding: 42px 0 22px;
}

.latest-posts-container {
  max-width: 1120px;
}

.latest-posts-card {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 30px;
}

.latest-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.latest-posts-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: .95;
  letter-spacing: -.055em;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.latest-post-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
  transition:
    transform .35s cubic-bezier(.2,.85,.2,1),
    border-color .25s ease,
    box-shadow .35s ease,
    background .25s ease;
}

.latest-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .25s ease;
}

.latest-post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.latest-post-card:hover::after {
  opacity: 1;
}

.latest-post-link {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.latest-post-art {
  min-height: 116px;
  display: block;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3,3,3,.02), rgba(3,3,3,.56)),
    radial-gradient(circle at 78% 24%, rgba(0,174,234,.18), transparent 34%),
    radial-gradient(circle at 22% 78%, rgba(236,0,140,.14), transparent 34%),
    #07070a;
}

.latest-post-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  transform: rotate(-5deg);
}

.latest-post-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 116px;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
  transition: transform .45s ease, filter .35s ease;
}

.latest-post-card:hover .latest-post-art img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}

.latest-post-content {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  padding: 15px 16px 16px;
}

.latest-post-date {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(247,244,242,.50);
}

.latest-post-content h3 {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1;
  letter-spacing: -.048em;
  margin: 10px 0 8px;
}

.latest-post-content p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.latest-post-content .read-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 10px;
}

.latest-posts-view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--white);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}

@media (max-width: 980px) {
  .latest-posts-preview {
    padding: 34px 0 18px;
  }

  .latest-posts-head {
    align-items: flex-start;
  }

  .latest-posts-grid {
    grid-template-columns: 1fr;
  }

  .latest-post-content {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .latest-posts-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Latest Blogs portfolio preview */
.latest-posts-attached {
  margin-top: 38px;
  padding: 0;
}

.latest-posts-attached .latest-posts-card {
  width: 100%;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 26px;
}

.latest-posts-attached .latest-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.latest-posts-attached .latest-posts-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: .95;
  letter-spacing: -.055em;
}

/* Uses the same .post-grid and .post-card system as home.php/blog page. */
.latest-posts-attached .post-grid {
  margin: 0;
}

.latest-posts-view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--white);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}

.latest-posts-view-all:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}

@media (max-width: 640px) {
  .latest-posts-attached {
    margin-top: 28px;
  }

  .latest-posts-attached .latest-posts-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Portfolio responsive containment refinement */
#portfolio {
  overflow-x: clip;
}

#portfolio .container {
  width: min(var(--max), calc(100% - clamp(32px, 6vw, 56px)));
  max-width: var(--max);
  margin-inline: auto;
  min-width: 0;
}

#portfolio .portfolio-grid,
#portfolio .brand-strip,
#portfolio .latest-posts-attached,
#portfolio .latest-posts-card,
#portfolio .post-grid {
  min-width: 0;
  max-width: 100%;
}

#portfolio .portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#portfolio .portfolio-card {
  min-width: 0;
}

#portfolio .brand-strip {
  overflow: hidden;
}

#portfolio .logo-marquee {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#portfolio .latest-posts-attached .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  #portfolio .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #portfolio .latest-posts-attached .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #portfolio .container {
    width: min(100%, calc(100% - 32px));
  }

  #portfolio .portfolio-grid,
  #portfolio .latest-posts-attached .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #portfolio .container {
    width: 100%;
    max-width: 100%;
  }
}

/* Single post content typography refinement */
.single-post-content,
.entry-content {
  color: rgba(247,244,242,.82);
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.78;
  overflow-wrap: break-word;
  word-break: normal;
}

.single-post-content > *:first-child,
.entry-content > *:first-child {
  margin-top: 0;
}

.single-post-content > *:last-child,
.entry-content > *:last-child {
  margin-bottom: 0;
}

.single-post-content p,
.entry-content p {
  margin: 0 0 1.35em;
}

.single-post-content a,
.entry-content a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0,174,234,.8);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition:
    color .22s ease,
    text-decoration-color .22s ease,
    text-shadow .22s ease;
}

.single-post-content a:hover,
.entry-content a:hover {
  color: var(--white);
  text-decoration-color: rgba(236,0,140,.95);
  text-shadow:
    0 0 16px rgba(0,174,234,.22),
    0 0 22px rgba(236,0,140,.18);
}

.single-post-content h2,
.entry-content h2,
.single-post-content h3,
.entry-content h3,
.single-post-content h4,
.entry-content h4 {
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 1.65em 0 .65em;
}

.single-post-content h2,
.entry-content h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.single-post-content h3,
.entry-content h3 {
  font-size: clamp(23px, 2.2vw, 32px);
}

.single-post-content h4,
.entry-content h4 {
  font-size: clamp(19px, 1.6vw, 24px);
}

.single-post-content ul,
.entry-content ul,
.single-post-content ol,
.entry-content ol {
  margin: 0 0 1.45em 1.25em;
  padding-left: 1.1em;
}

.single-post-content li,
.entry-content li {
  margin-bottom: .62em;
  padding-left: .15em;
}

.single-post-content li::marker,
.entry-content li::marker {
  color: var(--pink);
}

.single-post-content blockquote,
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 1.15em 1.25em;
  border-left: 2px solid var(--cyan);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.045);
  color: rgba(247,244,242,.9);
  font-size: 1.05em;
  line-height: 1.65;
}

.single-post-content strong,
.entry-content strong,
.single-post-content b,
.entry-content b {
  color: var(--white);
  font-weight: 800;
}

.single-post-content hr,
.entry-content hr {
  margin: 2.2em 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.single-post-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.single-post-content figure,
.entry-content figure {
  margin: 1.8em 0;
}

.single-post-content figcaption,
.entry-content figcaption,
.wp-caption-text {
  margin-top: .75em;
  color: rgba(247,244,242,.52);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.single-post-content .wp-block-button__link,
.entry-content .wp-block-button__link {
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  text-decoration: none;
}

.single-post-content .wp-block-table,
.entry-content .wp-block-table {
  overflow-x: auto;
}

.single-post-content table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .95em;
}

.single-post-content th,
.entry-content th,
.single-post-content td,
.entry-content td {
  border: 1px solid rgba(255,255,255,.12);
  padding: .8em;
  text-align: left;
}

@media (max-width: 640px) {
  .single-post-content,
  .entry-content {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Featured blog responsive headline scaling */
.blog-page-wrap .featured-post .featured-copy h2,
.blog-page-wrap .featured-post .featured-copy h2 a {
  font-size: clamp(30px, 2.4vw, 48px) !important;
  line-height: .96 !important;
  letter-spacing: -0.05em !important;
  max-width: 100%;
}

/* Portfolio latest blog card alignment */
#portfolio .latest-posts-attached .post-card {
  display: flex;
  flex-direction: column;
}

#portfolio .latest-posts-attached .post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

#portfolio .latest-posts-attached .post-content p {
  flex: 1;
}

#portfolio .latest-posts-attached .post-read-link {
  margin-top: auto !important;
  margin-left: auto !important;
  align-self: flex-end !important;
  text-align: right !important;
}

/* Direct anchor navigation should never animate section jumps */
html,
html:focus-within {
  scroll-behavior: auto !important;
}

/* Blog category filter placement refinement */
.blog-content-section .blog-tools-wrap {
  margin: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 34px);
}

.blog-content-section .blog-tools {
  justify-content: flex-start;
  margin: 0;
}

.blog-content-section .blog-tools-wrap + .section-head {
  margin-top: 0;
}

@media (max-width: 760px) {
  .blog-content-section .blog-tools-wrap {
    margin: 24px 0 28px;
  }

  .blog-content-section .blog-tools {
    gap: 10px;
  }
}

/* Homepage card CTA alignment */
.service-card-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card-content p {
  flex: 1;
}

.portfolio-card {
  position: relative;
}

.portfolio-card p {
  margin-bottom: 52px;
}

.service-link,
.portfolio-link {
  align-self: flex-end;
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  margin-left: auto;
  padding-top: 18px;
  color: var(--white);
  font-size: 10px;
  letter-spacing: .15em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  position: relative;
  opacity: .92;
}

.service-link::after,
.portfolio-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow));
  opacity: .85;
}

.service-card:hover .service-link,
.portfolio-card:hover .portfolio-link {
  opacity: 1;
  color: var(--white);
  text-shadow:
    0 0 18px rgba(0,174,234,.20),
    0 0 22px rgba(236,0,140,.16);
}

/* Portfolio card CTA overlay correction */
.portfolio-card {
  justify-content: flex-end !important;
  padding-bottom: 24px !important;
}

.portfolio-card h3,
.portfolio-card p {
  flex: initial !important;
}

.portfolio-card p {
  max-width: 78%;
  margin-bottom: 0 !important;
}

.portfolio-card .portfolio-link {
  position: absolute !important;
  right: 24px;
  bottom: 24px;
  z-index: 13;
  margin: 0 !important;
  padding-top: 0 !important;
  align-self: auto !important;
  pointer-events: none;
}

.portfolio-card .portfolio-link::after {
  bottom: -7px;
}

/* Homepage mobile header, contact link, and overflow correction */
@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  body {
    touch-action: pan-y;
  }

  body.home,
  body.front-page,
  body.page-template-front-page,
  body.page-template-default {
    overflow-x: hidden !important;
  }

  .topbar,
  .topbar-inner {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .topbar-inner {
    box-sizing: border-box;
  }

  /* Hide the separate rounded mobile Contact pill. */
  .brand-left > .mobile-contact-pill,
  a.mobile-contact-pill,
  .mobile-contact-pill {
    display: none !important;
  }

  /* Keep the normal Contact link inside the menu, but make it text-style. */
  .menu .desktop-contact-pill,
  nav.menu .desktop-contact-pill {
    display: inline-flex !important;
    font-weight: inherit !important;
    color: var(--muted) !important;
  }

  .menu .desktop-contact-pill:hover,
  .menu .desktop-contact-pill.active,
  nav.menu .desktop-contact-pill:hover,
  nav.menu .desktop-contact-pill.active {
    color: var(--white) !important;
  }

  /* Remove mobile pill/circle look from nav items and keep desktop-style underline. */
  .menu a,
  nav.menu a {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    min-height: 0 !important;
  }

  .menu a::after,
  nav.menu a::after {
    bottom: 0 !important;
  }

  .menu {
    max-width: 100%;
    overflow: visible;
  }

  /* Prevent homepage decorative layers/cards from creating horizontal pan. */
  .hero,
  .hero-stage,
  .logo-particles,
  .floating-pixels,
  .about-shell,
  .services-grid,
  .service-grid,
  .portfolio-grid,
  .brand-strip,
  .latest-posts-card,
  .contact-card,
  section {
    max-width: 100vw;
  }

  .hero,
  .hero-stage,
  section {
    overflow-x: clip;
  }

  .logo-particles {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .container {
    max-width: calc(100vw - 24px);
  }

  .menu {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu a,
  nav.menu a {
    font-size: 10px;
    letter-spacing: .11em;
  }
}

/* Mobile hero clipping and scroll smoothness refinement */
@media (max-width: 980px) {
  section,
  .hero {
    overflow-x: clip;
  }

  .hero {
    min-height: 100svh;
    height: auto;
    padding-top: clamp(132px, 18vh, 168px);
    padding-bottom: clamp(72px, 12vh, 104px);
    overflow-y: visible;
  }

  .hero .container {
    overflow: visible;
  }

  .hero-stage {
    width: min(92vw, 560px);
    min-height: clamp(250px, 46vw, 390px);
    margin-bottom: clamp(28px, 8vw, 48px);
    overflow: visible;
  }

  .hero-logo,
  .hero-logo img,
  .hero-mark,
  .hero-mark img,
  .custom-logo {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .hero-logo {
    width: min(88vw, 520px) !important;
    max-width: 100% !important;
    transform: translateZ(0);
  }

  .logo-particles {
    pointer-events: none;
    overflow: hidden !important;
  }

  /* Mobile scroll should be steady: no section shrink/vanish/parallax transforms. */
  main section:not(.hero),
  .reveal,
  .micro-reveal,
  .parallax-break,
  .glass-card,
  .service-card,
  .portfolio-card,
  .brand-strip,
  .latest-posts-card {
    transform: none !important;
    filter: none !important;
  }

  body::before,
  body::after,
  .floating-pixels,
  .ambient,
  .background-glows {
    animation: none !important;
    transform: none !important;
  }

  .logo-particles i {
    will-change: auto !important;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    padding-top: 140px;
    padding-bottom: 78px;
  }

  .hero-stage {
    width: 94vw;
    min-height: clamp(245px, 58vw, 340px);
  }

  .hero-logo {
    width: min(90vw, 380px) !important;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 72px);
  }
}

/* Safari hero logo blur reset */
.hero:not(.exploding) .hero-logo,
.hero:not(.exploding) .hero-logo img,
.hero:not(.exploding) .hero-mark,
.hero:not(.exploding) .hero-mark img {
  filter: none !important;
  -webkit-filter: none !important;
}

.hero:not(.exploding):not(.exploded) .hero-logo {
  opacity: 1 !important;
}

.hero.exploding .hero-logo {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@supports (-webkit-touch-callout: none) {
  .hero-logo,
  .hero-logo img,
  .hero-mark,
  .hero-mark img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .hero:not(.exploding) .hero-logo,
  .hero:not(.exploding) .hero-logo img,
  .hero:not(.exploding) .hero-mark,
  .hero:not(.exploding) .hero-mark img {
    -webkit-filter: none !important;
    filter: none !important;
  }
}

/* Mobile transition consistency refinement */
@media (max-width: 760px) {
  .parallax-break,
  .parallax-break .container,
  .parallax-break .reveal,
  .parallax-break .eyebrow,
  .parallax-break h2 {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .parallax-break h2 {
    color: rgba(247,244,242,.86) !important;
    text-shadow:
      0 0 24px rgba(0,174,234,.10),
      0 0 34px rgba(236,0,140,.08),
      0 14px 44px rgba(0,0,0,.42) !important;
  }

  .parallax-break .eyebrow {
    color: rgba(247,244,242,.58) !important;
  }

  .parallax-break::before,
  .parallax-break::after {
    animation: none !important;
  }
}

/* Mobile hero-about scroll performance refinement */
@media (max-width: 760px) {
  /*
   * iOS/Safari can stutter when fixed glass blur, large shadows,
   * hero particles, and the About image card all repaint together.
   * This keeps the visual direction but removes the heaviest mobile repaint costs.
   */

  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(3,3,3,.88) !important;
  }

  .hero,
  #about,
  #about .container,
  .about-grid,
  .photo-card,
  .glass-card,
  .about-display,
  .preview-shell {
    transform: none !important;
    filter: none !important;
    contain: layout paint;
  }

  #about .photo-card,
  #about .glass-card,
  #about .about-display,
  #about .preview-shell {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.24) !important;
  }

  #about img,
  #about .photo-placeholder,
  #about .diploma-preview,
  #about .about-mini-photo,
  #about .team-photo {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto !important;
  }

  .hero-logo,
  .logo-particles,
  .logo-particles i {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .logo-particles i {
    box-shadow: none !important;
    filter: none !important;
  }

  .hero.exploding .hero-logo,
  .hero.exploded .hero-logo {
    filter: none !important;
    -webkit-filter: none !important;
  }

  .floating-pixels {
    display: none !important;
  }
}

@media (max-width: 560px) {
  #about .photo-card {
    min-height: 360px;
  }

  #about .about-display {
    min-height: 360px;
  }
}

/* Mobile triggered hero explosion production behavior */
@media (max-width: 760px) {
  .hero .logo-particles i,
  .hero.mobile-explosion-resetting .logo-particles i {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(.86) rotate(0deg);
    animation-name: none;
    transition: none;
  }

  .hero:not(.mobile-explosion-triggered) .hero-logo,
  .hero.mobile-explosion-resetting .hero-logo {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .hero.mobile-explosion-triggered .hero-logo {
    opacity: 0 !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: translate3d(0, 12px, 0) scale(.94);
    transition:
      opacity 360ms ease,
      transform 520ms cubic-bezier(.2,.75,.2,1);
  }

  .hero.mobile-explosion-triggered .logo-particles i {
    opacity: 0;
    animation-name: pixelleMobileParticleFall;
    animation-duration: var(--mobile-duration, 1120ms);
    animation-timing-function: cubic-bezier(.16,.78,.24,1);
    animation-delay: var(--mobile-delay, 0ms);
    animation-fill-mode: both;
  }

  .hero.mobile-explosion-triggered .logo-particles i.white {
    opacity: .92;
  }

  .hero.mobile-explosion-triggered .logo-particles i.cyan,
  .hero.mobile-explosion-triggered .logo-particles i.pink,
  .hero.mobile-explosion-triggered .logo-particles i.yellow {
    opacity: .96;
  }

  .hero.mobile-explosion-triggered .logo-particles {
    opacity: 1 !important;
  }

  @keyframes pixelleMobileParticleFall {
    0% {
      opacity: 0;
      transform: translate3d(0, 0, 0) scale(.72) rotate(0deg);
    }

    10% {
      opacity: .98;
    }

    72% {
      opacity: .72;
    }

    100% {
      opacity: 0;
      transform:
        translate3d(calc(var(--x) * .82), calc(var(--y) * .88), 0)
        scale(calc(var(--s) * .98))
        rotate(var(--r));
    }
  }
}

    /* Footer mobile polish */
    @media (max-width: 640px) {
      .footer {
        padding: 30px 18px 20px;
      }

      .footer-inner {
        gap: 22px;
      }

      .footer-brand {
        flex-direction: column;
        text-align: center;
      }

      .footer-nav {
        gap: 12px 14px;
      }

      .footer-bottom {
        margin-top: 20px;
      }
    }


/* Footer favicon branding */
.footer-mark {
  overflow: hidden;
}

.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-mark span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Service modal mobile pairing fix
   Keeps the existing desktop service modal data/rendering intact.
   On mobile only, the image stack and text box stack are flattened so each image appears directly above its matching text card. */
@media (max-width: 760px) {
  .service-modal-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .service-modal-grid .service-image-stack,
  .service-modal-grid .service-textboxes {
    display: contents;
  }

  .service-modal-grid .service-image-stack .service-image:nth-child(1) { order: 1; }
  .service-modal-grid .service-textboxes .service-textbox:nth-child(1) { order: 2; }
  .service-modal-grid .service-image-stack .service-image:nth-child(2) { order: 3; }
  .service-modal-grid .service-textboxes .service-textbox:nth-child(2) { order: 4; }
  .service-modal-grid .service-image-stack .service-image:nth-child(3) { order: 5; }
  .service-modal-grid .service-textboxes .service-textbox:nth-child(3) { order: 6; }
}


/* Modal scroll containment pass
   Keeps the page locked behind service/portfolio popups while allowing the popup itself to scroll. */
body.pixelle-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden !important;
  touch-action: none;
}

dialog[open] {
  max-height: calc(100dvh - 28px);
  overflow: hidden;
}

dialog[open] .modal-inner {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

@supports not (height: 100dvh) {
  dialog[open],
  dialog[open] .modal-inner {
    max-height: calc(100vh - 28px);
  }
}

@media (max-width: 760px) {
  dialog[open] {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
  }

  dialog[open] .modal-inner {
    max-height: calc(100dvh - 18px);
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
}

/* Modal close button alignment polish
   Keeps service and portfolio popup controls consistent and anchored in the top-right corner of the popup header. */
dialog .modal-inner {
  position: relative;
}

dialog .modal-top {
  position: relative;
  padding-right: 98px;
  align-items: flex-start;
}

dialog .close-btn {
  position: absolute !important;
  top: 0;
  right: 0;
  width: 78px !important;
  min-width: 78px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  flex: 0 0 78px !important;
  white-space: nowrap;
  z-index: 8;
}

@media (max-width: 760px) {
  dialog .modal-top {
    padding-right: 74px;
    margin-bottom: 18px;
  }

  dialog .close-btn {
    width: 62px !important;
    min-width: 62px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex-basis: 62px !important;
    font-size: 11px;
    letter-spacing: .02em;
  }
}
