/* ============================================================
   POCKET FX — additive animation layer on top of styles.css.
   Loads after styles.css. Never moves buttons/media; only adds
   motion, the serif accent, and the Us-page roster cleanup.
   ============================================================ */

/* ---------- scroll progress ---------- */
.fx-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 6px; z-index: 1200; pointer-events: none;
  background: rgba(11, 11, 11, 0.08);
}
.fx-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--green, #00b80d), #35e047);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 1px 10px rgba(0, 184, 13, 0.55);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* ---------- rolling letters (nav pills + CTAs) ---------- */
.fx-flip { display: inline-flex; }
.fx-flip .fl { position: relative; display: inline-block; overflow: hidden; }
.fx-flip .fl i {
  display: block; font-style: normal;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 18ms);
}
.fx-flip .fl i + i { position: absolute; left: 0; top: 100%; }
a:hover > .fx-flip .fl i,
button:hover > .fx-flip .fl i { transform: translateY(-100%); }

/* ---------- AI-version cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--green, #00b80d);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(11, 11, 11, 0.5);
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s,
    border-color 0.35s;
}

.cursor-ring .cursor-label {
  color: var(--black, #0b0b0b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--green, #00b80d);
}

.cursor-ring.is-label {
  width: 88px;
  height: 88px;
  background: var(--green, #00b80d);
  border-color: var(--green, #00b80d);
}

.cursor-ring.is-label .cursor-label {
  opacity: 1;
}

.cursor-ring.is-label.is-drag {
  width: 80px;
  height: 80px;
  border-color: rgba(11, 11, 11, 0.55);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 8px 22px rgba(11, 11, 11, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cursor-ring.is-label.is-drag .cursor-label {
  color: #0b0b0b;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- home banner text ---------- */
