/* ==========================================================================
   Sumit Maurya — Graphic Designer Portfolio
   Reconstructed from Figma (file fmPQkvz7YCYQjHJO0JZAZG, node 3136:2)
   ========================================================================== */

:root {
  --color-bg: #fcfcfc;
  --color-bg-alt: #f2f2f2;
  --color-text-dark: #515050;
  --color-heading-light: #7d7676;
  --color-accent: #b1ff08;
  --color-card-bg: #3b3a3a;
  --color-dark-section-start: #343434;
  --color-dark-section-end: #000000;
  --color-white: #fcfcfc;
  --color-hero-fallback: #045391;

  --font-display: "Anybody", sans-serif;
  --font-script: "Grand Hotel", cursive;

  --container-width: 1200px;
  --section-pad-y: clamp(3rem, 8vw, 7rem);
  --section-pad-x: clamp(1.25rem, 6vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-dark);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
}

.tone-dark {
  color: var(--color-text-dark);
}

.tone-light {
  color: var(--color-heading-light);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--color-hero-fallback);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 50;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.75rem var(--section-pad-x);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav--scrolled {
  background: rgba(23, 23, 23, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding-block: 1rem;
}

.nav__pill {
  flex: 0 0 auto;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: rgba(217, 217, 217, 0.2);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--color-white);
  font-size: clamp(0.85rem, 1.3vw, 1.5625rem);
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s ease;
}



.nav__pill:hover {
  background: var(--color-accent);
  color: #171717;
}

.hero__content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--nav-height, 6.5rem) + clamp(1.5rem, 4.9vw, 5rem)) 0 0 var(--section-pad-x);
  flex-wrap: wrap;
}

.hero__text {
  flex: 1 1 420px;
  min-width: 300px;
  max-width: 660px;
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}

.hero__title {
  font-size: clamp(2.75rem, 9.4vw, 11.25rem);
  font-weight: 500;
  color: var(--color-white);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.15vw, 3.75rem);
  font-weight: 400;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.2rem);
  margin-top: clamp(1.25rem, 2.5vw, 2.25rem);
}

.hero__socials a {
  display: inline-flex;
  width: clamp(2.5rem, 4.3vw, 5.2rem);
  height: clamp(2.5rem, 4.3vw, 5.2rem);
  border-radius: 50%;
  background: rgba(217, 217, 217, 0.3);
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.hero__socials a:hover {
  transform: translateY(-3px);
}

.hero__socials img {
  width: 45%;
  height: 45%;
}

.hero__toolkit {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2rem);
  margin-top: clamp(1.5rem, 3.3vw, 4rem);
  flex-wrap: wrap;
}

.hero__toolkit-label {
  color: var(--color-white);
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  font-weight: 500;
  padding-right: clamp(1rem, 1.7vw, 1.5rem);
  border-right: 1px solid rgba(252, 252, 252, 0.35);
  line-height: 1.25;
}

