/* "Work with TLC": bento grid of big clickable tiles that route each
   audience (candidates, partners, players, anyone) to the right place.
   Template rules size every p/span/h3, so selectors are prefixed with
   .bento to win. */

.bento {
  position: relative;
  padding: 40px 0 110px;
}

.bento__head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.bento .bento__eyebrow {
  margin: 0 0 14px;
  color: var(--primary-color, #ff7a1f);
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .bento__title,
.bento__title {
  margin: 0;
  color: #fff;
  font-family: var(--head-font);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  text-transform: none;
}

.bento .bento__accent {
  display: inline-block;
  font: inherit;
  line-height: inherit;
  background: linear-gradient(90deg, #ffb347 0%, #ff7a1f 55%, #ff4f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Grid ---------- */
.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 22px;
}

.tile--jobs    { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile--partner { grid-column: 3 / 5; grid-row: 1; }
.tile--play    { grid-column: 3; grid-row: 2; }
.tile--hello   { grid-column: 4; grid-row: 2; }

/* ---------- Tile ---------- */
.tile {
  --edge: rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 8px 0 var(--edge), 0 24px 44px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.3), box-shadow 0.25s ease;
}

.tile:hover {
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 0 var(--edge), 0 32px 54px rgba(0, 0, 0, 0.38);
}

.tile:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 var(--edge), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.tile:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* Glossy highlight */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
}

.tile--jobs {
  --edge: #b84a00;
  padding: 40px;
  background: linear-gradient(150deg, #ff9a45 0%, #ff6a00 55%, #e8306f 100%);
}

.tile--partner {
  --edge: #3a2a8f;
  background: linear-gradient(150deg, #8b7bff 0%, #5a46d6 100%);
}

.tile--play {
  --edge: #08766c;
  background: linear-gradient(150deg, #3ee6d4 0%, #0fa99b 100%);
}

.tile--hello {
  --edge: #050720;
  background: #0c0f35;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bento .tile__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #c4420a;
  font-family: var(--head-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.tile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18b26b;
  animation: tile-pulse 1.6s ease-in-out infinite;
}

@keyframes tile-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 178, 107, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(24, 178, 107, 0); }
}

.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
}

.tile--hello .tile__icon {
  background: var(--primary-color, #ff7a1f);
  box-shadow: 0 4px 0 #c4520a;
}

.dark .tile__title,
.tile__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 28px;
  line-height: 1.1;
  text-transform: none;
}

.tile--jobs .tile__title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.bento .tile__text {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
}

/* CTA pinned to the bottom of the tile */
.bento .tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.bento .tile__cta i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 14px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.tile:hover .tile__cta i {
  transform: translateX(4px);
  background: #fff;
  color: #201048;
}

/* Jobs: big faded gamepad in the corner */
.tile__bgicon {
  position: absolute;
  right: -30px;
  bottom: -40px;
  z-index: -1;
  font-size: 240px;
  color: rgba(255, 255, 255, 0.14);
  transform: rotate(-16deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}

.tile--jobs:hover .tile__bgicon { transform: rotate(-6deg) scale(1.05); }

/* Jobs: stacked team faces */
.tile__faces {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.tile__faces img,
.bento .tile__faces span {
  width: 76px;
  height: 76px;
  margin-left: -16px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: #fff;
}

.tile__faces img:first-child { margin-left: 0; }

.bento .tile__faces span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #201048;
  color: #fff;
  font-family: var(--head-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* Play: fanned game icons in the corner */
.tile__icons {
  position: absolute;
  top: 22px;
  right: 18px;
  display: flex;
}

.tile__icons img {
  width: 54px;
  height: 54px;
  margin-left: -20px;
  border-radius: 24%;
  border: 3px solid #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}

.tile__icons img:nth-child(1) { transform: rotate(-12deg); }
.tile__icons img:nth-child(2) { transform: rotate(0deg) translateY(-6px); z-index: 1; }
.tile__icons img:nth-child(3) { transform: rotate(12deg); }

.tile--play:hover .tile__icons img:nth-child(1) { transform: rotate(-20deg) translateX(-6px); }
.tile--play:hover .tile__icons img:nth-child(2) { transform: translateY(-12px) scale(1.08); }
.tile--play:hover .tile__icons img:nth-child(3) { transform: rotate(20deg) translateX(6px); }

.tile--play .tile__title { margin-top: auto; padding-top: 70px; }
.tile--play .tile__cta { padding-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .bento { padding: 30px 0 80px; }
  .bento__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .tile--jobs    { grid-column: 1 / 3; grid-row: auto; }
  .tile--partner { grid-column: 1 / 3; grid-row: auto; }
  .tile--play    { grid-column: 1; grid-row: auto; min-height: 220px; }
  .tile--hello   { grid-column: 2; grid-row: auto; min-height: 220px; }
}

@media (max-width: 575px) {
  .bento { padding: 20px 0 64px; }
  .bento__grid { gap: 16px; }
  .tile { padding: 22px; border-radius: 22px; }
  .tile--jobs { padding: 26px; }
  .dark .tile__title, .tile__title { font-size: 23px; }
  .bento .tile__text { font-size: 16px; }
  .bento .tile__cta { font-size: 15px; }
  .bento .tile__cta i { width: 30px; height: 30px; }
  .tile__faces img, .bento .tile__faces span { width: 50px; height: 50px; margin-left: -12px; }
  .tile--play, .tile--hello { min-height: 190px; }
  .tile__icons { top: 16px; right: 12px; }
  .tile__icons img { width: 46px; height: 46px; margin-left: -18px; }
  .tile--play .tile__title { padding-top: 56px; }
  .tile__bgicon { font-size: 170px; }
  .tile--hello .tile__icon { width: 46px; height: 46px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile * { transition: none !important; animation: none !important; }
  .tile:hover, .tile:active { transform: none; }
}
