/* ——— TAILORED FOR YOU CASE STUDY PAGE ——— */
.tailored-page {
  background: var(--white);
  color: var(--light-ink);
  --tfy-pink: #f1889d;
  --tfy-pink-soft: #fce8ec;
  --tfy-pink-deep: #e8788f;
  --tfy-pink-bg: #fdf2f4;
  --tfy-tag-bg: #eef0f4;
}

.tailored-page .scroll-progress {
  background: linear-gradient(90deg, var(--tfy-pink-deep) 0%, var(--tfy-pink) 100%);
}

/* Shared body gradient */
.tfy-body {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 8%, #fdf6f8 28%, #fceef2 52%, #fae4ea 78%, #f8dce4 100%);
  overflow: visible;
}

.tfy-body > section {
  position: relative;
  z-index: 1;
}

.tfy-body__floral {
  position: absolute;
  width: clamp(140px, 16vw, 220px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.tfy-body__floral--left {
  top: 18%;
  left: -2%;
  transform: rotate(-18deg);
}

.tfy-body__floral--right {
  top: 42%;
  right: -2%;
  transform: rotate(12deg) scaleX(-1);
}

/* Hero */
.tfy-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
}

.tfy-hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.tfy-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, #ffffff 100%);
  z-index: 1;
  pointer-events: none;
}

.tfy-hero .cnav {
  position: relative;
  z-index: 2;
}

.tfy-hero__brand {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 8rem;
}

.tfy-hero__icon {
  width: min(88px, 18vw);
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35));
}

.tfy-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.75rem, 6.5vw, 4.25rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.tfy-hero__tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 30rem;
  line-height: 1.55;
}

/* Overview */
.tfy-overview {
  position: relative;
  background: transparent;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) 5rem;
  overflow: hidden;
}

.tfy-overview__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.tfy-overview h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.tfy-overview__desc {
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--light-muted);
  margin-bottom: 2.25rem;
}

.tfy-overview__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.tfy-overview__tags span {
  padding: 0.55rem 1.15rem;
  background: var(--tfy-tag-bg);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.tfy-overview__deco {
  position: absolute;
  right: clamp(-1rem, 2vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 14vw, 200px);
  opacity: 0.1;
  pointer-events: none;
  filter: invert(1);
  mix-blend-mode: multiply;
}

/* The Core Problem */
.tfy-problem {
  background: transparent;
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
}

.tfy-problem__head {
  max-width: var(--max);
  margin: 0 auto 3rem;
}

.tfy-problem__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tfy-problem__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.tfy-problem__card {
  padding: 1.85rem 2rem;
  border-radius: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.68;
}

.tfy-problem__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.tfy-problem__chev {
  color: var(--tfy-pink);
  margin-right: 0.35rem;
}

.tfy-problem__card--white {
  background: var(--white);
  color: var(--light-muted);
  box-shadow: 0 8px 32px rgba(15, 30, 60, 0.06);
}

.tfy-problem__card--white h3 {
  color: var(--ink);
}

.tfy-problem__card--pink {
  background: linear-gradient(155deg, #f5a0b0 0%, var(--tfy-pink) 55%, var(--tfy-pink-deep) 100%);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(241, 136, 157, 0.28);
}

.tfy-problem__card--pink h3 {
  color: var(--white);
}

.tfy-problem__card--pink .tfy-problem__chev {
  color: rgba(255, 255, 255, 0.85);
}

/* The Vision */
.tfy-vision {
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(5rem, 10vw, 8rem);
  overflow: visible;
}

.tfy-vision__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: clamp(22rem, 38vw, 28rem);
}

.tfy-vision__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(2rem, 4vw, 3.5rem);
  padding-right: clamp(8rem, 18vw, 14rem);
  border-radius: 0 1.75rem 1.75rem 0;
  background: linear-gradient(90deg, #fcecf0 0%, #ffffff 100%);
}

.tfy-vision__copy h2 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.tfy-vision__body {
  font-size: clamp(0.88rem, 1.35vw, 0.96rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--light-muted);
  max-width: 34rem;
}

.tfy-vision__laptop {
  position: absolute;
  right: clamp(-1.5rem, -2vw, 0rem);
  top: 38%;
  transform: translateY(-42%);
  width: min(42%, 640px);
  margin: 0;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(15, 30, 60, 0.12));
}

