:root {
  /* Type families */
  --font-display: "Poppins", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Modular scale (~1.25) */
  --fs-xs: 0.75rem;      /* 12 */
  --fs-sm: 0.875rem;     /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md: 1.125rem;     /* 18 */
  --fs-lg: 1.25rem;      /* 20 */
  --fs-xl: 1.5rem;       /* 24 */
  --fs-2xl: 1.875rem;    /* 30 */
  --fs-3xl: 2.25rem;     /* 36 */
  --fs-4xl: clamp(2.5rem, 4vw, 3.25rem);   /* ~40–52 */
  --fs-5xl: clamp(2.75rem, 5vw, 3.75rem);  /* hero */

  /* Line heights */
  --lh-tight: 1.12;
  --lh-snug: 1.28;
  --lh-body: 1.7;
  --lh-relaxed: 1.8;

  /* Letter spacing */
  --ls-tight: -0.025em;
  --ls-normal: 0;
  --ls-wide: 0.06em;
  --ls-eyebrow: 0.18em;

  /* Vertical rhythm (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 5rem;
  --space-12: 6rem;

  /* Colors */
  --color-primary-blue: #3b82f6;
  --color-blue-hover: #2563eb;
  --color-blue-glow: #60a5fa;
  --color-text: #f4f6fb;
  --color-text-secondary: #8b95a7;
  --color-text-muted: #5f6673;
  --border-soft: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #05070c;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.section-shell {
  width: min(100% - 2.75rem, 1280px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-shell {
    width: min(100% - 4rem, 1280px);
  }
}

/* ——— Type roles ——— */
.type-eyebrow {
  margin: 0;
  color: var(--color-primary-blue);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.type-display,
.type-h1,
.type-h2,
.type-h3,
.type-h4 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

.type-display {
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.type-h1 {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
}

.type-h2 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
}

.type-h3 {
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

.type-h4 {
  font-size: var(--fs-lg);
  line-height: 1.35;
}

.type-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--color-text-secondary);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-relaxed);
}

.type-body {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
}

.type-small {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: var(--lh-body);
}

.type-label {
  margin: 0;
  color: var(--color-primary-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.type-stat {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
}

.type-nav {
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.type-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.45;
}

/* ——— Vertical stacks (gap-based rhythm) ——— */
.stack-hero,
.stack-section,
.stack-card,
.stack-service,
.stack-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stack-hero {
  gap: var(--space-7);
}

.stack-hero .hero-actions {
  margin-top: var(--space-2);
}

.stack-section,
.stack-page {
  gap: var(--space-6);
}

.stack-card {
  gap: var(--space-4);
}

.stat-card {
  transition:
    border-color 0.28s ease,
    background-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background-color: rgba(255, 255, 255, 0.055);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(59, 130, 246, 0.12);
}

.stat-card:hover .type-stat {
  color: #60a5fa;
}

.stat-card .type-stat {
  transition: color 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .stat-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  .stat-card:hover {
    transform: none;
  }
}

.stack-service {
  gap: var(--space-5);
  height: 100%;
}

.stack-service .type-link,
.stack-service > a {
  margin-top: auto;
  padding-top: var(--space-3);
}

/* Inside stacks, gap owns the rhythm — kill leftover margins */
.stack-hero > *,
.stack-section > *,
.stack-card > *,
.stack-service > *,
.stack-page > * {
  margin-top: 0 !important;
}

.stack-service .type-link,
.stack-service > a {
  margin-top: auto !important;
}

/* ——— Service cards & hero media ——— */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0e16;
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 7, 12, 0.5) 100%);
  pointer-events: none;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.55s ease;
}

.service-card:hover .service-card__media img {
  transform: translateZ(0) scale(1.03);
}

.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__experience {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
}

.service-hero {
  margin-inline: 0;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0e16;
  aspect-ratio: 16 / 9;
}

.service-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width: 768px) {
  .service-hero {
    aspect-ratio: 16 / 10;
    border-radius: 1.25rem;
  }
}

/* Fallback rhythm when stacks are not used */
.type-eyebrow + .type-display,
.type-eyebrow + .type-h1,
.type-eyebrow + .type-h2,
.type-label + .type-h3,
.type-label + .type-h4 {
  margin-top: var(--space-5);
}

