:root {
  --bg: #f2f2f2;
  --black: #1E1E1E;
  --white: #F4F4F4;
  --dark: #1c1c1c;
  --grey: #e5e5e5;
  --mealclub-blue: #2956EA;
  --lumi: #7E5CCC;
  --idealista-green: #9AB912;
  --idealista-blue: #0069A6;
  --hexacore-purple: #383A87;
  --radius: 8px;
  --gap: 10px;

  /* IMGS SPACES */
  --project-image-gap: 22px;
  --space-xl: clamp(120px, 16vw, 300px); /* xl */
  --space-medium: calc(var(--space-xl) / 2); /* medium */
  --space-small: calc(var(--space-xl) / 5); /* small */

  --page-padding: clamp(4px, 1.8vw, 35px);
  --space-xs: clamp(8px, 1vw, 16px);
  --space-sm: clamp(16px, 2vw, 32px);
  --space-md: clamp(40px, 6vw, 60px);
  --space-lg: clamp(80px, 10vw, 160px);
  --space-xl: clamp(120px, 14vw, 220px);

  /* Typography scale */
  --fs-nav: clamp(13px, 1.5vw, 20px);
  --fs-nav-mobile: clamp(13px, 3.6vw, 16px);

  --fs-tag: clamp(11px, 1vw, 14px);
  --fs-project-description: clamp(13px, 1.1vw, 16px);

  --fs-footer-title: clamp(17px, 1.35vw, 23px);
  --fs-footer-body: clamp(12px, 0.95vw, 15px);
  --fs-footer-tab: clamp(15px, 1.2vw, 18px);

  --fs-insights-hero: clamp(22px, 2.15vw, 34px);
  --fs-insights-title: clamp(22px, 2vw, 34px);
  --fs-insights-card-heading: clamp(23px, 2vw, 34px);
  --fs-insights-body: clamp(18px, 1.6vw, 27px);
  --fs-card-title: clamp(19px, 1.55vw, 27px);
  --fs-card-body: clamp(14px, 1.1vw, 18px);

  --fs-tech-title: clamp(17px, 1.35vw, 24px);
  --fs-tech-body: clamp(13px, 1vw, 16px);

  --fs-detail-kicker: clamp(13px, 1vw, 15px);
  --fs-detail-title: clamp(64px, 10vw, 150px);
  --fs-detail-description: clamp(24px, 3vw, 48px);
  --fs-detail-meta: clamp(14px, 1vw, 17px);

  --fs-section-title: clamp(28px, 3vw, 48px);
  --fs-grid-title: clamp(18px, 1.5vw, 24px);
  --fs-grid-body: clamp(14px, 1vw, 17px);
  --fs-text-column: clamp(22px, 2.2vw, 36px);
  --fs-outcome: clamp(28px, 3vw, 52px);
  --fs-next-title: clamp(48px, 7vw, 110px);

  /*HERO TXT*/
  --fs-project-summary-side: clamp(15px, 1vw, 16px);
  --fs-project-summary-side-responsive: clamp(13px, 2vw, 16px);
  --fs-project-summary-title: clamp(34px, 4vw, 62px);
  --fs-project-summary-title-mobile: clamp(34px, 10vw, 52px);
  --fs-project-summary-meta: clamp(15px, 1.25vw, 20px);

  --fs-project-intro: clamp(24px, 2.25vw, 36px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--black);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  padding: 8px var(--page-padding) 8px;
}

body.lumi-page {
  --mealclub-blue: var(--lumi);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

li,ul{
  line-height: normal;
}

.portfolio-page {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
}

/* NAV */

.top-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 25px;
  margin-top: 0;
  position: relative;
}

.nav-item {
  height: 38px;
  border-radius: var(--radius);
  background: var(--grey);
  color: var(--black);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-nav);
  font-weight: 600;
}

.nav-item.active {
  background: var(--black);
  color: var(--white);
}

a.nav-item:not(.active):hover {
  border-color: var(--black);
}

.nav-item-disabled {
  color: var(--black);
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  border-color: transparent;
}

.nav-item-disabled.active {
  opacity: 1;
  color: var(--white);
}

.nav-logo img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

/*para menu projects*/
#projects-nav-item {
  transition: opacity 180ms ease;
}

#projects-nav-item:hover {
  opacity: 0.45;
  cursor: default;
}

/* GRID */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 34px;
}

.project-cover {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfcfcf;
  margin-bottom: 6px;
  border: none;
  transition: border-color 180ms ease;
}

.project-cover img {
  transform: scale(1.08);
  transition: transform 260ms ease;
}

.project-card:hover .project-cover img {
  transform: scale(1.14);
}

.project-card:hover .project-cover {
  border-color: var(--black);
}

.project-tags {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 22px;
  margin-bottom: 4px;
  font-size: var(--fs-tag);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.project-tags span {
  position: relative;
  padding-left: 12px;
}

.project-tags span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--black);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.project-cover {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfcfcf;
  margin-bottom: 6px;
}

.project-description {
  font-size: var(--fs-project-description);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: clamp(12px, 1.6vw, 24px);
}

/*UPCOMING projects:*/
.upcoming-project .project-cover img {
  filter: grayscale(100%) blur(8.5px);
  transform: scale(1.08);
}

/* FOOTER */

.footer-card {
  margin-top: 58px;
  margin-left: 0;
  margin-bottom: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 12px;
  /* Altura controlada: aprox. una card y media */
  height: min(68vw, 680px);
  min-height: 520px;
  overflow: hidden;

}

.footer-info {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  margin-bottom: 22px;
  overflow: hidden;

}

.footer-box {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;

}

.footer-box:nth-child(3),
.footer-box:nth-child(4) {
  padding-bottom: 34px;
}

.footer-box h2 {
  font-size: var(--fs-footer-title);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 10px;

}

.footer-box p,
.footer-box li {
  font-size: var(--fs-footer-body);
  font-weight: 400;
  line-height: 1.45;

}

.footer-box ul {
  padding-left: 18px;

}

.footer-box a {
  text-decoration: underline;

}

.footer-logo {
  grid-column: 1 / 3;
  align-self: end;
  padding: 30px 8px 0;
  overflow: hidden;

}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;

}

.footer-image {
  background: #dcdcdc;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 100%;

}

.footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.footer-tab {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  width: fit-content;
  min-width: 75%;
  height: 38px;
  padding: 0 22px;

  background: var(--grey);
  color: var(--black);
  border: 2px solid transparent;
  border-radius: var(--radius);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: var(--fs-footer-tab);
  font-weight: 600;
  text-decoration: none;
}

.footer-tab:hover {
  border-color: var(--black);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-card {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: calc(var(--radius) * 2);
    overflow: visible;
  }

  .footer-info {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 10px;
  }

  .footer-box {
    min-height: 0;
    padding: 18px;
    border-radius: var(--radius);
  }

  .footer-box h2 {
    font-size: clamp(18px, 4.5vw, 24px);
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .footer-box p,
  .footer-box li {
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.24;
    font-weight: 500;
  }

  .footer-box ul {
    padding-left: 18px;
  }

  .footer-box:nth-child(1) p,
  .footer-box:nth-child(2) p {
    display: none;
  }

  .footer-box:nth-child(3) li:nth-child(n+4) {
    display: none;
  }

  .footer-image {
    order: 2;
    grid-column: 1 / -1;
    height: clamp(300px, 44vw, 430px);
    min-height: 0;
    border-radius: var(--radius);
  }

  .footer-image img {
    object-position: center 28%;
  }

  .footer-tab {
    display: none;
  }

  .footer-logo {
    order: 3;
    grid-column: 1 / -1;
    padding: 22px 8px 6px;
  }

  .footer-logo img {
    width: 100%;
  }

  .tech-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 620px) {
  :root {
    --project-image-gap: 30px;
    --page-padding: 10px;
  }

  html {
    overflow-x: hidden;
  }

  body {
    padding: 8px var(--page-padding) 8px;
    overflow-x: hidden;
  }

  .top-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .nav-item {
    height: 34px;
    font-size: var(--fs-nav-mobile);
  }

  .nav-logo img {
    width: 50px;
  }

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

  .project-tags {
    font-size: 12px;
    gap: 12px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-image {
    height: clamp(300px, 52vw, 420px);
  }

  .tech-flow {
    grid-template-columns: 1fr;
  }
}


/*--------------------------------------------------------------------------*/
/* INSIGHTS PAGE */

.insights-page {
  padding-bottom: 40px;
}

/* Insights nav */

#insights-nav-item {
  cursor: default;
}

.logo-miralpeix-negro {
  filter: invert(1);
}

.insights-page .nav-logo img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.insights-page .top-nav a.nav-item:hover {
  opacity: 0.65;
}

/* Intro */

.insights-hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 56px;
  margin-top: 36px;
  margin-bottom: 115px;
  align-items: start;
}

.insights-copy {
  max-width: 760px;
}