.toolkit__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.toolkit__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: clamp(84px, 6.2vw, 119px);
  padding: clamp(0.6rem, 1vw, 0.9rem) 0.5rem;
  border-radius: 14px;
  background: rgba(217, 217, 217, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.toolkit__list li:hover {
  background: rgba(217, 217, 217, 0.35);
  transform: translateY(-2px);
}

.toolkit__list img {
  width: clamp(34px, 2.6vw, 50px);
  height: clamp(34px, 2.6vw, 50px);
  border-radius: 7px;
}

.toolkit__list span {
  color: var(--color-white);
  font-size: clamp(0.7rem, 0.9vw, 0.9rem);
  font-weight: 300;
}

.hero__portrait {
  flex: 1 1 42%;
  min-width: 260px;
  max-width: 820px;
  position: relative;
  overflow: hidden;
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Brands ---------- */

.brands {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.brands .container {
  max-width: 1500px;
}

.brands h2 {
  font-size: clamp(1.9rem, 5.74vw, 6.9rem);
  line-height: 1.05;
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brands__grid img {
  width: 100%;
  max-width: 155px;
  height: 65px;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.brands__grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------- Playground ---------- */

.playground {
  background: linear-gradient(178deg, var(--color-dark-section-end) 2%, var(--color-dark-section-start) 78%);
  padding: clamp(2rem, 4.3vw, 5.2rem) var(--section-pad-x) clamp(2.5rem, 7.8vw, 9.4rem);
}

.playground__heading {
  font-size: clamp(1.9rem, 5.74vw, 6.9rem);
  color: var(--color-white);
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
}

.playground__script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-accent);
}

.playground__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  align-items: start;
  gap: clamp(1rem, 2vw, 2.5rem) clamp(0.5rem, 1.2vw, 2rem);
  max-width: 1550px;
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: 1rem;
}

.card {
  position: relative;
  min-width: 0;
  background: var(--color-card-bg);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card:hover .card__image {
  filter: brightness(1.05);
}

.card__image {
  transition: filter 0.25s ease;
}

.card__number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -62%);
  font-size: clamp(2rem, 7vw, 8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #6e6b6b, #201f1f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 0;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.9));
  user-select: none;
  pointer-events: none;
}

.card__image {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  object-fit: cover;
}

.card--16x9 .card__image { aspect-ratio: 16 / 9; }
.card--tall .card__image { aspect-ratio: 4 / 5; }
.card--square .card__image { aspect-ratio: 1 / 1; }

.card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.1rem 1.25rem 1.5rem;
}

.card__title {
  color: var(--color-white);
  font-size: clamp(1.1rem, 1.45vw, 1.74rem);
  font-weight: 400;
  margin: 0;
}

/* ---------- Contact / Footer ---------- */

.contact {
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}

.contact .container {
  max-width: 1400px;
}

.contact__heading {
  font-size: clamp(1.9rem, 5.74vw, 6.9rem);
  line-height: 1.05;
  max-width: 1360px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.contact__card {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  text-align: left;
  flex-wrap: wrap;
}

.contact__portrait {
  width: clamp(120px, 19.2vw, 368px);
  height: clamp(120px, 19.2vw, 368px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__details p {
  margin: 0.5rem 0;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.8vw, 0.9rem);
  font-size: clamp(1rem, 2.15vw, 2.58rem);
}

.contact__row img {
  width: clamp(20px, 1.9vw, 37px);
  height: clamp(20px, 1.9vw, 37px);
}

.contact__name {
  font-size: clamp(1.6rem, 3.9vw, 4.7rem);
  font-weight: 500;
}

.contact__name a,
.contact__row a {
  transition: color 0.2s ease;
}

.contact__name a:hover,
.contact__row a:hover {
  color: var(--color-hero-fallback);
}

.contact__hitmeup {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  margin-top: 1.25rem !important;
  padding: clamp(0.6rem, 1.4vw, 1.1rem) clamp(0.9rem, 1.8vw, 1.5rem);
  font-size: clamp(1rem, 2.15vw, 2.58rem);
  border: 1px solid var(--color-text-dark);
  border-radius: 999px;
  width: fit-content;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact__hitmeup:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.contact__social a {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.contact__social a:hover {
  transform: translateY(-3px);
}

.contact__social {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.9rem);
}

.contact__social img {
  width: clamp(26px, 2.5vw, 48px);
  height: clamp(26px, 2.5vw, 48px);
}

.contact__thanks {
  margin-top: clamp(2rem, 4vw, 4rem);
  font-size: clamp(1.1rem, 1.77vw, 2.12rem);
  color: var(--color-text-dark);
}

/* ---------- Project sub-pages ---------- */

.subnav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #171717;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--section-pad-x);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.subnav__pill {
  flex: 0 0 auto;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: rgba(217, 217, 217, 0.2);
  color: var(--color-white);
  font-size: clamp(0.8rem, 1.3vw, 1.5625rem);
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.subnav__pill:hover {
  background: var(--color-accent);
  color: #171717;
  transform: translateY(-2px);
}

.project {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.project::before,
.project::after {
  content: "";
  position: absolute;
  width: clamp(260px, 26vw, 500px);
  height: clamp(260px, 26vw, 500px);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.project::before {
  left: clamp(-220px, -14vw, -120px);
  top: 28%;
  background: radial-gradient(circle, rgba(4, 83, 145, 0.35), transparent 70%);
}

.project::after {
  right: clamp(-220px, -14vw, -120px);
  top: 4%;
  background: radial-gradient(circle, rgba(177, 255, 8, 0.35), transparent 70%);
}

.project__inner {
  position: relative;
  z-index: 1;
  max-width: 1720px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--section-pad-x) 0;
}

.project__heading {
  font-size: clamp(2.2rem, 5.74vw, 6.9rem);
  line-height: 1.05;
  text-align: center;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.project__tagline {
  font-size: clamp(1.1rem, 2.96vw, 3.55rem);
  line-height: 1.13;
  text-align: center;
  max-width: 1130px;
  margin: 0 auto clamp(2.5rem, 6vw, 5rem);
}

.project__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery--social img {
  object-fit: contain;
  background: #f6f6f6;
  padding: 0.2rem;
}

.project__gallery img:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.project__gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  min-width: 0;
  min-height: 0;
}

.project__gallery figure:hover img {
  transform: scale(1.045);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.project__footer .project__home {
  grid-column: 2;
  justify-self: center;
}

.project__footer .project__next {
  grid-column: 3;
  justify-self: end;
}

.project__home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--color-text-dark);
  border-radius: 999px;
  font-size: clamp(1rem, 1.56vw, 1.5625rem);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project__home:hover {
  background: var(--color-text-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.project__next {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(1rem, 1.56vw, 1.5625rem);
  color: var(--color-text-dark);
  transition: color 0.2s ease, gap 0.2s ease;
}

.project__next img {
  width: 0.85em;
  height: 0.85em;
  transition: transform 0.2s ease;
}

.project__next:hover {
  color: var(--color-hero-fallback);
  gap: 0.6rem;
}

.project__next:hover img {
  transform: translate(2px, -2px);
}

/* Youtube Thumbnails — uniform 6-col grid */
.gallery--uniform {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.3vw, 1.5rem);
}

.gallery--uniform figure {
  aspect-ratio: 251 / 141;
}

/* Packaging Design — full mockup previews */
.gallery--packaging {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
}

.gallery--packaging figure {
  aspect-ratio: 3 / 2;
  background: #f6f6f6;
}

.gallery--packaging img {
  object-fit: contain;
  background: #f6f6f6;
}

/* Social Media Graphics — 4-col mixed square/tall */
.gallery--social {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
}

.gallery--social figure {
  background: #f6f6f6;
  border-radius: 14px;
  overflow: hidden;
}

.gallery--social figure.is-square { aspect-ratio: 1 / 1; }
.gallery--social figure.is-tall { aspect-ratio: 4 / 5; }
.gallery--social figure.place-col2 { grid-column: 2 / 3; }
.gallery--social figure.place-col3 { grid-column: 3 / 4; }

.gallery--social .social-promo {
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}

.social-promo__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1rem 1.25rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(25, 35, 52, 0.06), rgba(25, 35, 52, 0.18)),
    linear-gradient(180deg, #dfeaf7 0%, #f7d7a7 18%, #e8b471 42%, #8b7a62 100%);
  color: #1a1d22;
  overflow: hidden;
}

.social-promo__wrap::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background:
    linear-gradient(180deg, rgba(11, 22, 18, 0), rgba(11, 22, 18, 0.2)),
    linear-gradient(180deg, rgba(41, 93, 51, 0.6) 0%, rgba(17, 48, 28, 0.78) 100%);
}

.social-promo__wrap::after {
  content: "";
  position: absolute;
  inset: 38% 0 0 0;
  background:
    linear-gradient(90deg, rgba(18, 25, 18, 0.34) 0 8%, transparent 8% 12%, rgba(18, 25, 18, 0.3) 12% 18%, transparent 18% 22%, rgba(18, 25, 18, 0.3) 22% 28%, transparent 28% 32%, rgba(18, 25, 18, 0.25) 32% 38%, transparent 38% 42%, rgba(18, 25, 18, 0.25) 42% 52%, transparent 52% 55%, rgba(18, 25, 18, 0.4) 55% 62%, transparent 62% 70%, rgba(18, 25, 18, 0.3) 70% 100%);
  opacity: 0.9;
}

.social-promo__sun {
  position: absolute;
  right: 23%;
  top: 20%;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: rgba(255, 210, 117, 0.85);
  box-shadow: 0 0 0 0.75rem rgba(255, 206, 122, 0.2), 0 0 40px rgba(255, 205, 112, 0.5);
}

.social-promo__top,
.social-promo__mid,
.social-promo__bottom,
.social-promo__details {
  position: relative;
  z-index: 1;
}

.social-promo__badge {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.88);
  color: #f5d98d;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 3px solid rgba(245, 217, 141, 0.8);
  box-shadow: inset 0 0 12px rgba(245, 217, 141, 0.22);
}

.social-promo__badge span {
  display: block;
  text-align: center;
  line-height: 1.1;
  transform: scaleY(0.9);
}

.social-promo__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: -0.8rem;
  text-align: center;
}

.social-promo__content h2 {
  margin: 0;
  font-size: clamp(2.1rem, 2.9vw, 4rem);
  line-height: 0.96;
  font-weight: 700;
  text-align: center;
  color: #1d1b1a;
  letter-spacing: -0.06em;
}

.social-promo__content h2 .highlight {
  color: #d77f2d;
}

.social-promo__sub {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(0.82rem, 1vw, 1.04rem);
  line-height: 1.4;
  color: rgba(25, 27, 28, 0.85);
  font-weight: 600;
}

.social-promo__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.5rem;
  padding: 0;
  margin: 0;
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);
  font-weight: 600;
  color: #1d1d1d;
}

