/* Pixie Studios overrides on top of Agntix main.css */
:root {
  --tp-common-red: #FF1A6C;          /* Pixie neon pink (replaces template red) */
  --pixie-pink: #FF1A6C;
  --pixie-gold: #E8B01E;
}
::selection { background: var(--pixie-pink); color: #fff; }

/* Logo lockup */
.pixie-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.pixie-logo img { width: 44px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 26, 108, .45)); }
.pixie-logo .pixie-wordmark { display: flex; flex-direction: column; line-height: 1; }
.pixie-logo .pixie-wordmark b { font-family: var(--tp-ff-clash-bold); font-size: 22px; letter-spacing: .04em; color: #fff; text-transform: uppercase; }
.pixie-logo .pixie-wordmark small { font-family: var(--tp-ff-clash-medium); font-size: 10px; letter-spacing: .22em; color: var(--pixie-gold); text-transform: uppercase; margin-top: 5px; }
@media (max-width: 575px) { .pixie-logo .pixie-wordmark small { display: none; } .pixie-logo img { width: 38px; } }

/* Hero */
.studio-hero-info a, .studio-hero-info span { text-transform: uppercase; }
.pixie-hero-tag { font-family: var(--tp-ff-clash-semibold); text-transform: uppercase; letter-spacing: .3em; color: var(--pixie-gold); font-size: 18px; margin-top: 34px; }
@media (max-width: 767px) { .pixie-hero-tag { font-size: 12px; letter-spacing: .2em; margin-top: 18px; } }
.studio-hero-banner { position: relative; }
.studio-hero-banner img { height: 100%; object-fit: cover; }
.studio-hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,0) 55%, rgba(15,15,16,.85) 100%); pointer-events: none; }

/* Case study media */
.studio-project-thumb { overflow: hidden; border-radius: 14px; }
.studio-project-thumb img, .studio-project-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-project-thumb.is-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: transparent; }
.studio-project-thumb.is-split img { border-radius: 10px; }
.pixie-stats { display: flex; flex-wrap: wrap; gap: 26px 34px; margin-top: 34px; }
.pixie-stats div { min-width: 110px; }
.pixie-stats strong { display: block; font-family: var(--tp-ff-clash-bold); font-size: 40px; line-height: 1; color: var(--pixie-pink); }
.pixie-stats span { display: block; font-size: 13px; color: rgba(249, 244, 232, .65); margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; }
.studio-project-content p { color: rgba(249, 244, 232, .7); font-size: 16px; line-height: 1.6; margin-top: 18px; max-width: 360px; }
.studio-project-content span.pixie-client { color: var(--pixie-gold); }
@media (max-width: 1199px) { .studio-project-content-wrap { margin-bottom: 30px; } .studio-project-thumb { height: auto; aspect-ratio: 16/9; } .studio-project-thumb.is-split { aspect-ratio: auto; } }