.insights-copy p {
  font-size: var(--fs-insights-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 34px;
  text-align: justify;
}

.insights-portrait {
  width: 100%;
  height: clamp(230px, 25vw, 335px);
  align-self: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d8d8d8;
}

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

/* Overview */

.insights-overview {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 54px;
  align-items: center;
  margin-bottom: 96px;
}

.nav-logo img {
  /* filter: invert(1); */
  width: 85px;
  height: auto;
}

.insights-pattern {
  width: 85%;
  max-width: 600px;
  justify-self: start;

}

.insights-pattern img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insights-timeline {

  height: 100%;

  display: grid;

  grid-template-rows: repeat(4, 1fr);

  gap: 0;

  position: relative;

  align-self: stretch;

}

.insights-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--black);
}

.timeline-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.timeline-item span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.timeline-item h2 {
  font-size: var(--fs-insights-title);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 1px;
}

.timeline-item p {
  font-size: var(--fs-insights-body);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 20px;
}

/* Cards */

.insight-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 110px;
}

.insight-card {
  min-height: 390px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 24px;
}

.dark-card {
  background: var(--black);
  color: var(--white);
}

.light-card {
  background: transparent;
  color: var(--black);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.card-heading img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.card-heading h2 {
  font-size: var(--fs-insights-card-heading);
  line-height: 1;
  letter-spacing: -0.045em;
}

.insight-card h3 {
  font-size: var(--fs-card-title);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 70px;
  font-weight: 500;
}

.insight-card p {
  font-size: var(--fs-card-body);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 22px;
}

.insight-card .insight-related {
  margin-top: 28px;
  margin-bottom: 0;
  font-weight: 700;
}

.insight-related a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Design x Technology */

.design-tech-section {
  text-align: center;
  margin-bottom: 40px;
}

.design-tech-section h2 {
  font-size: clamp(28px, 2.8vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.design-tech-copy {
  max-width: 920px;
  margin: 0 auto 70px;
  text-align: left;
}

.design-tech-copy p {
  font-size: clamp(17px, 1.45vw, 25px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  text-align: justify;
}

.tech-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
  position: relative;
}

.tech-step {
  min-height: 145px;
  text-align: left;
  position: relative;
  padding: 18px 16px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: transparent;
}

.tech-step::after {
  display: none;
}

.tech-step:last-child::after {
  display: none;
}

.tech-step img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.tech-step h3 {
  display: inline-block;
  font-size: var(--fs-tech-title);
  line-height: 1;
  letter-spacing: -0.045em;
  vertical-align: middle;
}

.tech-step p {
  font-size: var(--fs-tech-body);
  font-weight: 400;
  line-height: 1.08;
  margin-top: 18px;
}

/* Responsive insights */

@media (max-width: 980px) {
  .insights-hero,
  .insights-overview {
    grid-template-columns: 1fr;
  }

  .insights-hero {
    margin-bottom: 64px;
    gap: 24px;
  }

  .insights-overview {
    gap: 38px;
  }

  .insight-card-grid {
    grid-template-columns: 1fr;
  }

  .tech-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-step {
    padding-right: 0;
  }

  .tech-step::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .insights-copy p {
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
  }

  .insights-portrait {
    height: 240px;
  }

  .timeline-item p {
    font-size: 18px;
  }

  .insight-card {
    min-height: auto;
    padding: 18px;
  }

  .insight-card h3 {
    margin-bottom: 36px;
  }

  .design-tech-copy p {
    text-align: left;
  }

  .tech-flow {
    grid-template-columns: 1fr;
  }
}



/*--------------------------------------------------------------------*/
/* PROJECT DETAIL PAGE */

.project-detail-page {
  padding-bottom: 0;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  margin-top: 46px;
  margin-bottom: 28px;
}

.project-kicker {
  font-size: var(--fs-detail-kicker);
  font-weight: 500;
  margin-bottom: 10px;
}

.project-detail-intro h1 {
  font-size: var(--fs-detail-title);
  line-height: 0.82;
  letter-spacing: -0.085em;
  margin-bottom: 22px;
}

.project-detail-description {
  max-width: 780px;
  font-size: var(--fs-detail-description);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.project-detail-meta {
  display: grid;
  gap: 10px;
}

.project-detail-meta div {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 16px;
}

.project-detail-meta span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-detail-meta p {
  font-size: var(--fs-detail-meta);
  line-height: 1.12;
  font-weight: 400;
}

.project-image-full {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 80px;
  background: none;
}

.project-intro-image {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--project-image-gap);
  margin-bottom: var(--space-md);
}

.project-intro-image img {
  width: 100%;
  height: clamp(220px, 28vw, 600px);
  object-fit: cover;
  margin-top: 0;
  border-radius: var(--radius);
  grid-column: span 4;
}

.project-image-full img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: clamp(60px, 8vw, 150px);
}

.project-section {
  margin: 80px 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-label span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.section-label h2 {
  font-size: var(--fs-section-title);
  line-height: 1;
  letter-spacing: -0.055em;
}

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

.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-grid article {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 180px;
}

.cards-grid h3 {
  font-size: var(--fs-grid-title);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.cards-grid p {
  font-size: var(--fs-grid-body);
  line-height: 1.12;
  font-weight: 400;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 40px;
  align-items: start;
}

.text-column p {
  font-size: var(--fs-text-column);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 28px;
  text-align: justify;
}

.imgs-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 var(--project-image-gap);
  align-items: start;
}

.sections-block > .imgs-4col {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: calc(var(--project-image-gap) * 3);
}

.imgs-4col img {
  display: block;
  width: 100%;
  height: clamp(160px, 16vw, 220px);
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
}

.imgs-4col img {
  grid-column: span 2;
}

.imgs-4col img:nth-child(1) {
  grid-column: span 1;
}

.imgs-4col img:nth-child(2) {
  grid-column: span 3;
}

.imgs-4col img:only-child {
  grid-column: 1 / -1;
  height: auto;
  object-fit: contain;
}

.imgs-6col.phase-2-visual-direction-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.09fr) minmax(0, 2.69fr) minmax(0, 1.22fr);
  gap: var(--project-image-gap);
  align-items: start;

}

.mvp-inter-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--project-image-gap);
  margin: 0 0 var(--project-image-gap);
}

.mvp-inter-grid figure {
  height: clamp(240px, 24vw, 420px);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
  padding: 0;
}

.mvp-inter-grid img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mvp-inter-grid figcaption {
  color: var(--black);
  font-size: var(--fs-grid-body);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
}

.research-6col-grid {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--project-image-gap);
  margin-top: var(--project-image-gap);
}

.research-6col-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .mvp-inter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-6col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mvp-inter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--project-image-gap);
  }

  .mvp-inter-grid figure {
    height: clamp(300px, 78vw, 390px);
    align-items: stretch;
  }

  .mvp-inter-grid figure:last-child {
    grid-column: 1 / -1;
    width: calc((100% - var(--project-image-gap)) / 2);
    justify-self: center;
  }

  .mvp-inter-grid img {
    object-fit: cover;
    object-position: center top;
  }

  .mvp-inter-grid figcaption {
    font-size: 13px;
  }

  .research-6col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.phase-2-visual-direction-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);

}

.phase-2-visual-direction-grid img:nth-child(1),
.phase-2-visual-direction-grid img:nth-child(2),
.phase-2-visual-direction-grid img:nth-child(3) {
  grid-column: auto;

}

@media (max-width: 980px) {

  .imgs-6col.phase-2-visual-direction-grid {
    grid-template-columns: 1fr;

  }

  .phase-2-visual-direction-grid img:nth-child(1),
  .phase-2-visual-direction-grid img:nth-child(2),
  .phase-2-visual-direction-grid img:nth-child(3) {
    grid-column: 1;

  }

}

.imgs-center-2col img:only-child {
  grid-column: 2 / 4;
}

.imgs-tight-after {
  margin-bottom: 12px;
}

.imgs-tight-after + .imgs-4col,
.imgs-tight-after + .imgs-2col,
.imgs-tight-after + .imgs-3col {
  margin-top: 0;
}

.project-outcome p {
  max-width: 1050px;
  font-size: var(--fs-outcome);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.next-project {
  min-height: clamp(620px, 58vw, 920px);
  margin-top: 120px;
  padding: clamp(80px, 9vw, 140px) clamp(120px, 9vw, 220px) clamp(120px, 12vw, 190px);
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(20px, 4vw, 80px);
  border-top: 2px solid var(--black);
}

.next-project::before {
  display: none;
}

.next-project-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: clamp(280px, 28vw, 480px) auto auto auto;
  align-content: start;
  gap: clamp(14px, 1.7vw, 28px);
  min-height: 0;
  padding: 0;
  color: var(--black);
  text-decoration: none;
  background: transparent;
  overflow: visible;
  transition: transform 0.35s ease;
}