.home-video-banner .home-banner-text .fx-line,
.home-who-copy .fx-line {
  display: block; overflow: hidden;
  font-style: normal; text-transform: uppercase;
}
.home-video-banner .home-banner-text .fx-line-in,
.home-who-copy .fx-line-in {
  display: inline-block; font-style: normal; text-transform: inherit;
  will-change: transform;
}
/* "in your pocket" gets the serif italic accent */
.home-video-banner .home-banner-text .fx-serif,
.home-who-copy .fx-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; text-transform: none;
}
/* letter hover flips */
.home-banner-text .fx-ch,
.home-who-copy .fx-ch { display: inline-block; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.home-banner-text .fx-ch.is-flip,
.home-who-copy .fx-ch.is-flip {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; text-transform: none;
  color: var(--green, #00b80d);
  transform: translateY(-4%) rotate(-5deg);
}
.home-banner-text .fx-serif .fx-ch.is-flip,
.home-who-copy .fx-serif .fx-ch.is-flip {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-style: normal; font-weight: 700; text-transform: uppercase;
  transform: translateY(-4%) rotate(4deg);
}
.home-banner-text .fx-serif .fx-ch.is-flip { color: #ffffff; }
.home-who-copy .fx-serif .fx-ch.is-flip { color: var(--green, #00b80d); }

/* ---------- LET'S WORK button (same spot, new motion) ---------- */
.home-banner-cta {
  overflow: hidden; z-index: 0;
  transition: color 0.3s ease, transform 0.25s ease;
  animation: fx-pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes fx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 184, 13, 0.5); }
  60% { box-shadow: 0 0 0 16px rgba(0, 184, 13, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 184, 13, 0); }
}
.home-banner-cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--green, #00b80d);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.home-banner-cta:hover::before { transform: translateY(0); }
.home-banner-cta:hover {
  color: #0b0b0b;
  transform: translateY(-50%);
  box-shadow: none; filter: none;
  animation: none;
}
.home-banner-cta > .fx-flip { position: relative; z-index: 1; }

/* ---------- hero word reveal + particles stacking ---------- */
.fx-w { display: inline-block; }
.hero-content { position: relative; z-index: 2; }
.fx-webgl { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx-webgl canvas { width: 100%; height: 100%; display: block; }
/* keep banner text + CTA above the particle canvas */
.home-video-banner .home-banner-text { z-index: 2; }
.home-video-banner .home-banner-cta { z-index: 2; }
.pocket-hero .fx-webgl {
  opacity: 0.9;
}
.pocket-hero-content {
  position: relative;
  z-index: 2;
}
.pocket-display.fx-hero-display {
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.us-roster-kicker.fx-hero-display {
  line-height: 0.94;
}
:root {
  /* how far cards get pulled up onto the green heroes */
  --roster-pull: clamp(96px, 11vw, 168px);
  --case-pull: clamp(64px, 8vw, 120px);
}
.us-refresh-hero {
  align-items: center;
  min-height: 100svh;
  padding-top: 128px;
  /* green extends down; the pulled-up roster lands here, clear of the text */
  padding-bottom: calc(var(--roster-pull) + clamp(56px, 7vw, 96px));
}
.us-refresh-hero .pocket-display.fx-hero-display {
  max-width: 1280px;
  font-size: clamp(52px, 9vw, 132px);
}
.us-refresh-hero .us-roster-kicker.fx-hero-display {
  max-width: 940px;
  margin-top: clamp(12px, 2vw, 24px);
  font-size: clamp(34px, 5vw, 72px);
}
.us-refresh-hero .pocket-hero-note {
  margin-top: clamp(16px, 2vw, 28px);
}
.pocket-display .fx-line,
.us-roster-kicker .fx-line {
  display: block;
  overflow: hidden;
}
.pocket-display .fx-line-in,
.us-roster-kicker .fx-line-in {
  display: inline-block;
  will-change: transform;
}
.pocket-display .fx-serif,
.us-roster-kicker .fx-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}
.pocket-display .fx-ch,
.us-roster-kicker .fx-ch {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pocket-display .fx-ch.is-flip,
.us-roster-kicker .fx-ch.is-flip {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--white, #ffffff);
  text-transform: none;
  transform: translateY(-4%) rotate(-5deg);
}
.pocket-display .fx-serif .fx-ch.is-flip,
.us-roster-kicker .fx-serif .fx-ch.is-flip {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 700;
  color: var(--black, #0b0b0b);
  text-transform: uppercase;
  transform: translateY(-4%) rotate(4deg);
}

/* ---------- team number chips ---------- */
.us-video-card, .us-profile-card { position: relative; }
.fx-num {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: #ffffff; background: rgba(11, 11, 11, 0.75);
  border-radius: 999px; padding: 5px 10px;
  pointer-events: none;
}

/* ---------- team hover lift ---------- */
.us-video-card, .us-profile-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.us-video-card:hover, .us-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.24);
}

/* ---------- Us page: tidy the roster (desktop collage fix) ---------- */
@media (min-width: 901px) {
  body.us-page .us-hero-video {
    display: flex; justify-content: center; align-items: flex-start;
    gap: clamp(36px, 4vw, 80px);
    padding: 150px 8vw 20px;
    min-height: auto;
    order: 0; /* keep videos above the managers (styles.css reorders with order:1) */
  }
  body.us-page .us-hero-video .us-video-wrap,
  body.us-page .us-video-anastasia,
  body.us-page .us-video-dasha {
    transform: none !important;
    --us-shift: 0px; --us-shift-y: 0px;
    margin: 0 !important;
    width: clamp(280px, 26vw, 380px);
    animation: none;
  }
  body.us-page .us-video-dasha .us-video-media { width: 100%; transform: none; }
  body.us-page .us-video-card { width: 100% !important; }
  body.us-page .section.us-manager {
    min-height: auto;
    padding: 40px 8vw 60px;
    margin: 0 !important;
  }
  body.us-page .us-manager:last-of-type { margin-bottom: 120px !important; }
  body.us-page .us-profile-card--platon,
  body.us-page .us-profile-card--serhii { transform: none !important; }
  body.us-page .section.us-manager-duo {
    display: flex; justify-content: center; align-items: flex-start;
    gap: clamp(36px, 4vw, 80px);
  }
}
@media (max-width: 900px) {
  .section.us-manager-duo { flex-direction: column; align-items: center; gap: 24px; }
  body.us-page.us-mobile-roster .us-profile-card--serhii { margin-top: 0 !important; }
  .pocket-display.fx-hero-display {
    max-width: 100%;
    font-size: clamp(40px, 11vw, 52px);
    letter-spacing: -0.03em;
  }
  .work-refresh-hero .pocket-display.fx-hero-display {
    font-size: clamp(40px, 10.6vw, 48px);
  }
  .us-refresh-hero {
    min-height: 76svh;
    padding-top: 132px;
    padding-bottom: calc(var(--roster-pull) + 48px);
  }
  .us-refresh-hero .pocket-display.fx-hero-display {
    font-size: clamp(34px, 9.5vw, 38px);
  }
  .us-refresh-hero .us-roster-kicker.fx-hero-display {
    font-size: clamp(28px, 8vw, 34px);
  }
  .pocket-hero-note {
    max-width: min(32ch, calc(100vw - 40px));
    overflow-wrap: break-word;
  }
}

/* ============================================================
   MOBILE POLISH PASS — services rebuild, roster overlap,
   square case media, footer mark fix
   ============================================================ */

/* ---------- Us page: roster hugs the spirit hero ---------- */
.us-roster-section { padding-top: 0; }
.us-roster-section .pocket-team {
  position: relative; z-index: 3;
  margin-top: calc(-1 * var(--roster-pull));
}

@media (max-width: 900px) {
  .us-roster-section .pocket-team {
    margin-top: calc(-1 * var(--roster-pull) - 40px);
  }
}

.us-about-section { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- services page ---------- */
.services-hero {
  align-items: center;
  min-height: auto;
  padding: 170px clamp(22px, 7vw, 92px) clamp(40px, 6vw, 70px);
}
.services-hero .pocket-display { font-size: clamp(46px, 8.4vw, 124px); }
body.services-page .services-showcase { min-height: auto; display: block; }
.services-offers { padding-top: clamp(28px, 4vw, 56px); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

/* neutralize the legacy .smm-card collage rules */
.services-showcase .smm-card.svc-card,
.services-showcase .smm-card.svc-card.freelance-card {
  position: relative !important;
  left: auto !important; top: auto !important;
  margin: 0 !important;
  width: auto !important; max-width: none !important;
  transform: none !important;
  padding: clamp(26px, 3.6vw, 48px);
  cursor: pointer;
  touch-action: auto;
}

.svc-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(12px, 1.6vw, 20px);
  aspect-ratio: 1 / 1;
  padding: clamp(26px, 3.6vw, 48px);
  border-radius: 22px;
  background: var(--green, #00b80d);
  color: var(--white, #ffffff);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.services-showcase .smm-card.svc-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.svc-badge {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white, #ffffff);
  color: var(--black, #0b0b0b);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.svc-title {
  margin: 0;
  font-family: "Montserrat", "Montserrat Alternates", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 0.9; font-weight: 800;
  letter-spacing: -0.03em; text-transform: uppercase;
}

.svc-sub {
  margin: 0;
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.svc-list {
  margin: clamp(6px, 1vw, 12px) 0 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: clamp(8px, 1vw, 14px);
}
.svc-list li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.35;
}
.svc-list li::before {
  content: "#";
  flex: none;
  color: #0b2c4f;
  font-weight: 800;
}

.svc-cta {
  margin-top: auto;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.svc-cta em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; text-transform: none;
  font-size: 1.25em; letter-spacing: 0;
}
.svc-cta i { font-style: normal; transition: transform 0.35s ease; }
.services-showcase .svc-card:hover .svc-cta { border-color: #0b2c4f; color: #ffffff; }
.services-showcase .svc-card:hover .svc-cta i { transform: translate(4px, -4px); }

.svc-blur {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(8px, 1.2vw, 16px);
  filter: blur(7px);
  pointer-events: none; user-select: none;
}
.svc-blur strong {
  display: block;
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.svc-blur span {
  display: block; margin-top: 4px;
  font-size: clamp(11px, 1.1vw, 14px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.svc-case {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22); }
.svc-case video, .svc-case img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}
.svc-case:hover video, .svc-case:hover img { transform: scale(1.07); }
.svc-case-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--black, #0b0b0b);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- mobile polish ---------- */
@media (max-width: 900px) {
  /* work page: pull the hero copy and cases up */
  .work-refresh-hero {
    min-height: auto;
    padding-top: 116px;
    padding-bottom: calc(var(--case-pull) + 36px);
  }
  .work-cases-section { padding-top: 0; }
  .pocket-case { padding: 26px 0; }

  /* case videos are square sources — show them square */
  .pocket-case-media { aspect-ratio: 1 / 1; }

  /* footer "pocket©" mark: keep it fully on screen */
  .pocket-footer { padding-bottom: calc(21vw + 30px); }
  .pocket-footer-mark {
    left: 50%; bottom: 10px;
    transform: translateX(-50%);
    font-size: 21vw;
    line-height: 0.9;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.3);
  }

  /* services on phones: one column of big squares */
  .services-hero { padding: 108px 20px 30px; }
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { aspect-ratio: auto; min-height: 92vw; }
  .services-showcase .smm-card.svc-card,
  .services-showcase .smm-card.svc-card.freelance-card {
    width: auto !important;
    margin: 0 !important;
    padding: 24px 22px !important;
    transform: none !important;
  }
  .svc-title { font-size: clamp(34px, 10vw, 44px); }
  .svc-list li { font-size: 16px; }
  .svc-blur { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   REFINEMENT PASS — intro sparkles, green overlaps, footer mark,
   services card upgrade, case-page popup, SB polish
   ============================================================ */

/* ---------- intro sits above everything (mobile nav is z-index 999) ---------- */
.intro { z-index: 2500; }

/* ---------- work page: first case starts on the green ---------- */
.work-refresh-hero {
  padding-bottom: calc(var(--case-pull) + clamp(40px, 5vw, 72px));
}
.work-cases-section { padding-top: 0; }
.work-cases-section .pocket-cases {
  position: relative; z-index: 2;
  margin-top: calc(-1 * var(--case-pull));
}
.work-cases-section .pocket-case:first-child {
  border-top: none;
  padding-top: 0;
}

/* ---------- footer pocket© mark: centered + fully visible (desktop) ---------- */
@media (min-width: 901px) {
  .work-cases-section .pocket-cases {
    margin-top: 0;
  }

  .pocket-footer { padding-bottom: calc(13vw + 34px); }
  .pocket-footer-mark {
    left: 50%; right: auto; bottom: 10px;
    transform: translateX(-50%);
    font-size: 13vw;
    line-height: 0.9;
    white-space: nowrap;
  }
}

/* ---------- services offer cards: upgraded look ---------- */
.svc-card {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background-image: radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, 0.18), transparent 55%);
}
.svc-card::after {
  content: attr(data-num);
  position: absolute;
  right: 16px; bottom: 2px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
/* Keep both service offers on the same brand-navy background. */
.services-showcase .smm-card.svc-card,
.services-showcase .smm-card.svc-card.freelance-card {
  background-color: #0b2c4f;
}
.svc-card--freelance .svc-badge { background: var(--green, #00b80d); color: #ffffff; }
.svc-card--freelance .svc-blur strong { color: #ffffff; }
.svc-card--freelance .svc-cta { border-color: rgba(255, 255, 255, 0.45); }
.services-showcase .svc-card--freelance:hover .svc-cta { border-color: var(--green, #00b80d); }
.svc-case-tag {
  white-space: normal;
  line-height: 1.3;
  max-width: calc(100% - 32px);
}

/* ---------- case pages: mobile "not optimized" popup ---------- */
.mobile-project-modal .contact-modal-overlay {
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mobile-project-modal .contact-modal-card {
  width: min(340px, calc(100vw - 40px));
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: var(--white, #ffffff);
  color: var(--black, #0b0b0b);
  text-align: left;
  transform: none;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}
.mobile-project-modal .contact-modal-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(11, 11, 11, 0.72);
}
.mobile-project-modal .contact-modal-card p strong {
  display: block;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--black, #0b0b0b);
}
.mobile-project-modal .contact-modal-card p:nth-of-type(2) { margin-bottom: 12px; }
.mobile-project-modal .contact-modal-close {
  margin-top: 16px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 999px;
  background: var(--green, #00b80d);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- SB case page polish (SB palette: green/white + #1977f3 / #ff4fa3) ---------- */
body.sb-page .sb-carousel-btn {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(11, 11, 11, 0.25);
  border-radius: 50%;
  background: #ffffff;
  color: #0b0b0b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
body.sb-page .sb-carousel-btn:hover {
  background: var(--green, #00b80d);
  border-color: var(--green, #00b80d);
  color: #ffffff;
  transform: translateY(-2px);
}
body.sb-page .sb-carousel-item img {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}
body.sb-page .sb-desktop-media-item,
body.sb-page .sb-mobile-media-item {
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
body.sb-page .sb-desktop-home-vid,
body.sb-page .sb-mobile-home-vid {
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
body.sb-page .sb-stat-block,
body.sb-page .sb-mobile-stat-block {
  border-top: 2px solid rgba(11, 11, 11, 0.85);
  padding-top: 14px;
}
body.sb-page .sb-desktop-continued span,
body.sb-page .sb-mobile-continued span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
@media (max-width: 900px) {
  body.sb-page .sb-mobile-copy,
  body.sb-page .sb-mobile-branding-copy,
  body.sb-page .sb-mobile-home-copy {
    line-height: 1.62;
  }
  body.sb-page .sb-mobile-media-grid { gap: 12px; }
}

/* ============================================================
   POPUP + MENU PASS — WhatsApp link, project modal redesign,
   zoomable diagram, mobile "Let's Work" oval
   ============================================================ */

/* ---------- WhatsApp link in contact popups ---------- */
.contact-modal-links .contact-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 18px 10px 14px;
  border: none;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(15px, 1.9vw, 19px);
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.contact-modal-links .contact-wa svg { flex: none; }
.contact-modal-links .contact-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
  filter: brightness(1.03);
}

/* ---------- project modal: matches the contact modal ---------- */
.project-modal { z-index: 1200; }
.project-modal .project-modal-overlay {
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-modal .project-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--white, #ffffff);
  color: var(--black, #0b0b0b);
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s ease;
}
.project-modal.is-open .project-modal-card { transform: translateY(0) scale(1); }
/* kill the legacy desktop scale(2) blow-up */
@media (min-width: 901px) {
  .project-modal .project-modal-card { transform: translateY(30px) scale(0.96); }
  .project-modal.is-open .project-modal-card { transform: translateY(0) scale(1); }
}
.project-modal .project-modal-card h3 {
  margin: 0 52px 10px 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
}
.project-modal .project-modal-card h3 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; text-transform: none;
}
.project-modal-lead {
  margin: 0 0 20px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  color: rgba(11, 11, 11, 0.68);
}
.project-modal .project-modal-image-link {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f4;
  cursor: zoom-in;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}
.project-modal .project-modal-image-link img {
  width: 100%;
  height: auto;
  display: block;
  transform: none;               /* remove old scale(1.2) crop */
  border-radius: 16px;
  margin: 0;
  transition: transform 0.5s ease;
}
.project-modal .project-modal-image-link:hover img { transform: scale(1.03); }
.project-modal-zoom-hint {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.78);
  color: #ffffff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.project-modal-zoom-hint i { font-style: normal; font-size: 15px; line-height: 1; }
.project-modal .project-modal-card .contact-modal-links { margin-bottom: 18px; }
.project-modal .project-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1.5px solid rgba(11, 11, 11, 0.2);
  border-radius: 50%;
  background: var(--white, #ffffff);
  color: var(--black, #0b0b0b);
  font-size: 22px; line-height: 1; font-weight: 400;
  transition: background 0.25s ease;
}
.project-modal .project-modal-close:hover { background: var(--green, #00b80d); color: #ffffff; }

/* ---------- services popups: related case study cards ---------- */
body.services-page .service-case-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: #0b2c4f;
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 18px 42px rgba(11, 44, 79, 0.22);
}

body.services-page .service-case-card--smm { display: none; }
body.services-page .contact-modal.has-service-case .service-case-card--smm {
  display: flex;
}

body.services-page .service-case-card video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.65s ease;
}

body.services-page .service-case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 13, 22, 0.03) 28%, rgba(5, 13, 22, 0.9) 100%);
}

body.services-page .service-case-card:hover video { transform: scale(1.07); }

body.services-page .service-case-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: clamp(22px, 3vw, 34px);
  box-sizing: border-box;
}

body.services-page .service-case-card-copy > span:first-child {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.services-page .service-case-card-copy strong {
  max-width: 11ch;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

body.services-page .service-case-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0b0b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.services-page .service-case-card-action i {
  font-size: 15px;
  font-style: normal;
}

body.services-page .contact-modal-close,
body.services-page .project-modal-close { z-index: 4; }

@media (min-width: 821px) {
  body.services-page .contact-modal.has-service-case .contact-modal-card,
  body.services-page .project-modal .project-modal-card {
    width: min(1040px, calc(100vw - 64px));
    max-height: calc(100dvh - 48px);
    padding: clamp(28px, 3vw, 40px);
    overflow: auto;
  }

  body.services-page .contact-modal.has-service-case .service-modal-layout,
  body.services-page .project-modal .service-modal-layout {
    display: grid;
    align-items: stretch;
    gap: clamp(24px, 3vw, 36px);
  }

  body.services-page .contact-modal.has-service-case .service-modal-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }

  body.services-page .project-modal .service-modal-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  body.services-page .contact-modal.has-service-case .service-modal-copy {
    align-self: center;
  }
}

@media (max-width: 820px) {
  body.services-page .contact-modal.has-service-case .contact-modal-card,
  body.services-page .project-modal .project-modal-card {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px 20px 20px;
    border-radius: 22px;
    overflow-y: auto;
  }

  body.services-page .contact-modal.has-service-case .service-modal-layout,
  body.services-page .project-modal .service-modal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.services-page .service-case-card {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  body.services-page .service-case-card-copy { padding: 20px; }
  body.services-page .service-case-card-copy strong { font-size: 24px; }
}

/* ---------- image viewer: bar, hint, pan stage ---------- */
.image-viewer .image-viewer-overlay {
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-viewer .image-viewer-card {
  width: min(94vw, 1024px);
  max-height: 92dvh;
  padding: 14px;
  border-radius: 20px;
  gap: 10px;
  overflow: hidden;
}
.image-viewer-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.image-viewer .image-viewer-back,
.image-viewer .image-viewer-controls button {
  border: 0;
  border-radius: 999px;
  background: #0b0b0b;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.image-viewer .image-viewer-back { padding: 9px 16px; font-size: 14px; }
.image-viewer .image-viewer-controls { display: flex; gap: 8px; }
.image-viewer .image-viewer-controls button {
  min-width: 42px; height: 42px;
  padding: 0 12px; font-size: 18px;
}
.image-viewer .image-viewer-controls .image-viewer-zoom-reset { font-size: 13px; }
.image-viewer .image-viewer-back:hover,
.image-viewer .image-viewer-controls button:hover { background: var(--green, #00b80d); }
.image-viewer-hint {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(11, 11, 11, 0.55);
  letter-spacing: 0.02em;
}
.image-viewer-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
  background: #eef1f4;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.image-viewer-stage.is-grabbing { cursor: grabbing; }
.image-viewer .image-viewer-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  transform-origin: top left;
  transform: scale(var(--zoom, 1));
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- mobile menu: Pocket wordmark-inspired buttons ---------- */
@media (max-width: 900px) {
  .mobile-menu-panel {
    border-top: 4px solid var(--green, #00b80d);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    box-shadow: 0 24px 54px rgba(11, 44, 79, 0.18);
  }

  .mobile-menu-links {
    gap: 12px;
    margin-top: -36px;
    font-family: "Arial Rounded MT Bold", "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(27px, 8vw, 34px);
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.055em;
    text-transform: lowercase;
  }

  .mobile-menu-links a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 16px 10px 12px;
    border: 1.5px solid rgba(11, 44, 79, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: #0b0b0b;
    box-shadow: 0 8px 20px rgba(11, 44, 79, 0.07);
    box-sizing: border-box;
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease,
      background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-menu-links a::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 184, 13, 0.1);
    color: var(--green, #00b80d);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.08em;
  }

  .mobile-menu-links a::after {
    content: "↗";
    margin-left: auto;
    color: #0b2c4f;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
  }

  .mobile-menu-links a.active {
    border-color: var(--green, #00b80d);
    background: var(--green, #00b80d);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 184, 13, 0.24);
  }

  .mobile-menu-links a.active::before {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .mobile-menu-links a.active::after { color: #ffffff; }

  .mobile-menu-links a:nth-child(5) {
    align-self: stretch;
    min-height: 64px;
    margin-top: clamp(20px, 4vh, 34px);
    padding: 12px 18px;
    border-color: #0b2c4f;
    background: #0b2c4f;
    color: #ffffff;
    font-family: "Arial Rounded MT Bold", "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(27px, 8vw, 34px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.055em;
    text-transform: lowercase;
    box-shadow: 0 16px 32px rgba(11, 44, 79, 0.25),
      0 0 0 5px rgba(0, 184, 13, 0.08);
  }

  .mobile-menu-links a:nth-child(5)::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--green, #00b80d);
  }

  .mobile-menu-links a:nth-child(5)::after { color: #ffffff; }
  .menu-open .mobile-menu-links a:active { transform: scale(0.98); }

  @media (hover: hover) {
    .mobile-menu-links a:hover:not(.active) {
      border-color: rgba(0, 184, 13, 0.55);
      box-shadow: 0 12px 26px rgba(11, 44, 79, 0.12);
    }
  }
}

/* ---------- Sweet Baking galleries: responsive, swipeable carousel ---------- */
body.sb-page .sb-carousel {
  --sb-gallery-gap: clamp(14px, 1.6vw, 24px);
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

body.sb-page .sb-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

body.sb-page .sb-carousel-heading,
body.sb-page .sb-carousel-title,
body.sb-page .sb-carousel-hint {
  margin: 0;
}

body.sb-page .sb-carousel-title {
  color: #0b0b0b;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.sb-page .sb-carousel-hint {
  margin-top: 5px;
  color: rgba(11, 11, 11, 0.58);
  font-size: 13px;
  font-weight: 600;
}

body.sb-page .sb-carousel-controls,
body.sb-page .sb-carousel-actions {
  display: flex;
  align-items: center;
}

body.sb-page .sb-carousel-controls { gap: 14px; }
body.sb-page .sb-carousel-actions { gap: 8px; }

body.sb-page .sb-carousel-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  height: 46px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.07);
  color: rgba(11, 11, 11, 0.55);
  box-sizing: border-box;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

body.sb-page .sb-carousel-status strong { color: #0b0b0b; }

body.sb-page .sb-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid rgba(11, 11, 11, 0.28);
  border-radius: 50%;
  background: #ffffff;
  color: #0b0b0b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, opacity 0.2s ease;
}

body.sb-page .sb-carousel-btn:hover:not(:disabled) {
  background: var(--green, #00b80d);
  border-color: var(--green, #00b80d);
  color: #ffffff;
  transform: translateY(-2px);
}

body.sb-page .sb-carousel-btn:focus-visible,
body.sb-page .sb-carousel-track:focus-visible {
  outline: 3px solid rgba(0, 184, 13, 0.32);
  outline-offset: 3px;
}

body.sb-page .sb-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

body.sb-page .sb-carousel-track,
body.sb-page .sb-mobile-brandbook-carousel .sb-carousel-track {
  display: flex;
  gap: var(--sb-gallery-gap);
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-behavior: smooth;
  scroll-padding-left: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

body.sb-page .sb-carousel-track::-webkit-scrollbar { display: none; }
body.sb-page .sb-carousel-track.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

body.sb-page .sb-carousel-item,
body.sb-page .sb-mobile-brandbook-carousel .sb-carousel-item {
  position: relative;
  margin: 0;
  flex: 0 0 calc(100% - clamp(72px, 8vw, 128px));
  aspect-ratio: 16 / 9;
  border: 1.5px solid rgba(11, 11, 11, 0.72);
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #ffffff;
  box-sizing: border-box;
}

body.sb-page .sb-carousel-item img,
body.sb-page .sb-mobile-brandbook-carousel .sb-carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

body.sb-page .sb-carousel-progress {
  height: 4px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.1);
}

body.sb-page .sb-carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green, #00b80d);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

@media (min-width: 901px) {
  body.sb-page .sb-carousel-header,
  body.sb-page .sb-carousel-progress {
    margin-right: clamp(20px, 3vw, 48px);
  }
}

@media (max-width: 900px) {
  body.sb-page .sb-mobile-brandbook-carousel {
    margin-bottom: 34px;
  }

  body.sb-page .sb-carousel-header {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  body.sb-page .sb-carousel-title { font-size: 15px; }
  body.sb-page .sb-carousel-hint { display: none; }
  body.sb-page .sb-carousel-controls { gap: 8px; }
  body.sb-page .sb-carousel-status {
    min-width: 64px;
    height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.sb-page .sb-carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  body.sb-page .sb-mobile-brandbook-carousel .sb-carousel-track {
    gap: 12px;
    padding: 0 4px 10px;
    scroll-padding-left: 4px;
  }

  body.sb-page .sb-mobile-brandbook-carousel .sb-carousel-item {
    flex-basis: calc(100% - 32px);
    border-radius: 16px;
  }

  body.sb-page .sb-carousel-progress { margin: 2px 4px 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .home-banner-cta { animation: none; }
  .fx-flip .fl i { transition: none; }
  .home-banner-text .fx-ch { transition: none; }
  body.sb-page .sb-carousel-track { scroll-behavior: auto; }
  body.sb-page .sb-carousel-progress span { transition: none; }
}