.type-display + .type-lead,
.type-h1 + .type-lead,
.type-h2 + .type-lead,
.type-h2 + .type-body,
.type-h3 + .type-small,
.type-h3 + .type-body,
.type-h4 + .type-small,
.type-stat + .type-small {
  margin-top: var(--space-5);
}

.type-lead + .hero-actions,
.type-body + a,
.type-small + a {
  margin-top: var(--space-6);
}

/* Section spacing */
.section-y {
  padding-block: var(--space-11);
}

.section-y-sm {
  padding-block: var(--space-9);
}

.section-y-lg {
  padding-block: var(--space-12) 7rem;
}

/* Consistent grid gaps for content blocks */
.gap-cards {
  gap: var(--space-5);
}

.gap-sections {
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .section-y {
    padding-block: var(--space-12);
  }

  .section-y-sm {
    padding-block: var(--space-10);
  }

  .section-y-lg {
    padding-block: var(--space-12) 7.5rem;
  }

  .stack-hero {
    gap: var(--space-7);
  }

  .stack-section,
  .stack-page {
    gap: var(--space-6);
  }

  .stack-service {
    gap: var(--space-5);
  }

  .gap-cards {
    gap: var(--space-6);
  }
}

.premium-border {
  border: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  background: linear-gradient(#ffffff0e, #ffffff05), #0b0f17c2;
  box-shadow: 0 24px 90px #0000006b;
}

.blue-glow {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.28);
}

.site-brand {
  flex-shrink: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: 2.75rem;
  max-width: min(12rem, 48vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3.15rem;
    max-width: 14rem;
  }
}

.hero-composition {
  min-height: clamp(28rem, 72vh, 46rem);
  padding-block: 2rem 3rem;
}

.hero-composition--split {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  min-height: clamp(26rem, 68vh, 42rem);
}

@media (min-width: 1024px) {
  .hero-composition--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* Orbital portrait hero */
.hero-portrait {
  position: relative;
  width: min(100%, 20rem);
  margin-inline: auto;
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.94);
  animation: hero-portrait-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

@media (min-width: 640px) {
  .hero-portrait {
    width: min(100%, 22rem);
  }
}

@media (min-width: 1024px) {
  .hero-portrait {
    width: min(100%, 26rem);
    justify-self: end;
    margin-inline: 0;
  }
}

.hero-portrait__glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.42) 0%, rgba(59, 130, 246, 0.08) 42%, transparent 72%);
  filter: blur(18px);
  animation: hero-portrait-glow 7s ease-in-out infinite;
}

.hero-portrait__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: hero-orbit-spin var(--orbit-duration, 28s) linear infinite;
}

.hero-portrait__orbit--1 {
  inset: -3%;
  --orbit-duration: 26s;
}

.hero-portrait__orbit--2 {
  inset: -11%;
  --orbit-duration: 34s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.05);
}

.hero-portrait__orbit--3 {
  inset: -19%;
  --orbit-duration: 44s;
  border-color: rgba(255, 255, 255, 0.04);
}