.next-project-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: clamp(280px, 28vw, 480px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 44%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.next-project-card-left {
  transform: none;
}

.next-project-card-left:hover {
  transform: translateY(-8px);
}

.next-project-card-right {
  transform: none;
}

.next-project-card-right:hover {
  transform: translateY(-8px);
}

.next-project-card img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(280px, 28vw, 480px);
  object-fit: cover;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  opacity: 0.42;
  filter: grayscale(1) saturate(0.75);
  transition: opacity 180ms ease, filter 180ms ease;
}

.next-project-card:hover img {
  opacity: 1;
  filter: none;
}

.next-project-card:hover::after {
  opacity: 0;
}

.next-project-card span,
.next-project-card h2,
.next-project-card p {
  position: relative;
  z-index: 2;
  text-shadow: none;
}

.next-project-card span {
  font-size: var(--fs-project-summary-meta);
  line-height: 1;
  font-weight: 600;
}

.next-project-card h2 {
  max-width: 680px;
  font-size: clamp(36px, 4vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.next-project-card p {
  max-width: 560px;
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.next-project + .footer-card {
  margin-top: -90px;
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .project-detail-hero,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .next-project {
    display: none;
  }

  .next-project + .footer-card {
    margin-top: 58px;
  }

  .cards-grid,
  .cards-grid-4,
  .imgs-4col {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .cards-grid-4 {
    gap: var(--project-image-gap);
  }

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

  .imgs-4col img,
  .imgs-4col img:nth-child(1),
  .imgs-4col img:nth-child(2) {
    grid-column: auto;
    height: auto;
  }

  .imgs-4col:has(> img:only-child) {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .imgs-4col:has(> img:only-child) > img:only-child {
    flex: 0 0 180%;
    width: 180%;
    max-width: none;
    scroll-snap-align: start;
  }

  .imgs-4col.no-mobile-slide:has(> img:only-child) {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
  }

  .imgs-4col.no-mobile-slide:has(> img:only-child) > img:only-child {
    flex: initial;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: none;
  }
}

/* PROJECT PAGE TOP STRUCTURE */

.project-page-nav .nav-logo.active {
  background: var(--grey);
  color: var(--black);
}

.project-section-tabs {
  width: calc((100% - (var(--gap) * 2)) / 3);
  margin-top: -18px;
  margin-left: calc(((100% - (var(--gap) * 2)) / 3) + var(--gap));
  margin-right: 0;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  position: sticky;
  top: 8px;
  z-index: 20;
}

.project-section-tabs span,
.project-section-tabs a {
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--grey);
  color: var(--black);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-nav);
  font-weight: 600;
}

.project-section-tabs a:hover {
  border-color: var(--mealclub-blue);
}

.project-section-tabs span.active,
.project-section-tabs a.active {
  background: var(--mealclub-blue);
  color: var(--white);
}

.project-slider {
  width: calc(100% + 16px);
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: 44px;
  padding: 0 8px ;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.project-slider::-webkit-scrollbar {
  display: none;
}

.project-slider a {
  flex: 0 0 240px;
  width: 240px;
  height: 122px;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.42;
  transition: opacity 180ms ease, filter 180ms ease;
  background: #d8d8d8;
  scroll-snap-align: start;
}

.project-slider a:hover,
.project-slider a.active {
  opacity: 1;
}

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

.project-slider-bottom {
  margin-top: clamp(86px, 8vw, 130px);
  margin-bottom: clamp(86px, 8vw, 130px);
  padding-top: clamp(24px, 2.4vw, 38px);
  border-top: 2px solid var(--black);
}

.project-hero-summary {
  border-top: 2px solid var(--black);
  margin: var(--space-md) 0 clamp(48px, 5vw, 74px);
  padding-top: 34px;
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.project-hero-left,
.project-hero-right {
  font-size: var(--fs-project-summary-side);
  line-height: 1.25;
  font-weight: 500;
}

.project-hero-left p,
.project-hero-right p {
  margin-bottom: 4px;
}

.project-hero-center {
  text-align: center;
}

.project-hero-center h1 {
  font-size: var(--fs-project-summary-title);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin-bottom: 28px;
}

.project-hero-center p {
  font-size: var(--fs-project-summary-meta);
  font-weight: 500;
}

.project-hero-right {
  text-align: right;
}

.project-hero-right:has(.hero-profile-card) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-self: end;
  width: min(100%, 420px);
  text-align: center;
}

.project-hero-right:has(.hero-profile-card) .hero-profile-item:only-child {
  grid-column: 2 / 3;
}

.hero-profile-item {
  display: grid;
  gap: 8px;
  align-content: start;
}

.hero-profile-card {
  background: var(--mealclub-blue);
  border-radius: calc(var(--radius) * 3);
  padding: 8px;
  color: var(--white);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.hero-profile-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) * 2);
}

.hero-profile-card p {
  display: none;
}

.hero-profile-roles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: var(--fs-project-summary-side);
  line-height: 1.25;
  font-weight: 500;
  text-align: left;
}

@media (max-width: 980px) {
  .project-section-tabs {
    width: 100%;
    margin: 0 0 28px;
  }

  .project-slider a {
    flex: 0 0 190px;
    width: 190px;
    height: 96px;
  }

  .project-hero-summary {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left right"
      "center center";
    gap: 48px 24px;
  }

  .project-hero-left {
    grid-area: left;
    font-size: var(--fs-project-summary-side-responsive);
  }

  .project-hero-right {
    grid-area: right;
    text-align: right;
    font-size: var(--fs-project-summary-side-responsive);
  }

  .project-hero-right:has(.hero-profile-card) {
    text-align: center;
    justify-self: end;
  }

  .hero-profile-roles {
    font-size: var(--fs-project-summary-side-responsive);
  }

  .project-hero-center {
    grid-area: center;
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 620px) {
  .project-section-tabs {
    width: 100%;
    margin: -20px 0 14px;
    gap: 6px;
    grid-template-columns: repeat(2, 1fr);
  }

.project-section-tabs span,
.project-section-tabs a {
    min-width: 0;
    flex: 1;
    height: 34px;
    padding: 0 10px;
    font-size: var(--fs-nav-mobile);
  }

  .project-slider {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: scroll;
    flex-wrap: nowrap;
  }

  .project-slider a {
    flex: 0 0 150px;
    width: 150px;
    height: 78px;
  }

  .project-hero-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "center";
    gap: 28px;
  }

  .project-hero-left,
  .project-hero-right {
    font-size: 14px;
    line-height: 1.25;
  }

  .project-hero-left {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .project-hero-right {
    text-align: left;
  }

  .project-hero-right:has(.hero-profile-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 560px);
    margin: 0 0 0 auto;
    text-align: center;
  }

  .hero-profile-roles {
    gap: 8px;
    font-size: 12px;
    line-height: 1.2;
  }

  .hero-profile-card {
    border-radius: calc(var(--radius) * 2);
    padding: 8px;
    aspect-ratio: 1 / 1;
  }

  .hero-profile-card img {
    border-radius: var(--radius);
    height: 100%;
  }

  .hero-profile-card p {
    font-size: 13px;
  }

  .project-hero-center {
    text-align: center;
    margin-top: 12px;
  }

  .project-hero-center h1 {
    font-size: var(--fs-project-summary-title-mobile);
    line-height: 1.02;
  }
}
/* PROJECT COVER BEFORE SUMMARY */


.project-cover-hero {
  width: 100%;
  height: auto;
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-cover-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Project summary directly below cover */

.project-cover-hero + .project-hero-summary {
  border-top: 2px solid var(--black); /*linea debajo de cover*/
  margin-top: clamp(24px, 3vw, 50px);
  padding-top: clamp(28px, 5vw, 100px);
  margin-bottom: var(--space-xl);
}

/* Intro paragraph below project title summary */

.project-intro-text {
  width: min(78%, 980px);
  margin: 0 auto var(--space-md);
}

.project-intro-text p {
  font-size: var(--fs-project-intro);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 400;
  text-align: justify;
  margin-bottom: 36px;
}

.project-quick-read {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(42px, 5vw, 74px) 0 var(--space-lg);
  border-top: 2px solid var(--black);
  padding-top: 28px;
}

.project-quick-read article {
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 22px;
  align-items: baseline;
  min-height: 220px;
  padding: 28px 18px 34px;
  border-radius: var(--radius);
  background: var(--mealclub-blue);
  color: var(--white);
}

.project-quick-read h2 {
  font-size: var(--fs-grid-title);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0;
}

.project-quick-read p {
  font-size: var(--fs-grid-body);
  line-height: 1.45;
  font-weight: 500;
  align-self: end;
}

body.idealista-page .project-quick-read article {
  color: var(--idealista-accent-text, var(--black));
}

@media (max-width: 980px) {
  .project-cover-hero {
    height: auto;
  }

  .project-quick-read {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .project-intro-image {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    border-radius: 0;
  }

  .project-intro-image img {
    width: 170vw;
    max-width: none;
    height: auto;
    min-height: 0;
    object-fit: contain;
    scroll-snap-align: center;
    border-radius: var(--radius);
  }

  .project-cover-hero {
    height: auto;
  }

  .project-cover-hero + .project-hero-summary {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .project-intro-text {
    width: 100%;
    margin-bottom: var(--space-md);
  }

  .project-intro-text p {
    font-size: 24px;
    text-align: left;
  }

  .project-quick-read {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: var(--space-lg);
  }

  .project-quick-read article {
    min-height: 0;
  }
}

/* IMAGE GRIDS */

.imgs-2col,
.imgs-3col {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--project-image-gap);
  align-items: stretch;
  margin-top: 0;
  margin-bottom: var(--project-image-gap);
}

.imgs-2col + .project-card-details,
.imgs-2col + .project-section,
.imgs-3col + .project-card-details,
.imgs-3col + .project-section {
  margin-top: var(--space-small);
}

.imgs-2col + .project-card-details,
.imgs-3col + .project-card-details {
  margin-top: var(--space-small);
}

.imgs-2col img,
.imgs-3col img {
  width: 100%;
  height: clamp(220px, 28vw, 600px);
  object-fit: cover;
  border-radius: var(--radius);
  background: transparent;
  grid-column: span 2;
}


.imgs-2col img:nth-child(2) {
  grid-column: span 2;
}

.imgs-3col img:nth-child(1) {
  grid-column: span 1;
}

.imgs-3col img:nth-child(2) {
  grid-column: span 3;
}

.imgs-3col-reverse {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.imgs-3col-reverse img:nth-child(1) {
  grid-column: span 2;
}

.imgs-3col-reverse img:nth-child(2) {
  grid-column: span 1;
}

.imgs-3col-left-wide img:nth-child(1) {
  grid-column: span 3;
}

.imgs-3col-left-wide img:nth-child(2) {
  grid-column: span 1;
}

.imgs-natural img {
  height: auto;
  object-fit: contain;
}

.imgs-equal-height img {
  height: clamp(220px, 28vw, 600px);
  object-fit: cover;
}

.meal-plato-grid img {
  height: clamp(360px, 40vw, 760px);
}

.centered-two-cols img:only-child {
  grid-column: 2 / 4;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.centered-two-cols .project-image-captioned:only-child {
  grid-column: 2 / 4;
  width: 100%;
}

.project-image-captioned {
  margin: 0;
}

.project-image-captioned img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-image-captioned figcaption {
  width: 100%;
  margin-top: clamp(10px, 1vw, 18px);
  color: var(--black);
  font-size: var(--fs-small);
  line-height: 1.05;
  letter-spacing: 0;
  text-align: left;
}

.imgs-ratio-grid {
  width: 100%;
  display: grid;
  grid-template-columns: var(--grid-columns, repeat(2, minmax(0, 1fr)));
  gap: var(--project-image-gap);
  align-items: start;
  margin: var(--grid-margin, 0 0 var(--project-image-gap));
}

.imgs-ratio-grid :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.imgs-ratio-grid > video:only-child {
  grid-column: 1 / -1;
}

.imgs-left-third-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--project-image-gap);
  align-items: start;
  margin: 0 0 var(--project-image-gap);
}

.imgs-left-third-grid img {
  display: block;
  grid-column: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.image-side-slider {
  width: 100%;
  position: relative;
  margin: 0 0 var(--project-image-gap);
}

.image-side-slider-track {
  width: 100%;
}

.image-side-slider img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.image-side-slider img.is-active {
  display: block;
}

.image-side-slider-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.image-side-slider-zone-left {
  left: 0;
}

.image-side-slider-zone-right {
  right: 0;
}

.image-side-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.image-side-slider-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--grey);
  cursor: pointer;
}

.image-side-slider-dots button.is-active {
  background: var(--black);
}

.imgs-text-4col {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--project-image-gap);
  align-items: start;
  margin-top: 0;
  margin-bottom: var(--project-image-gap);
}

.imgs-3col:has(+ .imgs-text-4col) {
  margin-bottom: var(--project-image-gap);
}

.imgs-text-4col img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  grid-column: 1 / 4;
}

