/* ============================================================
   PORTFOLIO PAGE — page-specific styles
   ============================================================ */

.hero__content {
  padding-bottom: 40px;
  padding-top: 20px;
}

/* ── Hero stats strip under sub ── */
.port-hero__meta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
}

.port-hero__meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.port-hero__meta-num {
  font-family: var(--font-dutch);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: #111111;
  letter-spacing: -0.02em;
}

.port-hero__meta-label {
  font-family: var(--font-mont);
  font-size: 13px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
  color: #555555;
  text-transform: lowercase;
}

.port-hero__meta-sep {
  width: 1px;
  background: rgba(0, 0, 0, 0.18);
  align-self: stretch;
}

/* ============================================================
   FEATURED — large 2-column case study blocks
   ============================================================ */

/* Curtain effect */
.port-curtain-wrap { position: relative; }
.section-featured { position: sticky; top: 0; }
.port-curtain-top { position: relative; z-index: 2; }

.section-featured {
  background: #ffffff;
  width: 100%;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 90px;
}

.featured__head {
  text-align: center;
  margin-bottom: 70px;
}

.featured__tag {
  display: inline-block;
  font-family: var(--font-mont);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9ceea;
  background: rgba(105, 88, 135, 0.08);
  border-radius: 5px;
  padding: 8px 14px;
  margin-bottom: 22px;
}

.featured__heading {
  margin: 0 0 18px 0;
  font-weight: var(--fw-regular);
  text-align: center;
}

.featured__heading .h2-mont {
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  line-height: var(--lh-h2-mont);
  letter-spacing: -0.07em;
  color: #111111;
}

.featured__heading .h2-dutch {
  font-family: var(--font-dutch);
  font-size: var(--fs-h2-dutch);
  font-style: italic;
  line-height: var(--lh-h2-mont);
  color: #111111;
}

.featured__sub {
  font-family: var(--font-mont);
  font-size: calc(var(--fs-p) * 0.85);
  color: #555555;
  line-height: var(--lh-p);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* ── Single featured case ── */
.featured__case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-top: 100px;
}

.featured__case:first-of-type {
  margin-top: 0;
}

.featured__case--imgright {
  grid-template-columns: 1fr 1.1fr;
}

/* ── Media block ── */
.featured__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #f0f0f0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured__media:hover img {
  transform: scale(1.04);
}

.featured__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-block;
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 5px;
  padding: 7px 12px;
}

/* ── Body block ── */
.featured__body {
  padding: 10px 0;
}

.featured__client {
  display: inline-block;
  font-family: var(--font-mont);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9ceea;
  margin-bottom: 18px;
}

.featured__title {
  margin: 0 0 22px 0;
  font-weight: var(--fw-regular);
}

.featured__title .h2-mont {
  font-family: var(--font-mont);
  font-size: 34.2px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.05em;
  color: #111111;
}

.featured__title .h2-dutch {
  font-family: var(--font-mont);
  font-size: 34.2px;
  font-style: normal;
  line-height: 1.15;
  color: #111111;
}

.featured__desc {
  font-family: var(--font-mont);
  font-size: calc(var(--fs-p) * 0.816);
  color: #444444;
  line-height: 1.65;
  margin: 0 0 28px 0;
}

.featured__services {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured__services li {
  font-family: var(--font-mont);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: #111111;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 7px 12px;
  line-height: 1;
}

.featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
}

.featured__meta-cat,
.featured__meta-year {
  font-family: var(--font-mont);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  color: #555555;
}

.featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mont);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  color: #111111;
  position: relative;
}

.featured__cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: #111111;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.featured__cta:hover::after {
  transform-origin: right center;
  transform: scaleX(0);
}

.featured__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.featured__cta:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   GRID — editorial project cards
   ============================================================ */

.section-pgrid {
  background: #fafafa;
  width: 100%;
  margin: 0 auto;
  padding-top: 110px;
  padding-bottom: 110px;
}

.pgrid__head {
  text-align: center;
  margin-bottom: 70px;
}

.pgrid__tag {
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
  font-family: var(--font-mont);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-default);
  color: #ffffff;
  background: #111111;
  border: none;
  border-radius: 5px;
  padding: 12px 25px;
  white-space: nowrap;
  cursor: default;
  line-height: 1;
}

.pgrid__heading {
  margin: 0 0 18px 0;
  font-weight: var(--fw-regular);
}

.pgrid__heading .h2-mont {
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  line-height: var(--lh-h2-mont);
  letter-spacing: -0.07em;
  color: #111111;
}