.hero-portrait__orbit--arc {
  border: none;
  background: conic-gradient(
    from 215deg,
    transparent 0deg,
    rgba(59, 130, 246, 0.08) 18deg,
    rgba(59, 130, 246, 0.85) 52deg,
    rgba(96, 165, 250, 0.45) 88deg,
    transparent 132deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.hero-portrait__dot {
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-portrait__dot--blue {
  width: 0.55rem;
  height: 0.55rem;
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.95);
}

.hero-portrait__dot--white {
  width: 0.4rem;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.hero-portrait__frame {
  position: absolute;
  inset: 7%;
  z-index: 2;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: #0a0d14;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.18),
    0 28px 90px rgba(0, 0, 0, 0.55);
}

.hero-portrait__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

@keyframes hero-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hero-portrait-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-portrait-glow {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-portrait__orbit,
  .hero-portrait__glow {
    animation: none;
  }
}

@media (max-width: 1023px) {
  .hero-composition--split .hero-banner {
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
  }

  .hero-composition--split .hero-actions {
    justify-content: center;
  }

  .hero-composition--split .type-eyebrow {
    justify-content: center;
  }
}

/* Text slide animation */
@keyframes text-slide-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-slide {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--slide-delay, 0ms);
}

.text-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-banner__line {
  opacity: 0;
  transform: translateX(-56px);
  animation: hero-banner-slide 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner .type-eyebrow { animation-delay: 0.08s; }
.hero-banner .hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-banner .hero-line:nth-child(2) { animation-delay: 0.36s; }
.hero-banner .hero-line:nth-child(3) { animation-delay: 0.52s; }
.hero-banner .hero-lead { animation-delay: 0.68s; }
.hero-banner .hero-actions { animation-delay: 0.84s; }

@keyframes hero-banner-slide {
  from {
    opacity: 0;
    transform: translateX(-56px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stack-page > * {
  opacity: 0;
  animation: text-slide-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stack-page > *:nth-child(1) { animation-delay: 0.05s; }
.stack-page > *:nth-child(2) { animation-delay: 0.15s; }
.stack-page > *:nth-child(3) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .text-slide,
  .hero-banner__line,
  .stack-page > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Typography-led hero atmosphere */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.hero-atmosphere__glow--a {
  top: 8%;
  right: 2%;
  width: min(52vw, 32rem);
  height: min(52vw, 32rem);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32) 0%, rgba(59, 130, 246, 0) 70%);
  animation: hero-glow-drift 14s ease-in-out infinite;
}

.hero-atmosphere__glow--b {
  bottom: -18%;
  left: 8%;
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 72%);
  animation: hero-glow-drift 18s ease-in-out infinite reverse;
}

.hero-atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
}

@keyframes hero-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere__glow--a,
  .hero-atmosphere__glow--b {
    animation: none;
  }
}

.hero-display {
  font-size: clamp(3.25rem, 8vw, 6rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em;
  max-width: none;
}

.hero-line {
  display: block;
}

.hero-line + .hero-line {
  margin-top: 0.12em;
}

.hero-line--solid {
  white-space: nowrap;
}

.hero-lead {
  max-width: 28rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

@media (max-width: 900px) {
  .hero-display {
    font-size: clamp(2.55rem, 10.5vw, 4rem) !important;
    line-height: 1.08 !important;
  }

  .hero-line--solid {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .stack-hero {
    max-width: 100%;
  }
}

/* ——— Homepage motion hook (not a project) ——— */
.hook-reel__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #05070c;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 720px);
  margin-inline: auto;
}

.hook-reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #000;
  image-rendering: auto;
}

.hook-reel__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.78) 0%, rgba(5, 7, 12, 0.28) 46%, rgba(5, 7, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 7, 12, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.hook-reel__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 36rem;
}

/* ——— Brand identity case study (Omar / Baba-inspired) ——— */
.brand-signals {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 640px) {
  .brand-signals {
    grid-template-columns: repeat(3, 1fr);
  }
}

.brand-signals .case-signal {
  border-bottom: none;
  padding-block: 0.25rem;
}

.brand-gallery {
  overflow: hidden;
  border-radius: 1.75rem;
  border: 10px solid rgba(255, 255, 255, 0.92);
  background: #f4f6f8;
  padding: 0.75rem;
}

.brand-gallery__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.brand-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #0b0f17;
  min-height: 12rem;
}

.brand-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.brand-gallery__item--hero {
  min-height: 18rem;
}

@media (min-width: 768px) {
  .brand-gallery {
    padding: 1rem;
  }

  .brand-gallery__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(9rem, auto);
    gap: 0.85rem;
  }

  .brand-gallery__item--hero {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 100%;
  }

  .brand-gallery__item--tall {
    grid-column: span 2;
    grid-row: span 2;
  }

  .brand-gallery__item--wide {
    grid-column: span 3;
    min-height: 14rem;
  }

  .brand-gallery__item--mid {
    grid-column: span 2;
    min-height: 12rem;
  }

  .brand-gallery__item--full {
    grid-column: 1 / -1;
    min-height: 16rem;
  }

  .brand-gallery__grid--pair {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .brand-gallery__grid--pair .brand-gallery__item {
    grid-column: span 1 !important;
    min-height: 16rem;
  }
}

/* USP guideline pages — crisp 2-col, never upscale past native 1024px */
.brand-gallery.brand-gallery--pages {
  padding: 0.85rem;
  max-width: 1040px;
  margin-inline: auto;
}

.brand-gallery--pages .brand-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .brand-gallery--pages .brand-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 512px));
    grid-auto-rows: auto;
    grid-auto-flow: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .brand-gallery--pages .brand-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 512px)) !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
  }

  .brand-gallery--pages .brand-gallery__item {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0 !important;
  }
}