.imgs-text-4col div {
  grid-column: 4 / 5;
  justify-self: end;
}

.imgs-text-4col p {
  font-size: var(--fs-project-summary-side);
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}



@media (max-width: 620px) {
  .imgs-2col,
  .imgs-3col,
  .imgs-text-4col {
    grid-template-columns: 1fr;
  }

  .imgs-2col + .project-card-details,
  .imgs-2col + .project-section,
  .imgs-3col + .project-card-details,
  .imgs-3col + .project-section {
    margin-top: var(--space-small);
  }

  .imgs-2col img,
  .imgs-2col img:nth-child(2),
  .imgs-3col img,
  .imgs-3col img:nth-child(2),
  .imgs-text-4col img {
    width: 100%;
    height: auto;
    object-fit: contain;
    grid-column: auto;
  }

  .imgs-text-4col div {
    grid-column: auto;
    justify-self: start;
  }

  .imgs-3col {
    grid-template-columns: 1fr;
    gap: var(--project-image-gap);
  }

  .imgs-3col img:nth-child(1) {
    grid-column: auto;
    order: 2;
    height: auto;
    object-fit: contain;
  }

  .imgs-3col img:nth-child(2) {
    grid-column: auto;
    order: 1;
    height: auto;
    object-fit: contain;
  }

}

/* SECTION TEXT BLOCK */

.sections-block {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--project-image-gap);
  margin: var(--space-xl) 0 var(--space-medium);
}

.sections-labels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  font-size: var(--fs-project-summary-side);
  line-height: 1.25;
  font-weight: 500;
  color: var(--black);
}

.section-tag {
  width: fit-content;
  min-width: 0;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--mealclub-blue);
  color: var(--white);
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-note {
  max-width: 86%;
  color: var(--mealclub-blue);
  white-space: normal;
  overflow-wrap: anywhere;
}

.sections-copy {
  grid-column: span 2;
  max-width: none;
  justify-self: stretch;
}

.sections-copy p {
  font-size: var(--fs-project-intro);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin-bottom: 36px;
  text-align: left;
}

.txt-explanation-section,
.txt-explanation-section p {
  max-width: 760px;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.txt-explanation-section {
  margin-top: 100px;
  margin-left: auto;
}

.txt-explanation-section p {
  margin-bottom: 20px;
}

.pie-pagina-imgs {
  width: calc((100% - (var(--gap) * 2)) / 3);
  margin: clamp(10px, 1vw, 18px) auto var(--space-medium) 0;
  font-size: clamp(14px, 1.05vw, 18px);
  text-align: left;
}

.pie-pagina-imgs p {
  width: 100%;
  max-width: none;
  font-size: inherit;
  margin-bottom: 0;
}

.pie-pagina-imgs br {
  display: none;
}

.section-cols-grid {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(140px, 18vw, 320px);
  row-gap: var(--project-image-gap);
  margin-top: var(--space-medium);
}

.user-context-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(52px, 7vw, 120px);
}

.section-cards-grid {
  grid-column: 1 / -1;
  width: 100%;
  margin: var(--space-md) 0 0;
}

.section-cards-grid .cards-grid article {
  grid-template-rows: auto auto 1fr;
}

.section-cards-grid .section-card-list {
  grid-column: 1 / -1;
  align-self: start;
  list-style: disc;
  list-style-position: outside;
  max-width: none;
  font-size: var(--fs-grid-body);
  line-height: 1.45;
  letter-spacing: 0;
  margin: 4px 0 28px;
  padding-left: 18px;
}

.section-cards-grid .section-card-list li {
  line-height: 1.15;
}

.section-cards-grid .section-card-list li + li {
  margin-top: 5px;
}

.section-cards-grid .cards-grid article > p {
  margin: 0;
}

.section-cols-grid article {
  border-top: 2px solid var(--black);
  padding-top: 22px;
}