.pgrid__heading .h2-dutch {
  font-family: var(--font-dutch);
  font-size: var(--fs-h2-dutch);
  font-style: italic;
  line-height: var(--lh-h2-mont);
  color: #111111;
}

.pgrid__sub {
  font-family: var(--font-mont);
  font-size: calc(var(--fs-p) * 0.85);
  color: #555555;
  line-height: var(--lh-p);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Grid container ── */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}

/* ── Individual card ── */
.pcard {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: default;
  position: relative;
}

.pcard__media {
  cursor: pointer;
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #efefef;
  margin-bottom: 18px;
}

.pcard__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.pcard__media::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.pcard:hover .pcard__media::before,
.pcard:hover .pcard__media::after {
  opacity: 1;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pcard:hover .pcard__media img {
  transform: scale(1.04);
}

/* ── Card body ── */
.pcard__body {
  padding: 0 4px;
}

.pcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pcard__cat {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d9ceea;
}

.pcard__year {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  color: #888888;
}

.pcard__title {
  font-family: var(--font-mont);
  font-size: 19px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.pcard__services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pcard__services li {
  font-family: var(--font-mont);
  font-size: 11px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  color: #555555;
  position: relative;
  padding-right: 12px;
}

.pcard__services li::after {
  content: '·';
  position: absolute;
  right: 3px;
  top: 0;
  color: #bbbbbb;
}

.pcard__services li:last-child {
  padding-right: 0;
}

.pcard__services li:last-child::after {
  display: none;
}

/* ── More button ── */
.pgrid__more {
  text-align: center;
  margin-top: 70px;
}

.pgrid__more-btn {
  display: inline-block;
  font-family: var(--font-mont);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-default);
  color: #ffffff;
  background: #111111;
  border-radius: 6px;
  padding: 16px 28px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pgrid__more-btn:hover {
  background: #d9ceea;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.section-tests {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 80px;
  position: relative;
  overflow: visible;
}

.tests__head {
  text-align: center;
  margin-bottom: 70px;
}

.tests__tag {
  display: inline-block;
  font-family: var(--font-mont);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9ceea;
  background: rgba(105, 88, 135, 0.08);
  border-radius: 5px;
  padding: 8px 14px;
  margin-bottom: 22px;
}

.tests__heading {
  margin: 0;
  font-weight: var(--fw-regular);
}

.tests__heading .h2-mont {
  font-family: var(--font-mont);
  font-size: var(--fs-h2-mont);
  font-weight: 400;
  line-height: var(--lh-h2-mont);
  letter-spacing: -0.07em;
  color: #111111;
}

.tests__heading .h2-dutch {
  font-family: var(--font-dutch);
  font-size: var(--fs-h2-dutch);
  font-style: italic;
  line-height: var(--lh-h2-mont);
  color: #111111;
}

.tests__grid {
  column-count: 4;
  column-gap: 20px;
}

.tests__row {
  display: contents; /* remove row wrapper from flow */
}

.testc {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 24px;
  border: none;
  display: flex;
  flex-direction: column;
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
}

.testc__body {
  font-family: var(--font-mont);
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: #222222;
  margin: 0 0 24px 0;
  padding-right: 28px; /* avoid overlap with icon */
}

.testc__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testc__image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testc__person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.testc__name {
  font-family: var(--font-mont);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #111111;
  letter-spacing: -0.02em;
}

.testc__role {
  font-family: var(--font-mont);
  font-size: 11.5px;
  font-weight: var(--fw-regular);
  color: #888888;
  letter-spacing: 0;
}

@media screen and (max-width: 1024px) {
  .tests__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 680px) {
  .tests__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.section-featured.will-animate .featured__head,
.section-featured.will-animate .featured__case,
.section-pgrid.will-animate .pgrid__head,
.section-pgrid.will-animate .pcard,
.section-pgrid.will-animate .pgrid__more,
.section-tests.will-animate .tests__head,
.section-tests.will-animate .testc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-featured.anim-visible .featured__head,
.section-featured.anim-visible .featured__case,
.section-pgrid.anim-visible .pgrid__head,
.section-pgrid.anim-visible .pcard,
.section-pgrid.anim-visible .pgrid__more,
.section-tests.anim-visible .tests__head,
.section-tests.anim-visible .testc {
  opacity: 1;
  transform: translateY(0);
}

.section-featured.anim-visible .featured__case:nth-of-type(1) { transition-delay: 0.1s; }
.section-featured.anim-visible .featured__case:nth-of-type(2) { transition-delay: 0.2s; }

.section-pgrid.anim-visible .pcard:nth-child(1)  { transition-delay: 0.05s; }
.section-pgrid.anim-visible .pcard:nth-child(2)  { transition-delay: 0.10s; }
.section-pgrid.anim-visible .pcard:nth-child(3)  { transition-delay: 0.15s; }
.section-pgrid.anim-visible .pcard:nth-child(4)  { transition-delay: 0.20s; }
.section-pgrid.anim-visible .pcard:nth-child(5)  { transition-delay: 0.25s; }
.section-pgrid.anim-visible .pcard:nth-child(6)  { transition-delay: 0.30s; }
.section-pgrid.anim-visible .pcard:nth-child(7)  { transition-delay: 0.35s; }
.section-pgrid.anim-visible .pcard:nth-child(8)  { transition-delay: 0.40s; }
.section-pgrid.anim-visible .pcard:nth-child(9)  { transition-delay: 0.45s; }
.section-pgrid.anim-visible .pcard:nth-child(10) { transition-delay: 0.50s; }
.section-pgrid.anim-visible .pcard:nth-child(11) { transition-delay: 0.55s; }
.section-pgrid.anim-visible .pcard:nth-child(12) { transition-delay: 0.60s; }

.section-tests.anim-visible .testc:nth-of-type(1) { transition-delay: 0.10s; }
.section-tests.anim-visible .testc:nth-of-type(2) { transition-delay: 0.20s; }
.section-tests.anim-visible .testc:nth-of-type(3) { transition-delay: 0.30s; }
.section-tests.anim-visible .testc:nth-of-type(4) { transition-delay: 0.40s; }
.section-tests.anim-visible .testc:nth-of-type(5) { transition-delay: 0.50s; }
.section-tests.anim-visible .testc:nth-of-type(6) { transition-delay: 0.60s; }
.section-tests.anim-visible .testc:nth-of-type(7) { transition-delay: 0.70s; }
.section-tests.anim-visible .testc:nth-of-type(8) { transition-delay: 0.80s; }
.section-tests.anim-visible .testc:nth-of-type(9) { transition-delay: 0.90s; }
.section-tests.anim-visible .testc:nth-of-type(10) { transition-delay: 1.00s; }
.section-tests.anim-visible .testc:nth-of-type(11) { transition-delay: 1.10s; }
.section-tests.anim-visible .testc:nth-of-type(12) { transition-delay: 1.20s; }

/* ── Placeholder avatar — grey circle ── */
.testc__image {
  background: #d0d0d0;
}



/* ── community_overlay-gray — copied from relume.io ── */.community_overlay-gray {
  height: 152px;
  position: relative;
  margin-top: -152px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  display: block;
}

/* ── HERO DARK — black bg, white text ── */
.hero--dark {
  background: #111111;
}

.hero--dark .h1-mont,
.hero--dark .h1-dutch,
.hero--dark .bh1,
.hero--dark .hero__sub {
  color: #ffffff;
}

/* ── PORTFOLIO FILTER BUTTONS ── */
.port-filters {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.port-filters__row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.port-filter {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-family: var(--font-mont);
  font-size: calc(var(--fs-nav) * 0.96 * 1.15);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-default);
  color: #ffffff;
  padding: 9.2px 23px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.port-filter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

/* ── Portfolio hero height +40px ── */
.hero--dark {
  height: 850px;
}

/* ── FEATURED — dark theme ── */
.section-featured { background: #111111; }

.section-featured .featured__heading .h2-mont,
.section-featured .featured__heading .h2-dutch,
.section-featured .featured__title .h2-mont,
.section-featured .featured__title .h2-dutch { color: #ffffff; }

.section-featured .featured__sub { color: #999999; }
.section-featured .featured__desc { color: #aaaaaa; }

.section-featured .featured__services li {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.section-featured .featured__meta {
  border-top-color: rgba(255,255,255,0.12);
  border-bottom-color: rgba(255,255,255,0.12);
}

.section-featured .featured__meta-cat,
.section-featured .featured__meta-year { color: #888888; }

.section-featured .featured__cta { color: #ffffff; }
.section-featured .featured__cta::after { background: #ffffff; }
.section-featured .featured__cta svg { stroke: #ffffff; }

.section-featured .featured__media { background: #222222; }

/* ── Featured services — pill style on dark bg ── */
.section-featured .featured__services--pills li {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #ffffff;
}

/* Featured title Dutch → Mont override */
.section-featured .featured__title .h2-dutch {
  color: #ffffff;
  font-style: normal;
}