.social-promo__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-promo__features li::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #d77f2d;
  box-shadow: 0 0 0 2px rgba(215, 127, 45, 0.2);
}

.social-promo__pricing {
  align-self: flex-end;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.7rem 1.25rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(29, 31, 35, 0.76);
  color: #f3d78a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.social-promo__pricing strong {
  font-size: clamp(1.7rem, 2.7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: #f5d784;
  font-weight: 800;
}

.social-promo__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
}

.social-promo__address {
  font-size: clamp(0.74rem, 1vw, 1.15rem);
  line-height: 1.2;
  font-weight: 700;
  color: #1d1d1d;
  max-width: 15rem;
}

.social-promo__address strong {
  font-weight: 800;
}

.social-promo__designer {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(31, 31, 31, 0.7);
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border-radius: 0.9rem;
  color: #f7d896;
  font-size: clamp(0.5rem, 0.8vw, 0.9rem);
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-promo__portrait {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8c8aa 0%, #5d4032 100%);
  border: 2px solid rgba(247, 216, 150, 0.9);
  position: relative;
  overflow: hidden;
}

.social-promo__portrait::before {
  content: "";
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(38, 24, 24, 0.8);
  left: 0.9rem;
  top: 0.5rem;
}

.social-promo__portrait::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 1.6rem;
  left: 0.55rem;
  bottom: 0.3rem;
  border-radius: 1rem 1rem 0.5rem 0.5rem;
  background: rgba(38, 24, 24, 0.72);
}