.titles-col-sections {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(20px, 1.65vw, 28px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 28px;
}

.titles-col-sections .card-number {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: var(--mealclub-blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1;
  font-weight: 700;
}

.txt-col-sections {
  max-width: 760px;
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 20px;
}

.txt-col-sections:last-child {
  margin-bottom: 0;
}

.development-tools-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 18px;
}

.development-tools-list li {
  line-height: 1.18;
}

.development-tools-list li + li {
  margin-top: 10px;
}

.development-tools-list strong {
  font-weight: 600;
}

@media (max-width: 980px) {
  .sections-block {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .sections-copy {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .sections-labels {
    font-size: var(--fs-project-summary-side-responsive);
    color: var(--black);
  }
}

@media (max-width: 620px) {
  .sections-block {
    grid-template-columns: 1fr;
    gap: 56px;
    margin: var(--space-lg) 0 calc(var(--space-md) / 2);
  }

  .sections-labels {
    flex-direction: column;
    gap: 24px;
    font-size: 14px;
  }

  .sections-copy p {
    font-size: 24px;
    text-align: left;
  }

  .txt-explanation-section,
  .txt-explanation-section p {
    font-size: 16px;
    line-height: 1.2;
  }

  .txt-explanation-section {
    width: calc(100% - 48px);
    margin-right: auto;
    margin-left: auto;
    margin-top: 60px;
    margin-bottom: var(--space-medium);
  }

  .pie-pagina-imgs {
    margin-top: 12px;
    margin-right: auto;
    margin-left: 0;
    margin-bottom: var(--space-medium);
    text-align: left;
  }

  .pie-pagina-imgs br {
    display: none;
  }

  .sections-block:has(.sections-copy + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col)) .txt-explanation-section {
    margin-bottom: calc(var(--space-medium) / 4);
  }

  .sections-block:has(.sections-copy + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col))
    > :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col) {
    margin-top: calc(var(--space-medium) / 4);
  }

  .section-cols-grid {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    row-gap: var(--space-md);
    margin-top: var(--space-md);
    margin-right: auto;
    margin-left: auto;
  }

  .sections-block > .imgs-4col {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
    margin-top: var(--space-medium);
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: var(--project-image-gap);
  }

  .imgs-4col.no-mobile-slide:has(> img:only-child) {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
  }

  .imgs-4col.no-mobile-slide:has(> img:only-child) > img:only-child {
    flex: initial;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    scroll-snap-align: none;
  }

  .sections-block > .imgs-4col img:only-child {
    flex: 0 0 150%;
    width: 150%;
    max-width: none;
    scroll-snap-align: start;
  }

  .imgs-4col:has(> img:only-child) {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .imgs-4col:has(> img:only-child) > img:only-child {
    flex: 0 0 240%;
    width: 240%;
    max-width: none;
    scroll-snap-align: start;
  }

  .imgs-4col.no-mobile-slide:has(> img:only-child) {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
  }

  .imgs-4col.no-mobile-slide:has(> img:only-child) > img:only-child {
    flex: initial;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: none;
  }

  .section-cols-grid article {
    padding-top: 18px;
  }

  .titles-col-sections {
    margin-bottom: 18px;
  }

  .titles-col-sections .card-number {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
  }

  .txt-col-sections {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .txt-col-sections br + br {
    display: none;
  }

  .section-cards-grid {
    margin-top: calc(var(--project-image-gap) / 2);
  }

  .section-cards-grid .section-card-list {
    font-size: 14px;
    line-height: 1.15;
    margin-bottom: 18px;
    padding-left: 16px;
  }

  .section-cards-grid .section-card-list li + li {
    margin-top: 4px;
  }

  .sections-copy p:last-child {
    margin-bottom: 0;
  }

  .sections-block + .imgs-2col,
  .sections-block + .imgs-3col,
  .sections-block + .imgs-4col {
    margin-top: 80px;
  }
}

/* GRID PROCESS EXPLANATION */
.grid-process-explanation {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--project-image-gap);
  row-gap: var(--project-image-gap);
  margin: var(--space-md) 0 0;
}

.grid-process-explanation article {
  border-top: 2px solid var(--black);
  border-bottom: none;
  padding-top: 22px;
  min-width: 0;
}

.grid-process-explanation .titles-col-sections {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.grid-process-explanation .card-number {
  border: none;
  background: var(--mealclub-blue);
  color: var(--white);
}

.grid-process-explanation .txt-col-sections,
.grid-process-explanation .section-card-list {
  max-width: none;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.grid-process-explanation .section-card-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 18px;
  margin: 0 0 24px;
}

.grid-process-explanation .section-card-list li {
  line-height: 1.15;
}

.grid-process-explanation .section-card-list li + li {
  margin-top: 5px;
}

.grid-process-explanation .txt-col-sections {
  margin-bottom: 18px;
}

.grid-process-explanation .txt-col-sections:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .pie-pagina-imgs {
    width: 100%;
  }

  .grid-process-explanation {
    grid-template-columns: 1fr;
    row-gap: var(--space-md);
  }
}

@media (max-width: 620px) {
  .grid-process-explanation {
    width: calc(100% - 48px);
    margin: calc(var(--project-image-gap) / 2) auto 0;
    row-gap: var(--space-md);
  }

  .grid-process-explanation article {
    padding-top: 18px;
  }

  .grid-process-explanation .section-card-list {
    padding-left: 16px;
    margin-bottom: 18px;
  }

  .grid-process-explanation .section-card-list li + li {
    margin-top: 4px;
  }
}

/* CARD DETAILS NUMBER + TITLE ALIGNMENT */

.project-card-details .cards-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  row-gap: 22px;
  align-items: baseline;
  background: var(--mealclub-blue);
  border: none;
  color: var(--white);
  min-height: 220px;
  padding-top: 28px;
  padding-bottom: 34px;
}

.project-card-details .cards-grid article > .card-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--white);
  color: var(--mealclub-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1;
  font-weight: 700;
  align-self: baseline;
  transform: translateY(-0.08em);
}

.project-card-details .cards-grid article > h3 {
  margin: 0;
  align-self: baseline;
  font-weight: 500;
}

.project-card-details .cards-grid article > p {
  grid-column: 1 / -1;
  align-self: end;
  line-height: 1.45;
}

.hexacore-users-needs {
  width: min(100%, 1560px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 38px);
  margin-top: var(--space-md);
  margin-right: auto;
  margin-left: auto;
}

.hexacore-persona-card {
  min-width: 0;
  overflow: hidden;
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--hexacore-purple) 82%, white), color-mix(in srgb, var(--hexacore-purple) 72%, black));
  box-shadow: 0 16px 38px rgba(56, 58, 135, 0.32);
}

.hexacore-persona-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.68fr);
  gap: clamp(14px, 1.5vw, 24px);
  align-items: center;
  padding: clamp(12px, 1.35vw, 20px);
  color: var(--black);
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.hexacore-persona-name {
  min-width: 0;
}

.hexacore-persona-name h3 {
  max-width: 360px;
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hexacore-persona-name p,
.hexacore-persona-meta p {
  margin: 0;
  font-size: clamp(12px, 0.82vw, 16px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hexacore-persona-meta {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding-left: clamp(14px, 1.3vw, 20px);
  border-left: 2px solid var(--black);
}

.hexacore-persona-card h4 {
  margin: clamp(22px, 2.4vw, 38px) clamp(20px, 2.8vw, 44px) clamp(18px, 2.2vw, 32px);
  text-align: center;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hexacore-needs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px) clamp(18px, 2.2vw, 34px);
  padding: 0 clamp(20px, 2.8vw, 44px) clamp(26px, 3vw, 46px);
}

.hexacore-needs-grid div {
  min-width: 0;
}

.hexacore-needs-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(38px, 3.2vw, 54px);
  padding: 8px 16px;
  color: var(--black);
  text-align: center;
  font-size: clamp(13px, 0.9vw, 17px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
}

.hexacore-needs-grid p {
  margin: clamp(12px, 1.35vw, 22px) 0 0;
  color: var(--white);
  font-size: clamp(13px, 0.95vw, 18px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 400;
}

@media (max-width: 1180px) {
  .hexacore-users-needs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hexacore-persona-header,
  .hexacore-needs-grid {
    grid-template-columns: 1fr;
  }

  .hexacore-persona-header {
    text-align: center;
  }

  .hexacore-persona-name h3 {
    margin-bottom: 12px;
  }

  .hexacore-persona-meta {
    gap: 12px;
    padding-left: 0;
    padding-top: 18px;
    border-left: none;
    border-top: 2px solid var(--black);
  }
}

@media (max-width: 620px) {
  .project-card-details:has(+ .imgs-2col),
  .project-card-details:has(+ .imgs-3col),
  .project-card-details:has(+ .imgs-4col) {
    margin-bottom: 40px;
  }

  .project-card-details + .imgs-2col,
  .project-card-details + .imgs-3col,
  .project-card-details + .imgs-4col {
    margin-top: 40px;
  }

  .project-card-details .cards-grid article {
    column-gap: 12px;
    row-gap: 14px;
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .project-card-details .cards-grid article > .card-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* CARD DETAILS STATEMENT */

.card-details-statement {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: var(--space-medium);
}

.card-details-statement blockquote,
.card-details-statement p {
  grid-column: 2 / 5;
  max-width: none;
  font-size: calc((var(--fs-project-intro) / 2) + 5px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin: 0;
}

@media (max-width: 980px) {
  .card-details-statement {
    grid-template-columns: 1fr;
  }

  .card-details-statement blockquote,
  .card-details-statement p {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .card-details-statement {
    margin-top: var(--space-medium);
  }

  .card-details-statement blockquote,
  .card-details-statement p {
    font-size: 17px;
  }
}

/* IMAGE GRID SPACING */

:is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col) {
  margin-top: 0;
  margin-bottom: 12px;
}

:is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col):has(
    + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col)
  ) {
  margin-bottom: 12px;
}

:is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col)
  + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col) {
  margin-top: 0;
}

.sections-block + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col),
.project-card-details + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col) {
  margin-top: var(--space-md);
}

:is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col) + .project-card-details {
  margin-top: var(--space-md);
}

.sections-block + .project-card-details {
  margin-top: var(--space-xl);
}

