/* ── Project Info Section ── */
.project-info {
  width: 100%;
  min-height: 100vh;
  background: black;
  display: flex;
  align-items: center;
  padding: clamp(80px, 14vh, 140px) clamp(2rem, 7.5%, 8rem);
  box-sizing: border-box;
}

.project-info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  width: 100%;
}

.project-info-left {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.project-info-tag {
  font-family: "sohne";
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: black;
  margin: 0;
}

.project-info-title {
  font-family: "sohne-bold";
  font-size: clamp(26px, 3.1vw, 46px) !important;
  line-height: 1.0 !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase;
  color: black !important;
  white-space: normal !important;
  margin: 0;
}

.project-info-desc {
  font-family: "sohne";
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
  color: black;
  max-width: 44ch;
  margin: 0;
}

.project-info-stack {
  font-family: "sohne-medium";
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: black;
  opacity: 0.3;
  margin: 0;
}

.project-info-link {
  font-family: "sohne-medium";
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  align-self: flex-start;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}

.project-info-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.3);
}

.project-info-link .hover-visible,
.project-info-link .hover-animated {
  display: block;
  overflow: hidden;
}

.project-info-link--mobile {
  display: none;
}

.project-info-left .button-me,
.project-info-left .button-me-code-visible,
.project-info-left .button-me-code-animated,
.project-info-link--mobile .button-me,
.project-info-link--mobile .button-me-code-visible,
.project-info-link--mobile .button-me-code-animated {
  color: black;
}

.project-info-left .button-me .btn-text,
.project-info-link--mobile .button-me .btn-text {
  border-bottom: 1px solid black;
  color: black;
}

.project-info-left .footer-btn,
.project-info-link--mobile .footer-btn {
  background-color: #fff;
  color: #0f0f0f;
  border: 2px dashed #0f0f0f;
  box-shadow: 4px 4px 0 0 #0f0f0f;
}

.project-info-left .footer-btn:hover,
.project-info-link--mobile .footer-btn:hover {
  background-color: #0f0f0f;
  color: #fff;
  border: 2px solid #0f0f0f;
  box-shadow: 1px 1px 0 0 #0f0f0f;
}

.project-info-right {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.project-info-right::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 20px;
  background: white;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

.project-info-right img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  display: block;
}

.project-details {
  width: 100%;
  background: white;
  position: relative;
  z-index: 2;
  padding: 0 clamp(2rem, 7.5%, 8rem) clamp(4rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  box-sizing: border-box;
}


.project-details-paras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}

.project-details-paras > div:not(.project-timeline) {
  align-self: start;
}

@media (min-width: 769px) {
  .project-details-paras > div:not(.project-timeline) {
    position: sticky;
    top: clamp(4rem, 8vw, 7rem);
  }
}

@media (max-width: 768px) {
  .project-details-paras {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .project-details-paras > div:not(.project-timeline) {
    order: 1;
  }

  .project-timeline {
    order: 2;
  }
}

.project-details-title {
  font-family: "sohne-bold";
  font-size: clamp(22px, 2.5vw, 36px) !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
  color: black !important;
  white-space: normal !important;
  line-height: 1.1 !important;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .project-details-title {
    text-align: center;
    margin-bottom: clamp(3vh, 5vh, 8vh);
  }
}

.project-details-para {
  font-family: "sohne";
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
  color: black;
  margin: 0;
  text-indent: 0;
  padding-top: clamp(0px, 3vw, 2rem);
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .project-details {
    text-align: center;
  }

  .project-timeline,
  .project-timeline-item,
  .project-timeline-date,
  .project-timeline-title,
  .project-timeline-desc {
    text-align: left;
  }

  .project-details-paras {
    padding-left: 0;
  }

  .project-details-para {
    text-indent: 0;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: clamp(3vh, 5vh, 8vh);
  }
}

/* ── Project Timeline ── */
.project-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(0px, 3vw, 2rem);
}

.project-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(0px, 3vw, 2rem);
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.15);
}