.social-promo__designer strong {
  display: block;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  letter-spacing: 0.02em;
  color: #f7d896;
}

.social-promo__designer span {
  display: block;
  font-size: clamp(0.5rem, 0.76vw, 0.7rem);
  letter-spacing: 0.12em;
  opacity: 0.9;
}

/* Creative Ads — bento */
.gallery--bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.85fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
  aspect-ratio: 1797 / 745;
}

.gallery--bento figure.span-2 { grid-row: span 2; }

.gc1 { grid-column: 1; }
.gc2 { grid-column: 2; }
.gc3 { grid-column: 3; }
.gc4 { grid-column: 4; }
.gr1 { grid-row: 1; }
.gr2 { grid-row: 2; }
.gr-span { grid-row: 1 / 3; }

/* Carousel Design — stacked rows separated by a rule */
.gallery--rows {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery__row {
  display: grid;
  gap: clamp(0.75rem, 1.3vw, 1.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid #e3e3e3;
}

.gallery__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gallery__row--no-divider {
  border-bottom: none;
  padding-bottom: 0;
}

.gallery__row--cols6 { grid-template-columns: repeat(6, 1fr); }
.gallery__row--cols6 figure { aspect-ratio: 4 / 5; }
.gallery__row--square figure { aspect-ratio: 1 / 1; }
.gallery__row--cols4 { grid-template-columns: repeat(4, 1fr); }
.gallery__row--cols4 figure { aspect-ratio: 4 / 5; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(217, 217, 217, 0.15);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover {
  background: var(--color-accent);
  color: #171717;
}

/* Meta Ads — bento with tall lead + 3x3 squares, then a 3-col tall row */
.gallery--meta-top {
  display: grid;
  grid-template-columns: 1.14fr 1fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.75rem);
  aspect-ratio: 1774 / 863;
}

.gallery--meta-top figure.span-2 { grid-row: span 2; }

.gallery--meta-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
}

.gallery--meta-bottom figure { aspect-ratio: 564 / 1035; }

@media (max-width: 900px) {
  .brands__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .brands__grid img {
    max-width: 130px;
    height: 55px;
  }

  .gallery--uniform { grid-template-columns: repeat(3, 1fr); }
  .gallery--packaging { grid-template-columns: repeat(2, 1fr); }
  .gallery--social { grid-template-columns: repeat(2, 1fr); }
  .gallery--bento,
  .gallery--meta-top {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    aspect-ratio: auto;
  }
  .gallery--bento figure,
  .gallery--meta-top figure {
    aspect-ratio: 4/5;
    grid-column: auto;
    grid-row: auto;
  }
  .gallery--social figure.place-col2,
  .gallery--social figure.place-col3 {
    grid-column: auto;
  }
  .gallery__row--cols6, .gallery__row--cols4 { grid-template-columns: repeat(3, 1fr); }
  .gallery--meta-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brands__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .brands__grid img {
    max-width: 120px;
    height: 50px;
  }

  .gallery--uniform { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
    padding-right: var(--section-pad-x);
  }

  .hero__portrait {
    position: static;
  }

  .hero__portrait img {
    position: static;
    height: auto;
    object-fit: initial;
  }

  .hero__socials,
  .hero__toolkit {
    justify-content: center;
  }

  .hero__toolkit {
    flex-direction: column;
  }

  .hero__toolkit-label {
    border-right: none;
    padding-right: 0;
  }

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

  .contact__row,
  .contact__hitmeup {
    justify-content: center;
    margin-inline: auto;
  }

  .project__footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .project__footer .project__home,
  .project__footer .project__next {
    grid-column: 1;
    justify-self: center;
  }
}

/* =========================================================
   ACTIVE NAVIGATION BUTTON
   The button for the current page turns green
   ========================================================= */
.nav__pill.active,
.subnav__pill.active {
  background: var(--color-accent);
  color: #171717;
  font-weight: 500;
}

.nav__pill.active:hover,
.subnav__pill.active:hover {
  background: var(--color-accent);
  color: #171717;
}