@media (max-width: 620px) {
  :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col, .research-6col-grid) {
    margin-top: calc(var(--project-image-gap) * 1.5);
    margin-bottom: calc(var(--project-image-gap) * 1.5);
  }

  :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col, .research-6col-grid)
    + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col, .research-6col-grid) {
    margin-top: calc(var(--project-image-gap) * 1.5);
  }

  .sections-block + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col),
  .project-card-details + :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col),
  .sections-block + .project-card-details,
  :is(.imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col) + .project-card-details {
    margin-top: var(--space-xl);
  }

  .centered-two-cols img:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .centered-two-cols .project-image-captioned:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .mobile-slide-tall:has(> img:only-child) {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
  }

  .mobile-slide-tall:has(> img:only-child) > img:only-child {
    flex: 0 0 150%;
    width: 150%;
    max-width: none;
    scroll-snap-align: start;
  }

  .imgs-ratio-grid {
    grid-template-columns: 1fr;
    gap: var(--project-image-gap);
    margin-top: calc(var(--project-image-gap) * 1.5);
  }

  .imgs-left-third-grid {
    grid-template-columns: 1fr;
    gap: var(--project-image-gap);
    margin-top: calc(var(--project-image-gap) * 1.5);
  }
}

@media (max-width: 620px) {
  :is(.sections-block, .project-card-details, .imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col, .research-6col-grid)
    + :is(.sections-block, .project-card-details, .imgs-2col, .imgs-3col, .imgs-4col, .imgs-text-4col, .research-6col-grid) {
    margin-top: var(--space-xl);
  }
}

/* PROBLEM STATEMENT */

.problem-statement-section {
  margin: var(--space-xl) 0 var(--space-medium);
}

.problem-statement-pill {
  width: fit-content;
  background: var(--mealclub-blue);
  color: var(--white);
  border-radius: var(--radius);
  font-size: var(--fs-project-summary-meta);
  line-height: 1;
  font-weight: 600;
}

.problem-statement-content {
  display: contents;
}

.problem-statement-copy,
.problem-statement-closing {
  grid-column: 2 / -1;
  max-width: none;
  font-size: var(--fs-project-intro);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.problem-statement-copy p {
  margin-bottom: var(--space-sm);
}

.problem-statement-pill {
  grid-column: 2 / -1;
  padding: 18px 36px;
  margin: var(--space-md) auto var(--space-sm);
  text-align: center;
}

.problem-stat-grid {
  grid-column: 1 / -1;
  width: 100%;
  gap: clamp(18px, 2vw, 32px);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.market-context-after {
  grid-column: 2 / -1;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.market-context-after p + p {
  margin-top: 24px;
}

.market-context-source {
  margin-top: 14px;
  font-size: clamp(12px, 0.85vw, 14px) !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  opacity: 0.72;
}

.market-context-after + .research-6col-grid {
  margin-top: var(--space-md);
}

.problem-stat-grid article {
  min-height: 250px;
  border: none;
  border-radius: var(--radius);
  background: var(--mealclub-blue);
  color: var(--white);
  padding: 26px 28px 30px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-content: stretch;
  align-items: end;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.problem-stat-grid article::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: -18px;
  height: 72px;
  background: var(--white);
  border-radius: 0 0 50% 50%;
}

.problem-stat-grid strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(42px, 4vw, 72px);
  line-height: 0.9;
  font-weight: 500;
  margin-bottom: 22px;
  align-self: end;
}

.problem-stat-grid span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-card-body);
  line-height: 1;
  margin-top: -6px;
  margin-bottom: 22px;
  align-self: end;
}

.problem-stat-grid span strong {
  display: inline;
  margin-bottom: 0;
}

.problem-stat-grid p {
  position: relative;
  z-index: 1;
  font-size: var(--fs-card-body);
  line-height: 1.12;
  font-weight: 400;
  margin: 0;
  align-self: end;
}

.problem-statement-closing {
  margin-top: var(--space-sm);
}

@media (max-width: 980px) {
  .problem-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-context-after {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .problem-statement-section {
    margin: calc(var(--space-md) / 2) 0;
  }

  .problem-statement-copy,
  .problem-statement-pill,
  .problem-statement-closing {
    grid-column: auto;
  }

  .problem-statement-copy,
  .problem-statement-closing {
    font-size: 24px;
  }

  .problem-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--space-md);
  }

  .market-context-after {
    margin-top: var(--space-md);
  }

  .problem-stat-grid article {
    min-height: 165px;
    padding: 16px 12px 18px;
  }

  .problem-stat-grid article::before {
    top: -34px;
    height: 62px;
  }

  .problem-stat-grid strong {
    font-size: clamp(34px, 12vw, 56px);
    margin-bottom: 10px;
  }

  .problem-stat-grid span {
    gap: 5px;
    margin-bottom: 10px;
  }

  .problem-stat-grid p {
    font-size: 13px;
    line-height: 1.08;
  }
}




/* PROJECT PHASES TIMELINE */

.project-phases {
  width: 100%;
  margin: var(--space-md) 0 var(--space-md);
  padding: clamp(21px, 2.5vw, 45px) var(--page-padding);
}

.project-phases-line {
  width: 100%;
  height: 2px;
  background: var(--black);
  margin-bottom: clamp(58px, 6vw, 96px);
}

.project-phases-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 56px);
  align-items: start;
  position: relative;
}

.project-phase-item {
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-phase-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(34px, 3.9vw, 48px);
  left: calc(50% + clamp(42px, 4.1vw, 54px));
  width: calc(100% + clamp(22px, 3vw, 56px) - clamp(84px, 8.2vw, 108px));
  height: 2px;
  background: var(--black);
  opacity: 1;
}

.project-phase-number {
  width: clamp(70px, 7.2vw, 96px);
  height: clamp(70px, 7.2vw, 96px);
  border: none;
  border-radius: 999px;
  background: var(--mealclub-blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1;
  font-weight: 700;
  margin-bottom: clamp(28px, 3vw, 44px);
  position: relative;
  z-index: 2;
}

.project-phase-item h3 {
  max-width: 220px;
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}


/* STICKY PROJECT PHASES */

.project-phases-sentinel {
  width: 100%;
  height: 1px;
}

.project-phases-sticky {
  position: relative;
  z-index: 20;
  background: var(--bg);
}

.project-phases-sticky.is-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 14px clamp(28px, 6vw, 120px) 18px;
  margin-top: 0;
  margin-bottom: calc(var(--space-md) / 2);
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.project-phases-sticky.is-sticky .project-phases-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(70px, 7vw, 170px);
  width: 100%;
  max-width: none;
  align-items: center;
}

.project-phases-sticky.is-sticky .project-phase-number {
  width: 22px;
  height: 22px;
  font-size: 9px;
  margin-bottom: 9px;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.project-phases-sticky.is-sticky .project-phase-item.is-active .project-phase-number {
  background: var(--mealclub-blue);
  color: var(--white);
  border: none;
}

.project-phases-sticky.is-sticky .project-phase-item:not(:last-child)::after {
  top: 11px;
  left: calc(50% + 28px);
  width: calc(100% + clamp(70px, 7vw, 170px) - 56px);
  height: 1px;
}

.project-phases-sticky.is-sticky .project-phase-item h3 {
  max-width: 160px;
  font-size: clamp(8px, 0.6vw, 10px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}


/* PHASE ANCHORS */

.phase-scroll-anchor {
  display: block;
  position: relative;
  top: calc(-1 * clamp(90px, 8vw, 140px));
  height: 1px;
  width: 100%;
  visibility: hidden;
}


/* RESPONSIVE PROJECT PHASES */

@media (max-width: 980px) {
  .project-phases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 54px;
  }

  .project-phase-item:not(:last-child)::after {
    display: none;
  }

  .project-phases-sticky {
    position: static;
  }

  .project-phases-sticky.is-sticky {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-bottom: none;
  }

  .project-phases-sticky.is-sticky .project-phases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(22px, 3vw, 56px);
  }
}

@media (max-width: 620px) {
  .project-phases {
    margin: var(--space-md) 0 var(--space-lg);
  }

  .project-phases-line {
    margin-bottom: 42px;
  }

  .project-phases-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .project-phase-number {
    width: 64px;
    height: 64px;
    font-size: 24px;
    margin-bottom: 18px;
  }

  .project-phase-item h3 {
    max-width: 260px;
    font-size: 18px;
  }
}


/* USER NEEDS / USE CASES */

.user-needs-section {
  margin: var(--space-xl) 0 var(--space-small);
}

.user-needs-cards {
  margin-top: var(--space-medium);
  margin-bottom: var(--space-medium);
}

.user-needs-cards .cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-needs-cards .cards-grid article {
  min-height: 280px;
}

.user-needs-cards .cards-grid article > h3 {
  line-height: 1.02;
}

.user-needs-cards .cards-grid article > p {
  line-height: 1.35;
}

@media (max-width: 620px) {
  .user-needs-cards .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--project-image-gap);
  }

  .user-needs-cards .cards-grid article {
    min-height: auto;
  }
}

