/* ── Works Grid ── */
 .ft{
  border-top-left-radius:0px !important;
  border-top-right-radius: 0px !important;
  border-top:1px solid rgb(95, 95, 95)
 }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0px 32px 80px;

  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
}

/* Card */
.card {
  background: #111;
  border: 2px solid #e92806;
  border-radius: 16px;
  padding: 12px;
  /* transition: border-color 0.3s ease; */
}
.card:hover { border-color: #444; }

/* Square image container — 1:1 ratio like Visuvate */
.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 10px;
  overflow: hidden;
}

.main-img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

/* Overlay with italic "View Project" */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.view-project {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 3rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.card:hover .main-img {
  transform: scale(1.08);
  filter: blur(2px);
}
.card:hover .overlay { opacity: 1; }

/* Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 4px 0px;  /* top-bottom: 16px, left-right: 4px */
}

.text-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}

.text-content p {
  margin: 3px 0 0;
  color: #666;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
}

/* Visit button */
.visit-btn {
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #333;
  font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.3s, background 0.3s;
  white-space: nowrap;
}
.visit-btn:hover {
  background: #1a1a1a;
  border-color: #555;
}
.works-hero {
  background: #f8f7f4;
  width: 100%;
  padding: 160px 40px 0px;
  text-align: center;
}
.works-hero-title {
  font-size: clamp(50px, 10vw, 140px);  /* ← very big */
  color: #000;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
              margin-bottom: 30px;


  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 40px 0;
}

.works-hero-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #d93a2b;
}

/* Animated state */
.works-hero-title.in {
  opacity: 1;
  transform: translateY(0);
}


.cta-bold-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 40px;
  letter-spacing: -1px;
}

.cta-bold-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-dark {
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.3s;
}
.cta-btn-dark:hover { background: #3a3a3a; }

.cta-btn-light {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.3s, color 0.3s;
}
.cta-btn-light:hover { background: #e5e5e5; }

.cta-bold {
  background: #000;
  width: 100%;
  padding: 40px 32px 0;   /* ← 0 bottom so logo sits at edge */
  text-align: center;
  position: relative;
  overflow: hidden;
  /* border-radius: 30px; */
}

.cta-logo-wrap {
  position: relative;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Glow behind logo */
.cta-logo-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(255,255,255,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-logo-img {
  position: relative;
  z-index: 1;
  width: clamp(300px, 50vw, 700px);
  object-fit: contain;
  display: block;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  filter: brightness(10);
  
  /* Continuous bounce */
  animation: logoBounce 3s ease-in-out infinite;
}

@keyframes logoBounce {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}
/* Each word starts hidden */
.cta-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When section is in view — words animate in */
.cta-bold.in-view .cta-word:nth-child(1) { 
  opacity: 1; transform: translateY(0); transition-delay: 0s; 
}
.cta-bold.in-view .cta-word:nth-child(2) { 
  opacity: 1; transform: translateY(0); transition-delay: 0.12s; 
}
.cta-bold.in-view .cta-word:nth-child(3) { 
  opacity: 1; transform: translateY(0); transition-delay: 0.24s; 
}
.cta-bold.in-view .cta-word:nth-child(4) { 
  opacity: 1; transform: translateY(0); transition-delay: 0.36s; 
}
/* Buttons fade in last */
.cta-bold-btns.cta-word {
  transition-delay: 0.52s !important;
}
.cta-bold.in-view .cta-bold-btns {
  opacity: 1;
  transform: translateY(0);
}

.card.hidden-card {
  display: none;
}

.explore-wrap {
  text-align: center;
  padding: 0 0 60px;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.explore-btn:hover {
  background: #1a1a1a;
  border-color: #555;
}
.explore-btn svg {
  transition: transform 0.3s;
}
.explore-btn.open svg {
  transform: rotate(180deg);
}