.tfy-vision__laptop img {
  width: 100%;
  display: block;
}

/* Core Features */
.tfy-features {
  position: relative;
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
  overflow: visible;
}

.tfy-features__floral {
  position: absolute;
  width: clamp(120px, 14vw, 180px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.tfy-features__floral--left {
  top: 2rem;
  left: 0;
  transform: rotate(-12deg);
}

.tfy-features__floral--right {
  top: 2rem;
  right: 0;
  transform: rotate(12deg) scaleX(-1);
}

.tfy-features__head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  z-index: 1;
  min-height: clamp(5rem, 12vw, 7rem);
}

.tfy-features__watermark {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 800;
  color: rgba(241, 136, 157, 0.12);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.tfy-features__head h2 {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.85rem, 4.5vw, 3rem);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tfy-features__showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}

.tfy-features__col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.tfy-features__box h3 {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.tfy-features__box p {
  font-size: clamp(0.84rem, 1.25vw, 0.92rem);
  font-weight: 500;
  line-height: 1.68;
  color: var(--light-muted);
}

.tfy-features__tablet {
  margin: 0;
  justify-self: center;
  max-width: min(420px, 34vw);
  filter: drop-shadow(0 24px 48px rgba(15, 30, 60, 0.12));
}

.tfy-features__tablet img {
  width: 100%;
}

/* How We Built It */
.tfy-built {
  background: linear-gradient(180deg, #fae4ea 0%, #fdf2f4 35%, #ffffff 100%);
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
}

.tfy-built__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.tfy-built__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tfy-built__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto 4rem;
}

.tfy-built__step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tfy-built__step-icon {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.tfy-built__step-body h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tfy-built__step-body p {
  font-size: clamp(0.84rem, 1.25vw, 0.92rem);
  font-weight: 500;
  line-height: 1.68;
  color: var(--light-muted);
}

.tfy-built__showcase {
  max-width: min(920px, 92vw);
  margin: 0 auto;
  filter: drop-shadow(0 28px 56px rgba(15, 30, 60, 0.1));
}

.tfy-built__showcase img {
  width: 100%;
}

/* Testimonial */
.tfy-testimonial {
  position: relative;
  background: var(--white);
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
  overflow: hidden;
}

.tfy-testimonial__floral {
  position: absolute;
  width: clamp(120px, 14vw, 180px);
  opacity: 0.08;
  pointer-events: none;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.tfy-testimonial__floral--left {
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-10deg);
}

.tfy-testimonial__floral--right {
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(10deg) scaleX(-1);
}

.tfy-testimonial__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.tfy-testimonial__inner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.tfy-testimonial__photo {
  width: min(120px, 24vw);
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--tfy-pink);
  box-shadow: 0 8px 24px rgba(241, 136, 157, 0.25);
}

.tfy-testimonial__photo img {
  width: 100%;
}

.tfy-testimonial__quote {
  margin: 0 0 1.5rem;
}

.tfy-testimonial__quote p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  color: var(--light-muted);
}

.tfy-testimonial__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.tfy-testimonial__role {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--light-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .tfy-problem__grid {
    grid-template-columns: 1fr;
  }

  .tfy-vision__inner {
    min-height: auto;
    padding-bottom: clamp(14rem, 34vw, 18rem);
  }

  .tfy-vision__panel {
    width: 100%;
    padding-right: clamp(2rem, 4vw, 3.5rem);
    border-radius: 1.75rem;
    text-align: center;
  }

  .tfy-vision__body {
    max-width: none;
    margin: 0 auto;
  }

  .tfy-vision__laptop {
    right: 50%;
    top: auto;
    bottom: -2rem;
    transform: translate(50%, 0);
    width: min(92%, 420px);
  }

  .tfy-features__showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tfy-features__tablet {
    order: -1;
    max-width: min(360px, 72vw);
    margin: 0 auto;
  }

  .tfy-built__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tfy-overview__deco {
    display: none;
  }
}

@media (max-width: 640px) {
  .tfy-built__grid {
    grid-template-columns: 1fr;
  }

  .tfy-hero__brand {
    padding-bottom: 6rem;
  }
}