/* Evita que las siguientes cards hereden un margen excesivo */
.user-needs-cards + .project-card-details {
  margin-top: var(--space-medium);
}

.idealista-needs-flow {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--project-image-gap);
  margin: var(--space-small) 0 var(--space-medium);
}

.idealista-need-card {
  --need-bg: var(--white);
  --need-fg: var(--black);
  position: relative;
  min-height: clamp(430px, 38vw, 650px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: clamp(24px, 2.2vw, 42px);
  border-radius: var(--radius);
  background: var(--need-bg);
  color: var(--need-fg);
}

.idealista-need-card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 48px solid var(--need-bg);
}

.idealista-need-card-green {
  --need-bg: var(--idealista-green);
  --need-fg: var(--white);
}

.idealista-need-card-pale {
  --need-bg: #d7ddbf;
  --need-fg: var(--black);
}

.idealista-need-card-blue {
  --need-bg: var(--idealista-blue);
  --need-fg: var(--white);
}

.idealista-need-card-soft {
  --need-bg: #dbe2ee;
  --need-fg: var(--black);
}

.idealista-need-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.15vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.idealista-need-line {
  display: block;
  width: 100%;
  height: 3px;
  margin: clamp(54px, 7.2vw, 110px) 0 clamp(42px, 6vw, 94px);
  background: currentColor;
}

.idealista-need-copy {
  align-self: end;
}

.idealista-need-copy p,
.idealista-need-copy li {
  margin: 0;
  font-size: clamp(18px, 1.35vw, 30px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.idealista-need-copy p + p,
.idealista-need-copy p + ul {
  margin-top: clamp(22px, 2vw, 34px);
}

.idealista-need-copy ul {
  padding-left: 1.1em;
}

@media (max-width: 980px) {
  .idealista-needs-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: calc(var(--project-image-gap) + 54px);
  }
}

@media (max-width: 620px) {
  .idealista-needs-flow {
    grid-template-columns: 1fr;
    row-gap: calc(var(--project-image-gap) + 44px);
  }

  .idealista-need-card {
    min-height: 390px;
  }

  .idealista-need-line {
    margin: 48px 0 42px;
  }
}


/* DEVELOPMENT STACK */

.development-stack-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--project-image-gap);
  margin: var(--space-medium) 0 0;
}

.sections-block + .development-stack-grid {
  margin-top: var(--space-small);
}

.development-stack-grid + .development-stack-grid {
  margin-top: var(--project-image-gap);
}

.development-stack-grid + .sections-block {
  margin-top: var(--space-zl);
}

.development-stack-group {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--project-image-gap);
  min-height: 300px;
  padding: clamp(18px, 2vw, 34px);
  border-radius: var(--radius);
  background: var(--white);
}

.development-stack-group h3 {
  width: fit-content;
  min-width: 110px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--mealclub-blue);
  color: var(--white);
  font-size: var(--fs-grid-title);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-align: center;
  justify-self: center;
}

.development-tool-grid {
  display: grid;
  gap: var(--project-image-gap);
  align-items: start;
}

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

.development-tool-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.development-tool-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.development-tool-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  align-content: start;
  min-height: 150px;
}

.development-tool-card strong {
  min-height: 86px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--mealclub-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-align: center;
}

.development-tool-card span {
  font-size: var(--fs-grid-body);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.development-cols-grid {
  margin-top: var(--space-small);
}

.development-cols-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--project-image-gap);
}

.development-cols-grid + .development-cols-grid {
  margin-top: var(--space-medium);
}

.development-cols-grid + .sections-block {
  margin-top: var(--space-xl);
}

@media (max-width: 980px) {
  .development-cols-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .development-stack-grid {
    grid-template-columns: 1fr;
  }

  .development-tool-grid-4,
  .development-tool-grid-3,
  .development-tool-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .development-stack-grid + .sections-block {
    margin-top: var(--space-medium);
  }
}

@media (max-width: 620px) {
  .project-hero-summary {
    grid-template-areas:
      "center"
      "left"
      "right";
  }

  .project-card-details .cards-grid,
  .project-card-details .cards-grid-4,
  .user-needs-cards .cards-grid {
    grid-template-columns: 1fr;
  }

  .development-cols-grid-4 {
    grid-template-columns: 1fr;
  }

  .development-stack-group {
    min-height: 0;
    padding: 14px;
  }

  .development-tool-grid {
    gap: calc(var(--project-image-gap) / 2);
  }

  .development-tool-card {
    min-height: 0;
  }

  .development-tool-card strong {
    min-height: 70px;
    padding: 12px;
  }
}


/* FLOATING CONTROLS */
.floating-controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.floating-control {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.floating-control:hover {
  transform: translateY(-2px);
}

.floating-lang-wrapper {
  position: relative;
}

.floating-lang-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--black);
}

.floating-lang-menu.is-open {
  display: flex;
}

.floating-lang-menu button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: var(--fs-nav);
  font-weight: 700;
  cursor: pointer;
}

body.is-light-mode {
  background: var(--white);
  color: var(--black);
}

body.is-light-mode .portfolio-page,
body.is-light-mode .project-detail-page {
  background: var(--white);
  color: var(--black);
}

body.is-light-mode p,
body.is-light-mode h1,
body.is-light-mode h2,
body.is-light-mode h3,
body.is-light-mode li,
body.is-light-mode span,
body.is-light-mode a {
  color: var(--black);
}

body.is-light-mode .project-section-tabs span,
body.is-light-mode .project-section-tabs a,
body.is-light-mode .nav-item,
body.is-light-mode .cards-grid article,
body.is-light-mode .section-cols-grid article,
body.is-light-mode .footer-card {
  background: var(--white);
  color: var(--black);
}

body.is-light-mode .project-section-tabs .active,
body.is-light-mode .nav-item.active {
  background: var(--mealclub-blue);
  color: var(--white);
}

body.is-light-mode .project-section-tabs .active,
body.is-light-mode .nav-item.active,
body.is-light-mode .project-section-tabs .active *,
body.is-light-mode .nav-item.active * {
  color: var(--white);
}

