/* Home page (Figma node 1:2) */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 862px;
  display: flex;
  color: #fff;
  background: #000 center / cover no-repeat;
}
.hero { overflow: hidden; isolation: isolate; }
/* Background video (poster jpg is also the section background, so there's no flash while it loads) */
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .59); }
.hero__inner {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-block: 200px 80px;
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; max-width: 684px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .4); border: 1px solid rgba(255, 255, 255, .6);
  font-weight: 500; font-size: 10.26px; line-height: 14.66px;
}
.hero__badge img { width: 15px; height: 15px; }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: 70.34px; line-height: 87.93px; }
.hero__text { font-size: 17.59px; line-height: 28.58px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--tri { min-width: 178px; }

.hero__stats { display: flex; gap: 22px; justify-content: flex-end; }
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 140px; height: 90px; border-radius: 16.93px;
  background: rgba(65, 65, 65, .4); border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  text-align: center;
}
.stat__num { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 33.86px; color: #d9d9d9; }
.stat__label { font-size: 9.88px; line-height: 14.11px; }

/* ---------- Services grid ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; padding-top: 80px;
}
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 330px; padding: 34px;
  background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Pastel gradient wash, faded in on hover (gradients can't transition directly) */
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #cefafe 0%, #fce7f3 55%, #ffedd4 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.service-card:hover::before, .service-card:focus-visible::before { opacity: 1; }
.service-card img { width: 50px; height: 50px; margin-bottom: 8px; transition: transform .3s var(--ease); }
.service-card h3 { padding-block: 14px; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 32px; color: var(--c-ink); }
.service-card p { font-size: 16px; line-height: 26px; color: var(--c-text); }
.service-card:hover, .service-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 36px -12px rgba(246, 51, 154, .18); }
.service-card:hover img, .service-card:focus-visible img { transform: scale(1.08); }

/* ---------- About split ---------- */
.about-split__inner {
  display: grid; grid-template-columns: repeat(2, minmax(0, 595px));
  justify-content: space-between; align-items: center; gap: 50px;
  padding-block: 40px;
}
.about-split__media { position: relative; border-radius: 50px; box-shadow: 0 7px 29px rgba(100, 100, 111, .2); }
.about-split__media > img { width: 100%; height: 801px; object-fit: cover; border-radius: 50px; }
.about-split__badge {
  position: absolute; left: 75.5%; top: 89.1%;
  width: 171px; padding: 25px;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: 16px;
  filter: drop-shadow(0 20px 12.5px rgba(0, 0, 0, .1)) drop-shadow(0 8px 5px rgba(0, 0, 0, .1));
}
.about-split__badge strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 36px; line-height: 40px; }
.about-split__badge span { font-size: 14px; line-height: 20px; color: var(--c-text); }
.about-split__body { display: flex; flex-direction: column; align-items: flex-start; }
.about-split__title { padding-block: 19px 15px; line-height: 60px; }
.about-split__title .text-grad { display: block; }
.about-split__body p { padding-bottom: 25px; font-size: 20px; line-height: 32.5px; color: var(--c-text); }

/* ---------- Portfolio row ---------- */
.portfolio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 90px; }
.portfolio-thumb { display: block; border-radius: 35px; overflow: hidden; }
.portfolio-thumb img { width: 100%; aspect-ratio: 397 / 207; object-fit: cover; transition: transform .5s var(--ease); }
.portfolio-thumb:hover img { transform: scale(1.06); }

/* ---------- Testimonials ---------- */
.testimonial-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 65px; }
.testimonial {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 360px; padding: 33px;
  background: #fff; border-radius: 32px;
  filter: drop-shadow(0 10px 7.5px rgba(0, 0, 0, .1)) drop-shadow(0 4px 3px rgba(0, 0, 0, .1));
  transition: transform .3s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); }
.testimonial__quote { width: 34px; height: 34px; margin-bottom: 8px; }
.testimonial p { font-size: 16px; line-height: 26px; color: var(--c-text); }
.testimonial__author { display: flex; align-items: center; gap: 15px; }
.testimonial__author img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
.testimonial__author h3 { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 32px; color: var(--c-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .hero__stats { flex-wrap: wrap; max-width: 302px; gap: 16px; }
  .hero__title { font-size: 60px; line-height: 74px; }
}
@media (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero__inner { flex-direction: column; align-items: flex-start; padding-block: 170px 60px; }
  .hero__stats { max-width: none; justify-content: flex-start; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-split__inner { grid-template-columns: 1fr; padding-block: 80px; }
  .about-split__media { max-width: 595px; }
  .about-split__media > img { height: auto; aspect-ratio: 595 / 801; }
  .about-split__badge { left: auto; right: 24px; top: auto; bottom: 24px; }
  .portfolio-row, .testimonial-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hero__inner { padding-block: 130px 48px; }
  .hero__title { font-size: 42px; line-height: 52px; }
  .hero__text { font-size: 16px; line-height: 26px; }
  .hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 12px; }
  .stat { width: auto; }
  .service-grid, .portfolio-row, .testimonial-row { grid-template-columns: 1fr; padding-top: 40px; }
  .service-card, .testimonial { min-height: 0; }
  .about-split__inner { padding-block: 60px; }
  .about-split__media, .about-split__media > img { border-radius: 32px; }
  .about-split__body p { font-size: 17px; line-height: 28px; }
}