.project-timeline-item {
  position: relative;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.project-timeline-item:last-child {
  padding-bottom: 0;
}

.project-timeline-dot {
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
  top: 1.9em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: black;
  transform: translateX(-3px);
}

@keyframes timeline-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.project-timeline-dot--active {
  background: black;
  animation: timeline-pulse 1.8s ease-out infinite;
}

.timeline-active-badge {
  display: inline-block;
  font-family: "sohne";
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  white-space: nowrap;
  color: black;
  background: transparent;
  border: 1px solid black;
  line-height: 1;
  flex-shrink: 0;
}

.project-timeline-date {
  font-family: "sohne";
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: black;
  display: block;
  margin-bottom: 0.3em;
}

.project-timeline-title {
  font-family: "sohne-bold";
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: black;
  margin: 0 0 0.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-timeline-desc {
  font-family: "sohne";
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
  color: black;
  margin: 0;
}

/* ── Project Gallery ── */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(2rem, 4vw, 4rem);
  padding: 0 clamp(0rem, 2vw, 1rem);
}

.project-gallery-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.project-gallery-col--right {
  margin-top: clamp(2rem, 5vw, 5rem);
}

.project-gallery-item {
  overflow: hidden;
  position: relative;
  border: 3px solid black;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.project-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: black;
  color: white;
  padding: 0.7em 0.9em;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.project-gallery-caption-title {
  font-family: "sohne-bold";
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
}

.project-gallery-caption-desc {
  font-family: "sohne";
  font-size: clamp(9px, 0.72vw, 11px);
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.project-gallery-item:hover .project-gallery-caption {
  transform: translateY(0);
}



@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery-col--right {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .project-info {
    min-height: auto;
    padding-top: clamp(80px, 14vh, 120px);
  }

  .project-info-inner {
    grid-template-columns: 1fr;
  }

  .project-info-left {
    text-align: center;
    align-items: center;
    order: 1;
  }

  .project-info-desc {
    max-width: 100%;
  }

  .project-info-right {
    order: 2;
  }

  .project-info-right img {
    width: 80% !important;
    height: 80% !important;
  }

  .project-info-left .view-projects-container {
    display: none;
  }

  .project-info-link--mobile {
    display: block;
    text-align: right;
    order: 3;
  }
}

/* ── Project Contact Section ── */
.project-contact {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  padding: clamp(80px, 14vh, 140px) clamp(2rem, 7.5%, 8rem);
  box-sizing: border-box;
}



/* --- Header Text --- */
.project-contact .project-contact-text {
  text-align: center;
  z-index: 10;
  width: 100%;
  padding-left: clamp(1rem, 5%, 5rem);
  padding-right: clamp(1rem, 5%, 5rem);
}

.project-contact .project-contact-text h5 {
  color: black;
}

.project-contact .project-contact-text h2 {
  color: black;
}

.project-contact .project-contact-text p {
  color: black;
  margin-top: clamp(10px, 1.5vw, 20px);
  text-align: center;
}

@media (max-width: 600px) {
  .project-contact .project-contact-text p {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* --- Email wrapper --- */
.project-contact .project-email-wrapper {
  position: relative;
  text-align: center;
  width: 100%;
}

.project-contact #project-email-measure {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font-family: "sohne-bold", sans-serif;
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  pointer-events: none;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.project-contact #project-email {
  font-family: "sohne-medium";
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  background: transparent;
  border: none;
  color: black;
  text-align: center;
  outline: none;
  width: auto;
  min-width: min(280px, 90vw);
  max-width: none;
  transition:
    border-color 0.4s ease,
    opacity 0.4s ease,
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.4s ease;
}

.project-contact .project-underline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  height: 2px;
  width: 0px;
  border-radius: 4px;
  background-color: black;
  will-change: width, background-color, transform;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.project-contact #project-email::placeholder {
  color: black;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.project-contact #project-email:focus::placeholder {
  opacity: 0.4;
}

.project-contact #project-email:focus {
  border-color: #ccc;
}

/* --- Contact Form --- */
.project-contact .project-contact-form {
  width: min(90%, 520px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.project-contact .project-contact-form textarea {
  width: 100%;
  padding: clamp(10px, 1.5vw, 14px) 16px;
  border: none;
  border-bottom: 2px solid black;
  background: transparent;
  color: black;
  font-family: "sohne-regular", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
  outline: none;
  border-radius: 0;
  min-height: 120px;
  max-height: 200px;
  resize: vertical;
  text-align: center;
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    color 0.4s ease;
}

.project-contact .project-contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
}

.project-contact .project-contact-form textarea:focus::placeholder {
  opacity: 0.3;
}

.project-contact .project-contact-form textarea:focus {
  border-color: #666;
}

/* --- Form feedback --- */
#project-form-feedback {
  font-family: "sohne", sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  text-align: center;
  margin-top: 4px;
  padding-bottom: clamp(20px, 4vh, 40px);
  opacity: 0;
  transition: opacity 0.35s ease;
  min-height: 1.4em;
  color: black;
}

#project-form-feedback.feedback-success {
  color: #2a9d2a;
}

#project-form-feedback.feedback-error {
  color: #d9342a;
}

/* ── Project Principle Section ── */
.project-principle {
  position: relative;
  z-index: 2;
  width: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 0;
  margin-top: -2px;
}


.project-principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: white;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

.project-principle-bridge {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: black;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 10;
}

.project-principle-text {
  text-align: center;
  width: 100%;
  padding-top: clamp(6vh, 10vh, 12vh);
  padding-left: clamp(1rem, 5%, 5rem);
  padding-right: clamp(1rem, 5%, 5rem);
}

.project-principle-text h5,
.project-principle-text h2,
.project-principle-text p {
  color: white;
}

.project-principle-text p {
  margin-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(6vh, 12vh, 18vh);
  text-align: center;
}

.project-principle ::selection {
  background: black;
  color: white;
}

.testimonial__stars {
  display: flex;
  gap: 0.5em;
  justify-content: center;
}

.testimonial__stars svg {
  width: clamp(22px, 2.2vw, 32px);
  height: clamp(22px, 2.2vw, 32px);
}

.testimonial__quote {
  font-family: "sohne";
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.8;
  color: white;
  font-style: italic;
  margin: 0 auto clamp(1.2rem, 2.5vh, 2rem);
  max-width: 640px;
  border: none;
  padding: 0;
}

.testimonial__author {
  font-family: "sohne";
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.project-principle ::-moz-selection {
  background: black;
  color: white;
}