@media (max-width: 620px) {
  .floating-controls {
    right: 14px;
    bottom: 14px;
    gap: 6px;
    padding: 6px;
  }

  .floating-control {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* FLOATING CONTROLS · FINAL OVERRIDE */
.floating-controls,
.floating-lang-wrapper,
.floating-lang-menu,
[data-theme-toggle],
[data-lang-toggle] {
  display: none !important;
}

.floating-control-cluster {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-control-single {
  width: 54px;
  height: 54px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.floating-control-single:hover {
  transform: translateY(-2px);
}

.floating-control-language {
  font-size: 14px;
}

#google_translate_element,
.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 620px) {
  .floating-control-cluster {
    right: 14px;
    bottom: 14px;
    gap: 6px;
  }

  .floating-control-single {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .floating-control-language {
    font-size: 12px;
  }
}

/* IDEALISTA PRODUCT COLORS */

body.idealista-page .project-detail-page > section:nth-of-type(odd) {
  --mealclub-blue: var(--idealista-green);
  --idealista-accent-text: var(--black);
}

body.idealista-page .project-detail-page > section:nth-of-type(even) {
  --mealclub-blue: var(--idealista-blue);
  --idealista-accent-text: var(--white);
}

/* Idealista accent backgrounds alternate between green and blue */
body.idealista-page .section-tag,
body.idealista-page .titles-col-sections .card-number,
body.idealista-page .grid-process-explanation .card-number,
body.idealista-page .project-phase-number,
body.idealista-page .project-card-details .cards-grid article,
body.idealista-page .development-stack-group h3,
body.idealista-page .development-tool-card strong,
body.idealista-page .problem-statement-pill,
body.idealista-page .problem-stat-grid article {
  color: var(--idealista-accent-text, var(--black));
}

/* Number circles inside accent cards should invert correctly */
body.idealista-page .project-card-details .cards-grid article > .card-number {
  background: var(--idealista-accent-text, var(--black));
  color: var(--mealclub-blue);
}

/* Sticky active phase */
body.idealista-page .project-phases-sticky.is-sticky .project-phase-item.is-active .project-phase-number {
  background: var(--idealista-green);
  color: var(--black);
}

/* Optional blue accent utility */
body.idealista-page .idealista-blue-accent {
  background: var(--idealista-blue);
  color: var(--white);
}

/* LUMI DIRECTORY FOOTER */

.lumi-directory-footer {
  margin-top: 58px;
  width: 100%;
  min-height: min(70vw, 760px);
  padding: clamp(18px, 2.4vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, #111 0%, #242424 44%, rgba(36, 36, 36, 0.92) 62%, var(--bg) 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(40px, 6vw, 96px);
}

.lumi-footer-brand {
  display: block;
  width: 100%;
}

.lumi-footer-brand img {
  width: 100%;
  height: auto;
  max-height: clamp(120px, 19vw, 260px);
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.lumi-footer-directory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 34px);
  align-self: end;
}

.lumi-footer-column {
  position: relative;
  min-height: clamp(190px, 16vw, 285px);
  padding: clamp(18px, 1.7vw, 30px);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(126, 92, 204, 0.96) 0%, rgba(86, 68, 128, 0.96) 48%, rgba(49, 42, 66, 0.98) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.lumi-footer-column::before,
.lumi-footer-column::after {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.4vw, 22px);
  pointer-events: none;
  opacity: 0.54;
}

.lumi-footer-column::before {
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  border-left: 1px solid rgba(255, 255, 255, 0.52);
  clip-path: polygon(0 0, 34px 0, 34px 1px, 1px 1px, 1px 34px, 0 34px);
}

.lumi-footer-column::after {
  border-right: 1px solid rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  clip-path: polygon(calc(100% - 34px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 34px), 100% calc(100% - 34px), 100% 100%, calc(100% - 34px) 100%);
}

.lumi-footer-column h2 {
  margin-bottom: clamp(26px, 3vw, 54px);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 500;
  letter-spacing: 0;
}

.lumi-footer-column ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lumi-footer-column li,
.lumi-footer-column a {
  color: var(--white);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.lumi-footer-column a {
  text-decoration: none;
}

.lumi-footer-column a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lumi-footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: rgba(30, 30, 30, 0.72);
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 500;
  line-height: 1.35;
}

.lumi-footer-bottom p:first-child {
  max-width: 560px;
}

body.is-light-mode .lumi-directory-footer {
  background:
    linear-gradient(180deg, #111 0%, #242424 44%, rgba(36, 36, 36, 0.92) 62%, var(--bg) 100%);
}

@media (max-width: 980px) {
  .lumi-directory-footer {
    min-height: 0;
    gap: clamp(44px, 8vw, 78px);
    border-radius: calc(var(--radius) * 2);
  }

  .lumi-footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lumi-footer-column {
    min-height: 220px;
  }

  .lumi-footer-column:last-child {
    grid-column: 1 / -1;
    min-height: 170px;
  }
}

@media (max-width: 620px) {
  .lumi-directory-footer {
    padding: 18px 14px 22px;
    gap: 38px;
  }

  .lumi-footer-brand img {
    max-height: 120px;
  }

  .lumi-footer-directory {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lumi-footer-column,
  .lumi-footer-column:last-child {
    min-height: 0;
    padding: 22px 20px 26px;
  }

  .lumi-footer-column h2 {
    margin-bottom: 22px;
  }

  .lumi-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* SECTION COLUMNS · EXTRA BOTTOM AIR FIX */
.section-cols-grid,
.grid-process-explanation {
  margin-bottom: var(--space-medium);
}

.section-cols-grid + .hexacore-users-needs,
.section-cols-grid + .project-section,
.section-cols-grid + .project-card-details,
.section-cols-grid + .imgs-2col,
.section-cols-grid + .imgs-3col,
.section-cols-grid + .imgs-4col,
.section-cols-grid + .imgs-text-4col,
.section-cols-grid + .mvp-inter-grid,
.section-cols-grid + .research-6col-grid,
.grid-process-explanation + .project-section,
.grid-process-explanation + .project-card-details,
.grid-process-explanation + .imgs-2col,
.grid-process-explanation + .imgs-3col,
.grid-process-explanation + .imgs-4col,
.grid-process-explanation + .imgs-text-4col,
.grid-process-explanation + .mvp-inter-grid,
.grid-process-explanation + .research-6col-grid {
  margin-top: var(--space-medium);
}

.sections-block:has(+ .hexacore-users-needs),
.sections-block:has(+ .project-card-details),
.sections-block:has(+ .imgs-2col),
.sections-block:has(+ .imgs-3col),
.sections-block:has(+ .imgs-4col),
.sections-block:has(+ .imgs-text-4col),
.sections-block:has(+ .mvp-inter-grid),
.sections-block:has(+ .research-6col-grid) {
  margin-bottom: var(--space-medium);
}

.hexacore-users-needs,
.project-card-details,
.mvp-inter-grid,
.research-6col-grid,
.imgs-2col,
.imgs-3col,
.imgs-4col,
.imgs-text-4col {
  scroll-margin-top: var(--space-md);
}

@media (max-width: 620px) {
  .section-cols-grid,
  .grid-process-explanation {
    margin-bottom: var(--space-lg);
  }

  .section-cols-grid + .hexacore-users-needs,
  .section-cols-grid + .project-section,
  .section-cols-grid + .project-card-details,
  .section-cols-grid + .imgs-2col,
  .section-cols-grid + .imgs-3col,
  .section-cols-grid + .imgs-4col,
  .section-cols-grid + .imgs-text-4col,
  .section-cols-grid + .mvp-inter-grid,
  .section-cols-grid + .research-6col-grid,
  .grid-process-explanation + .project-section,
  .grid-process-explanation + .project-card-details,
  .grid-process-explanation + .imgs-2col,
  .grid-process-explanation + .imgs-3col,
  .grid-process-explanation + .imgs-4col,
  .grid-process-explanation + .imgs-text-4col,
  .grid-process-explanation + .mvp-inter-grid,
  .grid-process-explanation + .research-6col-grid {
    margin-top: var(--space-lg);
  }

  .sections-block:has(+ .hexacore-users-needs),
  .sections-block:has(+ .project-card-details),
  .sections-block:has(+ .imgs-2col),
  .sections-block:has(+ .imgs-3col),
  .sections-block:has(+ .imgs-4col),
  .sections-block:has(+ .imgs-text-4col),
  .sections-block:has(+ .mvp-inter-grid),
  .sections-block:has(+ .research-6col-grid) {
    margin-bottom: var(--space-lg);
  }
}


/* RESPONSIVE PROJECT HERO · PROFILE CARD ALIGNMENT FIX */
@media (max-width: 768px) {
  .project-hero-summary {
    align-items: stretch;
  }

  .project-hero-right,
  .hero-profile-item {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-profile-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-profile-card img {
    width: 100%;
    object-fit: cover;
  }

  .hero-profile-role {
    width: 100%;
    text-align: left;
  }
}
/* LUMI CREATIVE · RESPONSIVE PACKAGING GRID */
@media (max-width: 620px) {
  body.lumi-page .imgs-2col.packaging-grid,
  body.lumi-page .imgs-4col.packaging-grid,
  body.lumi-page .imgs-3col.packaging-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--project-image-gap);
    overflow: visible;
    scroll-snap-type: none;
  }

  body.lumi-page .imgs-2col.packaging-grid img,
  body.lumi-page .imgs-4col.packaging-grid img,
  body.lumi-page .imgs-3col.packaging-grid img,
  body.lumi-page .imgs-2col.packaging-grid img:nth-child(1),
  body.lumi-page .imgs-2col.packaging-grid img:nth-child(2),
  body.lumi-page .imgs-4col.packaging-grid img:nth-child(1),
  body.lumi-page .imgs-4col.packaging-grid img:nth-child(2),
  body.lumi-page .imgs-3col.packaging-grid img:nth-child(1),
  body.lumi-page .imgs-3col.packaging-grid img:nth-child(2) {
    grid-column: auto;
    order: initial;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}
/* FINAL RESPONSIVE FIX · HERO PROFILE CENTER + LUMI PACKAGING 2 COLUMNS */
@media (max-width: 620px) {
  /* Center the participant/profile square in project heroes */
  .project-hero-summary .project-hero-right:has(.hero-profile-card) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
    justify-content: center !important;
    justify-items: center !important;
    text-align: center !important;
    grid-template-columns: minmax(0, min(100%, 360px)) !important;
  }

  .project-hero-summary .project-hero-right:has(.hero-profile-card) .hero-profile-item,
  .project-hero-summary .project-hero-right:has(.hero-profile-card) .hero-profile-item:only-child {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
    text-align: center !important;
  }

  .project-hero-summary .project-hero-right:has(.hero-profile-card) .hero-profile-card {
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .project-hero-summary .project-hero-right:has(.hero-profile-card) .hero-profile-roles,
  .project-hero-summary .project-hero-right:has(.hero-profile-card) .hero-profile-role {
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  /* Force Lumi Creative packaging image blocks into 2 columns on mobile */
  body.lumi-page .imgs-2col.packaging-grid,
  body.lumi-page .imgs-3col.packaging-grid,
  body.lumi-page .imgs-4col.packaging-grid,
  body.lumi-page .packaging-grid,
  body.lumi-page .lumi-packaging-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--project-image-gap) !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body.lumi-page .imgs-2col.packaging-grid > img,
  body.lumi-page .imgs-3col.packaging-grid > img,
  body.lumi-page .imgs-4col.packaging-grid > img,
  body.lumi-page .packaging-grid > img,
  body.lumi-page .lumi-packaging-grid > img {
    grid-column: auto !important;
    order: initial !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    flex: initial !important;
    scroll-snap-align: none !important;
  }

  body.lumi-page .packaging-grid > img:only-child,
  body.lumi-page .lumi-packaging-grid > img:only-child {
    grid-column: 1 / -1 !important;
  }
}
