/* ============================================================
   MORE PROJECTS SECTION — getCredible Bento
   ============================================================ */

.more-projects-section {
  padding: 48px 24px;
  background: linear-gradient(to bottom,
      #ffffff 0%,
      #ffffff 20%,
      #EDF0FF 50%,
      #ffffff 80%,
      #ffffff 100%);
}

/* ── Bento container ─────────────────────────────────────── */
.bento-getcredible {
  display: grid;
  grid-template-columns: 70fr 30fr;
  /* Default align-items:stretch makes both cells equal height.
     The left column's aspect-ratio drives the row height;
     the right column cell stretches to match automatically. */
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 16px;
  box-sizing: border-box;
}

/* ── Columns ─────────────────────────────────────────────── */
.bento-col--right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* The grid cell already stretches to the row height (= left
     column's aspect-ratio height). Flex children below distribute
     that space with their flex-grow values. */
}

/* 35% */

/* ── Generic box ─────────────────────────────────────────── */
.bento-box {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* ── Left column box heights ─────────────────────────────── */
.bento-box--media {
  aspect-ratio: 705 / 568;
  flex-shrink: 0;
}

.bento-box--caption {
  height: 142px;
  flex-shrink: 0;
}

/* short ~21% */

/* ── Right column box heights ────────────────────────────── */
/* flex values distribute the column height: 3 : 2 : 3 */
.bento-box--kpi {
  flex: 4;
  background: #ffffff;
  overflow: hidden;
}

.bento-box--toggle {
  flex: 2;
}

.bento-box--contacts {
  flex: 4;
  position: relative;
}

.bento-contacts-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-contacts-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px 0;
  box-sizing: border-box;
}

.bento-contacts-video-wrap {
  max-width: 400px;
  height: 100%;
  width: auto;
  aspect-ratio: 616 / 672;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bento-contacts-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── KPI image ───────────────────────────────────────────── */
.bento-kpi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Toggle ──────────────────────────────────────────────── */
.toggle-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #888;
  white-space: nowrap;
}

.toggle-label--active {
  color: #0c0c0c;
  font-weight: 600;
}

.toggle-switch {
  width: 44px;
  height: 26px;
  background: #6551FD;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.9;
}

/* ── Bento caption row ───────────────────────────────────── */
.bento-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 14px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.bento-caption-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Mirrors .t-heading from testimonials, scaled for caption context */
.bento-caption-title {
  font-family: 'EB Garamond', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #333;
}

/* Exact replica of the .t-heading styling from testimonials section */
.bento-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0.02px;
  color: #333;
  margin: 0;
}

@media (max-width: 1499px) {
  .bento-title {
    font-size: 32px;
  }
}

@media (max-width: 1000px) {
  .bento-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .bento-getcredible {
    grid-template-columns: 1fr;
    /* Single column on mobile viewports */
    padding: 12px;
  }

  .bento-col--right {
    height: auto !important;
    /* Overrides the JS-injected inline height style when columns stack */
    gap: 12px;
  }

  .bento-box--kpi {
    height: 180px;
  }

  .bento-box--toggle {
    height: 100px;
  }

  .bento-box--contacts {
    height: 280px;
  }

  .bento-contacts-video-wrap {
    height: 100%;
    width: auto;
    max-width: 200px;
    /* Constrain video to max 200px width on mobile so it looks balanced */
    aspect-ratio: 616 / 672;
  }

  .bento-title {
    font-size: 24px;
  }

  .bento-caption-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .bento-caption-left {
    gap: 10px;
  }
}







.bento-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Elegant, minimalist tags using EB Garamond italic & solid black */
.bento-tag {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: regular;
  font-size: 16px;
  /* 16px is perfect for elegant serif body details */
  font-weight: 400;
  line-height: 1.2;
  color: #3a3a3a;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.bento-tag:hover {
  opacity: 0.6;
}

/* Elegant middle-dot divider */
.bento-tag:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: #000000;
  font-style: normal;
  font-weight: bold;
  display: inline-block;
}

/* ── Bento Action Button — 'View design process' (Pill fill morph) ── */
.bento-btn {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  color: #0f0f14;
  background: transparent;
  border: 1px solid #0f0f14;
  padding: 12px 22px 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, transform .1s ease;
}

.bento-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #6551FD;
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(.65, .05, .2, 1);
  z-index: -1;
}

.bento-btn:hover {
  color: #fff;
  border-color: #6551FD;
}

.bento-btn:hover::before {
  transform: translateX(0);
}

.bento-btn em {
  font-style: normal;
}

.bento-btn .arrow {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  /* SVG draws ↗; rotate 45° clockwise to rest at → */
  transform: rotate(45deg);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.bento-btn:hover .arrow {
  /* Rotate back to the SVG's natural ↗ on hover */
  transform: rotate(0deg);
}

.bento-btn .arrow svg {
  width: 14px;
  height: 14px;
}

.bento-btn .arrow path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Click: press down, then spring back */
.bento-btn:active {
  transform: scale(0.94);
  transition: transform .08s cubic-bezier(.4, 0, .6, 1), color .25s ease, border-color .25s ease;
}

@keyframes bento-btn-pop {
  0% {
    transform: scale(0.94);
  }

  60% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.bento-btn.is-clicked {
  animation: bento-btn-pop .35s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

/* ── 3D Tilt ─────────────────────────────────────────────── */
.bento-box {
  will-change: transform;
  /* Spring-back transition when cursor leaves */
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-reduced-motion: reduce) {
  .bento-box {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   BENTO VIEWPORT REVEAL SYSTEM
   ============================================================ */

/* ── Generic reveal base ── */
.bento-reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

/* ── Bento Box reveal & tilt integration ── */
.bento-box.bento-reveal {
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.more-projects-section.is-revealed .bento-box.bento-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Once revealed, reset transition delay to 0ms for active hover tracking
   and restore the default spring-back curve so there's NO lag on cursor leave */
.more-projects-section.is-revealed .bento-box.bento-reveal:not(:hover) {
  transition: 
    transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.65s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
}

/* ── Caption row reveal ── */
.bento-caption-row.bento-reveal {
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.more-projects-section.is-revealed .bento-caption-row.bento-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .bento-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}