.brand-gallery--pages .brand-gallery__item {
  min-height: 0 !important;
  background: #fff;
  line-height: 0;
}

.brand-gallery--pages .brand-gallery__item img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center top;
}

.brand-gallery--pages .brand-gallery__item--hero,
.brand-gallery--pages .brand-gallery__item--tall,
.brand-gallery--pages .brand-gallery__item--wide,
.brand-gallery--pages .brand-gallery__item--mid,
.brand-gallery--pages .brand-gallery__item--full {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
}

.brand-panel--logo img,
.brand-split img[src*="usp-pharmaceutical"] {
  width: 100%;
  height: auto;
  max-width: 1024px;
  margin-inline: auto;
  object-fit: contain;
}

.brand-panel {
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-panel--logo {
  background: var(--brand-panel, #0f766e);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.brand-panel--logo img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.brand-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .brand-split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.brand-swatches {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.brand-swatches--row {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .brand-swatches--row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.brand-color-panel {
  width: 100%;
}

.brand-type-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .brand-type-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-type-row .brand-type-sample + .brand-type-sample {
    margin-top: 0;
  }
}

.brand-swatch {
  border-radius: 1rem;
  min-height: 7.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-swatch__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
}

.brand-swatch__meta {
  margin: 0.2rem 0 0;
  font-size: var(--fs-xs);
  opacity: 0.85;
}

.brand-type-sample {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 1.35rem;
}

.brand-type-sample + .brand-type-sample {
  margin-top: 0.75rem;
}

.brand-type-sample__label {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-type-sample__preview {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.project-card.is-hidden { display: none !important; }
.reel-card.is-hidden { display: none !important; }
.discipline.is-empty { display: none !important; }

/* Portfolio: stacked rows (2-col lead + 3-col rest) */
.portfolio-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portfolio-stack__lead {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.portfolio-stack__rest {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .portfolio-stack__lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-stack__rest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .portfolio-stack__rest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ——— Homepage video section ——— */
.video-work__reels {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-work__reels-head {
  margin-bottom: 1.15rem;
}

.reel-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.reel-rail::-webkit-scrollbar {
  height: 5px;
}

.reel-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.reel-card {
  flex: 0 0 11.25rem;
  width: 11.25rem;
  scroll-snap-align: start;
}

.reel-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.reel-card__media {
  position: relative;
  width: 11.25rem;
  height: 17.5rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #07101c;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.reel-card:hover .reel-card__media,
.reel-card:focus-within .reel-card__media {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-3px);
}

.reel-card__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card__title {
  display: block;
  margin-top: 0.6rem;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.reel-card:hover .reel-card__title,
.reel-card:focus-within .reel-card__title {
  color: #fff;
}

@media (min-width: 768px) {
  .reel-rail {
    gap: 1rem;
  }

  .reel-card {
    flex-basis: 12rem;
    width: 12rem;
  }

  .reel-card__media {
    width: 12rem;
    height: 18.667rem;
  }
}

@media (min-width: 1024px) {
  .reel-card {
    flex-basis: 12.5rem;
    width: 12.5rem;
  }

  .reel-card__media {
    width: 12.5rem;
    height: 19.444rem;
  }
}

#mobile-nav.is-open { display: block; }

/* ——— Case study page ——— */
.case-signals {
  align-content: end;
}

.case-signal {
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-signal:last-child {
  border-bottom: none;
}

.case-signal__title {
  margin: 0;
  color: var(--color-blue-glow);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.case-signal__meta {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.case-gallery {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0d14;
  padding: 0.75rem;
}

.case-gallery__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.case-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #05070c;
  min-height: 14rem;
}

.case-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070c;
  transition: transform 0.55s ease;
}

.case-gallery__item:hover img {
  transform: scale(1.03);
}

/* Social media post gallery — uniform grid, no masonry gaps */
.case-gallery--social .case-gallery__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.case-gallery--social .case-gallery__item {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-gallery--social .case-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-gallery--social .case-gallery__item--portrait img {
  max-height: 22rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .case-gallery--social .case-gallery__item--portrait img {
    max-height: 26rem;
  }
}

@media (min-width: 768px) {
  .case-gallery--social .case-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .case-gallery--social .case-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Packaging design gallery */
.case-gallery--packaging .case-gallery__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.case-gallery--packaging .case-gallery__item {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: #080b12;
}

.case-gallery--packaging .case-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.case-gallery--packaging .case-gallery__item--product {
  background: #0c1018;
}

@media (min-width: 768px) {
  .case-gallery--packaging .case-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.case-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  color: var(--color-text-secondary);
  font-size: var(--fs-xs);
  font-weight: 600;
}

@media (min-width: 640px) {
  .case-gallery {
    padding: 1rem;
    border-radius: 1.75rem;
  }

  .case-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .case-gallery__item {
    min-height: 16rem;
    border-radius: 1.15rem;
  }

  .case-gallery__item--tall {
    min-height: 22rem;
  }

  .case-gallery__item--wide,
  .case-gallery__item--full {
    grid-column: 1 / -1;
    min-height: 18rem;
  }
}

@media (min-width: 1024px) {
  .case-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(11rem, auto);
  }

  .case-gallery__item--tall {
    grid-row: span 2;
    min-height: 100%;
  }

  .case-gallery__item--wide {
    grid-column: span 2;
    min-height: 16rem;
  }

  .case-gallery__item--full {
    grid-column: 1 / -1;
    min-height: 22rem;
  }

  /* Few-image case studies (logos / boards): give visuals room */
  .case-gallery__grid:has(.case-gallery__item:only-child),
  .case-gallery__grid:has(.case-gallery__item:nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }

  .case-gallery__grid:has(.case-gallery__item:only-child) .case-gallery__item,
  .case-gallery__grid:has(.case-gallery__item:nth-child(2):last-child) .case-gallery__item {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 28rem;
  }

  .case-signal {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: 0.65rem;
  }

  .case-signal:last-child {
    border-bottom: none;
  }
}

/* ——— Portfolio library page ——— */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.portfolio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-secondary);
  padding: 0.55rem 0.95rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.portfolio-chip:hover {
  border-color: rgba(59, 130, 246, 0.45);
  color: #fff;
}

.portfolio-chip.is-active {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
}

.portfolio-chip__count {
  display: inline-flex;
  min-width: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 0.1rem 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.portfolio-chip.is-active .portfolio-chip__count {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

.logo-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .logo-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .logo-showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  overflow: hidden;
}

.logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ——— Video case studies ——— */
.project-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-card:hover .project-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #2563eb;
}

.video-stage {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #05070c;
}

.video-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  margin-inline: auto;
  background: #000;
}

.video-stage--wide video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-stage--reel {
  max-width: 28rem;
  margin-inline: auto;
}

.video-stage--reel video {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  max-height: 80vh;
}

/* ——— Brochure PDF preview ——— */
.brochure-pdf {
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0d14;
  padding: 1rem;
}

.brochure-pdf__head {
  margin-bottom: 1rem;
  padding-inline: 0.25rem;
}

.brochure-pdf__status {
  margin: 0 0 1rem;
  padding-inline: 0.25rem;
  color: var(--color-text-muted);
}

.brochure-pdf__status[hidden] {
  display: none;
}

.brochure-pdf__booklet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  max-width: 640px;
  margin-inline: auto;
}

.brochure-pdf__booklet[hidden] {
  display: none;
}

.brochure-pdf__nav {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.brochure-pdf__nav:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.14);
}

.brochure-pdf__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.brochure-pdf__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(260px, 42vh, 420px);
  padding: 0.75rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #f4f6f8;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.brochure-pdf__page {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  line-height: 0;
}

.brochure-pdf__page[hidden] {
  display: none;
}

.brochure-pdf__page canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}

.brochure-pdf__counter {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .brochure-pdf {
    padding: 1.25rem;
  }

  .brochure-pdf__booklet {
    gap: 1rem;
  }

  .brochure-pdf__nav {
    width: 3rem;
    height: 3rem;
  }

  .brochure-pdf__stage {
    height: clamp(300px, 45vh, 440px);
    padding: 0.85rem;
  }
}