/* Vertical showcase (9:16 posters) */
.pixie-showcase-head { margin-bottom: 70px; }
.studio-showcase-thumb { position: relative; overflow: hidden; border-radius: 14px; }
.studio-showcase-thumb img { aspect-ratio: 9/16; object-fit: cover; }
.studio-showcase-thumb figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.85)); }
.studio-showcase-thumb figcaption b { display: block; font-family: var(--tp-ff-clash-bold); font-size: 34px; color: var(--pixie-pink); line-height: 1; }
.studio-showcase-thumb figcaption span { font-size: 14px; color: #fff; text-transform: uppercase; letter-spacing: .06em; }

/* Services list descriptions */
.tp-award-box-left .pixie-service-desc { display: block; font-size: 15px; color: rgba(249, 244, 232, .6); margin-top: 6px; text-transform: none; letter-spacing: 0; }

/* Clients marquee */
.des-brand-item-inner img { max-height: 70px; max-width: 200px; width: auto; object-fit: contain; opacity: .9; }
@media (max-width: 767px) { .des-brand-item-inner img { max-height: 44px; max-width: 140px; } }

/* Press */
.pixie-press-item { display: block; }
.pixie-press-item .pixie-press-thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; margin-bottom: 18px; }
.pixie-press-item .pixie-press-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.pixie-press-item:hover .pixie-press-thumb img { transform: scale(1.05); }
.pixie-press-item h5 { font-family: var(--tp-ff-clash-semibold); text-transform: uppercase; color: #fff; font-size: 20px; margin: 0; }

/* Results cards (reuses testimonial slider) */
.design-testimonial-review h4 { color: var(--pixie-pink) !important; }
.design-testimonial-author span { color: var(--pixie-gold); }

/* Team */
.studio-team-thumb img { aspect-ratio: 340/440; object-fit: cover; width: 340px; max-width: 100%; }
.pixie-crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 30px; }
.pixie-crew figure { margin: 0; text-align: center; }
.pixie-crew img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; filter: grayscale(1); transition: filter .4s; }
.pixie-crew figure:hover img { filter: none; }
.pixie-crew b { display: block; color: #fff; font-family: var(--tp-ff-clash-semibold); margin-top: 12px; font-size: 16px; text-transform: uppercase; }
.pixie-crew span { color: rgba(249,244,232,.6); font-size: 13px; }
@media (max-width: 991px) { .pixie-crew { grid-template-columns: repeat(3, 1fr); } }

/* CTA */
.pixie-cta { padding: 160px 0 170px; text-align: center; }
.pixie-cta p { color: rgba(249,244,232,.75); font-size: 20px; max-width: 620px; margin: 30px auto 45px; }
.pixie-cta .tp-btn-red-border { font-size: 18px; padding: 18px 34px; border-radius: 40px; }
.pixie-cta .tp-btn-red-border:hover { background: var(--pixie-pink); border-color: var(--pixie-pink); }
@media (max-width: 767px) { .pixie-cta { padding: 90px 0 100px; } }

.tp-copyright-big-text { color: var(--pixie-pink); }
.tp-footer-widget-title small { display: block; color: var(--pixie-gold); font-size: 14px; letter-spacing: .2em; margin-top: 14px; }
.des-brand-item-inner img { filter: brightness(0) invert(1); opacity: .85; }
/* Wordmark logos */
.pixie-logo img.pixie-logo-mark { width: 40px; }
.pixie-logo img.pixie-logo-word { width: 190px; height: auto; filter: none; }
@media (max-width: 575px) { .pixie-logo img.pixie-logo-word { width: 150px; } .pixie-logo img.pixie-logo-mark { width: 32px; } }
.pixie-footer-logo { display: block; width: 300px; max-width: 100%; height: auto; margin-bottom: 30px; }

/* ===================== Mobile app layer ===================== */
.app-tabbar, .app-home, .app-rail, .app-logos, .app-stats { display: none; }

@media (max-width: 767px) {
  html.is-app, html.is-app body { overflow-x: hidden; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  #magic-cursor, .back-to-top-wrapper, #preloader { display: none !important; }

  /* app top bar */
  .tp-header-5-area { position: fixed !important; top: 0; left: 0; right: 0; z-index: 99; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px !important;
    background: rgba(15, 15, 16, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); }
  .tp-header-5-area .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tp-header-5-bar span { width: 26px !important; }

  /* bottom tab bar */
  .app-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; justify-content: space-around; align-items: flex-end;
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    background: rgba(18, 18, 20, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.08); }
  .app-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(249,244,232,.55); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-decoration: none; padding: 4px 0; }
  .app-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .app-tabbar a.is-active { color: #fff; }
  .app-tabbar a.is-active svg { stroke: var(--pixie-pink); }
  .app-tabbar a.is-cta svg { width: 40px; height: 40px; padding: 9px; margin-top: -18px; border-radius: 14px; background: var(--pixie-pink); stroke: #fff; box-shadow: 0 6px 20px rgba(255, 26, 108, .45); }

  /* app home replaces desktop hero + banner */
  .studio-hero-area, .studio-hero-banner-area { display: none !important; }
  .app-home { display: block; padding: calc(92px + env(safe-area-inset-top, 0px)) 0 30px; }
  .app-home > *:not(.app-rail) { padding-left: 18px; padding-right: 18px; }
  .app-home-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
  .app-home-mark { width: 64px; filter: drop-shadow(0 0 18px rgba(255,26,108,.55)); }
  .app-home-word { width: 210px; }
  .app-home-title { font-family: var(--tp-ff-clash-bold); font-size: 44px; line-height: 1; letter-spacing: -.02em; color: #fff; text-transform: uppercase; margin: 0 0 22px; text-wrap: balance; }
  .app-home-title em { display: block; font-style: normal; color: var(--pixie-pink); margin-top: 6px; }
  .app-home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 34px; }
  .app-btn { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 14px; font-family: var(--tp-ff-clash-semibold); font-size: 15px; color: #fff; background: #1d1d20; border: 1px solid rgba(255,255,255,.1); text-decoration: none; }
  .app-btn-primary { background: var(--pixie-pink); border-color: var(--pixie-pink); box-shadow: 0 8px 24px rgba(255,26,108,.35); }
  .app-rail-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .app-rail-head b { font-family: var(--tp-ff-clash-semibold); font-size: 20px; color: #fff; }
  .app-rail-head a { font-size: 14px; color: var(--pixie-pink); }
  .app-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .app-chips span { font-size: 12px; padding: 7px 12px; border-radius: 20px; background: #1b1b1d; color: rgba(249,244,232,.8); border: 1px solid rgba(255,255,255,.08); }

  /* horizontal snap rails */
  .app-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 10px; scroll-padding-left: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .app-rail::-webkit-scrollbar { display: none; }
  .app-poster { flex: 0 0 42%; scroll-snap-align: start; position: relative; text-decoration: none; }
  .app-poster img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; display: block; }
  .app-poster b { display: block; color: #fff; font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.25; }
  .app-poster-views { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,26,108,.92); padding: 3px 8px; border-radius: 8px; }
  .app-rail-lg .app-poster { flex-basis: 62%; }
  .studio-showcase-wrap { display: none; }
  .studio-showcase-area { margin-bottom: 80px !important; }

  /* section rhythm: tighter, app-like */
  .studio-about-area { padding-top: 40px !important; padding-bottom: 50px !important; }
  .studio-step-area { padding-top: 30px !important; padding-bottom: 70px !important; }
  .studio-project-ptb, .studio-project-area { padding-top: 40px !important; }
  .studio-service-area, .des-brand-area, .studio-award-area, .design-testimonial-area { padding-bottom: 80px !important; }
  .studio-about-title-box, .studio-service-title-box, .studio-project-top-wrap, .pixie-showcase-head, .studio-award-title-box, .studio-team-title-box { margin-bottom: 26px !important; }
  .tp-section-title-clash { font-size: 34px !important; line-height: .95 !important; }
  .tp-section-title-clash.fs-200 { font-size: 40px !important; }
  .clash-subtitle-pos { position: static !important; display: inline-block; margin-bottom: 12px; }
  .clash-subtitle-space-1 { padding-left: 0 !important; }
  .studio-about-thumb { margin-bottom: 18px; }
  .studio-about-thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; }

  /* case studies as cards */
  .studio-project-item { background: #18181a; border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 18px; margin-bottom: 18px !important; }
  .studio-project-number i { display: none; }
  .studio-project-content-wrap { gap: 12px; }
  .studio-project-content p { font-size: 15px; margin-top: 10px; }
  .pixie-stats { gap: 14px 22px; margin-top: 16px; }
  .pixie-stats strong { font-size: 28px; }
  .studio-project-thumb.is-split { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  /* services list */
  .tp-award-item { padding: 18px 0 !important; }
  .tp-award-text { font-size: 18px !important; }
  .studio-service-reveal-img { display: none; }

  /* logos grid instead of marquee */
  .des-brand-moving-wrap { display: none; }
  .app-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px; }
  .app-logos div { height: 74px; border-radius: 14px; background: #1b1b1d; display: grid; place-items: center; padding: 14px; }
  .app-logos img { max-height: 30px; max-width: 100%; width: auto; filter: brightness(0) invert(1); opacity: .85; }

  /* press as a swipe rail */
  #press .row.gx-4 { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: -18px; margin-right: -18px; padding: 0 12px; }
  #press .row.gx-4::-webkit-scrollbar { display: none; }
  #press .row.gx-4 > div { flex: 0 0 58%; max-width: 58%; scroll-snap-align: start; }
  .studio-award-content p { font-size: 17px !important; line-height: 1.35 !important; text-transform: none !important; }

  /* results: stat grid instead of slider */
  .design-testimonial-slide-wrap { display: none; }
  .app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-stat { background: #18181a; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 16px; }
  .app-stat b { display: block; font-family: var(--tp-ff-clash-bold); font-size: 30px; line-height: 1; color: var(--pixie-pink); }
  .app-stat span { display: block; color: #fff; font-size: 14px; margin-top: 8px; }
  .app-stat small { display: block; color: var(--pixie-gold); font-size: 11px; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

  /* team + crew as rails */
  .studio-team-wrap { display: none; }
  .app-rail-people { margin: 0 -12px 10px; }
  .app-person { flex: 0 0 60%; margin: 0; scroll-snap-align: start; }
  .app-person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; }
  .app-person b { display: block; color: #fff; font-family: var(--tp-ff-clash-semibold); text-transform: uppercase; margin-top: 10px; }
  .app-person span { color: rgba(249,244,232,.6); font-size: 13px; }
  .pixie-crew { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; margin: 16px -12px 0; padding: 0 12px; }
  .pixie-crew::-webkit-scrollbar { display: none; }
  .pixie-crew figure { flex: 0 0 34%; scroll-snap-align: start; }
  .pixie-crew b { font-size: 13px; }
  .studio-team-area .tp-section-subtitle-clash { margin-top: 10px !important; }

  /* CTA card */
  .pixie-cta { padding: 40px 0 50px; }
  .pixie-cta .container { background: linear-gradient(160deg, #2a0f1b, #141416 70%); border: 1px solid rgba(255,26,108,.35); border-radius: 24px; padding: 32px 22px; width: calc(100% - 36px); }
  .pixie-cta p { font-size: 16px; margin: 16px auto 24px; }
  .pixie-cta .tp-btn-red-border { display: flex; justify-content: center; background: var(--pixie-pink); border-radius: 14px; padding: 16px; font-size: 16px; }

  /* footer */
  .tp-footer-area { padding-top: 50px !important; }
  .pixie-footer-logo { width: 240px; }
  .tp-footer-widget-title { font-size: 34px !important; }
  .tp-copyright-big-text { font-size: 54px !important; }
}
@media (max-width: 767px) {
  .app-tabbar a svg { transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .2s, box-shadow .2s, margin .25s, width .25s, height .25s, padding .25s; border-radius: 14px; }
  /* active tab pops up into a raised pink tile, like Contact */
  .app-tabbar a.is-active svg { width: 40px; height: 40px; padding: 9px; margin-top: -18px; background: var(--pixie-pink); stroke: #fff !important; box-shadow: 0 6px 20px rgba(255, 26, 108, .45); }
  .app-tabbar a.is-active span { color: #fff; }
  /* Contact stays raised; when another tab is active it switches to an outlined tile */
  .app-tabbar a.is-cta:not(.is-active) svg { background: #1d1d20; stroke: var(--pixie-pink); box-shadow: inset 0 0 0 1.5px var(--pixie-pink); }
  .app-tabbar a:active svg { transform: scale(.9); }
}
