@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Manrope:wght@400;500;600&display=swap');

/* Daga Designs: Homepage projects. Scoped solely to .dhp-projects. */
.dhp-projects {
  --dhp-bg: #2C2521;
  --dhp-ivory: #FFFAF2;
  --dhp-beige: #D4B8A1;
  --dhp-serif: 'Cormorant Garamond', Georgia, serif;
  --dhp-sans: 'Manrope', Arial, sans-serif;
  position: relative;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  background: var(--dhp-bg) !important;
  color: var(--dhp-ivory) !important;
}
.dhp-projects, .dhp-projects *, .dhp-projects *::before, .dhp-projects *::after { box-sizing: border-box; }
.dhp-projects .dhp-header {
  padding: clamp(65px, 7vw, 110px) 20px clamp(35px, 4vw, 60px);
  text-align: center;
  background: var(--dhp-bg) !important;
}
.dhp-projects .dhp-heading {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--dhp-serif) !important;
  font-size: clamp(48px,5.5vw,85px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em;
  text-transform: none !important;
  color: var(--dhp-ivory) !important;
}
.dhp-projects .dhp-heading-rule {
  display: block;
  width: 55px;
  height: 1px;
  margin: 23px auto 0;
  background: var(--dhp-beige);
}
.dhp-projects .dhp-gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  width: 100%;
  background: var(--dhp-bg) !important;
}
.dhp-projects .dhp-card {
  position: relative;
  display: block;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #55463D;
  border: 0;
  border-radius: 0;
  text-decoration: none !important;
  color: var(--dhp-ivory) !important;
  -webkit-tap-highlight-color: transparent;
}
.dhp-projects .dhp-image, .dhp-projects .dhp-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--dpp-main-x,50%) var(--dpp-main-y,50%);
  transform: scale(var(--dpp-main-scale,1));
  transition: transform 1000ms cubic-bezier(.22,1,.36,1);
}
.dhp-projects .dhp-placeholder { background: linear-gradient(130deg,#665448,#382D28); }
.dhp-projects .dhp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(15,11,9,.48),rgba(15,11,9,.10) 28%,transparent 55%);
  transition: opacity 500ms ease;
}
.dhp-projects .dhp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg,transparent 28%,rgba(20,15,13,.10) 45%,rgba(20,15,13,.56) 75%,rgba(20,15,13,.88) 100%);
  transition: opacity 600ms ease;
}
.dhp-projects .dhp-category {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: calc(100% - 32px);
  text-align: center;
  transition: opacity 400ms ease,transform 600ms ease;
}
.dhp-projects .dhp-category-text {
  font: 500 clamp(10px,.9vw,13px)/1.6 var(--dhp-sans);
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--dhp-ivory) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.dhp-projects .dhp-category::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--dhp-ivory);
  opacity: .85;
}
.dhp-projects .dhp-details {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(25px,3vw,52px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 650ms ease,transform 750ms cubic-bezier(.22,1,.36,1),visibility 650ms;
}
.dhp-projects .dhp-project-title {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--dhp-serif) !important;
  font-size: clamp(35px,3.2vw,56px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: -.025em;
  text-transform: none !important;
  color: var(--dhp-ivory) !important;
}
.dhp-projects .dhp-project-link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,250,242,.85);
  font: 500 10px/1.5 var(--dhp-sans);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--dhp-ivory) !important;
}
.dhp-projects .dhp-card.is-active::before { opacity: 0; }
.dhp-projects .dhp-card.is-active::after { opacity: 1; }
.dhp-projects .dhp-card.is-active .dhp-category { opacity: 0; transform: translate(-50%,-12px); }
.dhp-projects .dhp-card.is-active .dhp-details { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover:hover) and (pointer:fine) {
  .dhp-projects .dhp-card:hover .dhp-image,
  .dhp-projects .dhp-card:focus-visible .dhp-image {
    transform: scale(calc(var(--dpp-main-scale,1) * 1.035));
  }
  .dhp-projects .dhp-card:hover::before,
  .dhp-projects .dhp-card:focus-visible::before { opacity: 0; }
  .dhp-projects .dhp-card:hover::after,
  .dhp-projects .dhp-card:focus-visible::after { opacity: 1; }
  .dhp-projects .dhp-card:hover .dhp-category,
  .dhp-projects .dhp-card:focus-visible .dhp-category { opacity: 0; transform: translate(-50%,-12px); }
  .dhp-projects .dhp-card:hover .dhp-details,
  .dhp-projects .dhp-card:focus-visible .dhp-details { opacity: 1; visibility: visible; transform: translateY(0); }
}
.dhp-projects .dhp-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(50px,5.5vw,85px) 20px clamp(70px,7vw,115px);
  background: var(--dhp-bg) !important;
}
.dhp-projects .dhp-all-projects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 17px 28px;
  border: 1px solid var(--dhp-beige) !important;
  border-radius: 0;
  background: var(--dhp-beige) !important;
  color: var(--dhp-bg) !important;
  font: 600 11px/1.5 var(--dhp-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color .3s ease,color .3s ease,box-shadow .3s ease;
}
.dhp-projects .dhp-all-projects:hover {
  background: transparent !important;
  color: var(--dhp-beige) !important;
  box-shadow: 0 9px 22px rgba(0,0,0,.13);
}
.dhp-projects .dhp-reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms ease,transform 900ms cubic-bezier(.22,1,.36,1);
}
.dhp-projects .dhp-reveal-ready.is-revealed { opacity: 1; transform: translateY(0); }
.dhp-projects .dhp-header.dhp-reveal-ready .dhp-heading-rule {
  transform: scaleX(.5);
  opacity: .4;
  transition: transform 900ms ease 250ms,opacity 900ms ease 250ms;
}
.dhp-projects .dhp-header.is-revealed .dhp-heading-rule { transform: scaleX(1); opacity: 1; }
.dhp-projects a:focus-visible { outline: 2px solid var(--dhp-beige); outline-offset: -4px; }
.dhp-admin-notice {
  padding: 12px 16px;
  margin: 12px;
  background: #2C2521;
  color: #FFFAF2;
  font: 400 14px/1.6 Arial,sans-serif;
}
@media (min-width:768px) and (max-width:1100px) {
  .dhp-projects .dhp-details { padding: 23px; }
  .dhp-projects .dhp-project-title { font-size: clamp(29px,3.5vw,42px) !important; }
}
@media (max-width:767px) {
  .dhp-projects .dhp-header { padding: 65px 18px 39px; }
  .dhp-projects .dhp-heading { font-size: clamp(46px,11vw,65px) !important; }
  .dhp-projects .dhp-heading-rule { width: 45px; margin-top: 20px; }
  .dhp-projects .dhp-gallery { grid-template-columns: minmax(0,1fr); }
  .dhp-projects .dhp-card { aspect-ratio: 4 / 3; }
  .dhp-projects .dhp-image { object-position: var(--dpp-main-x-mobile,var(--dpp-main-x,50%)) var(--dpp-main-y-mobile,var(--dpp-main-y,50%)); transform: scale(var(--dpp-main-scale-mobile,var(--dpp-main-scale,1))); }
  .dhp-projects .dhp-category { top: 9%; gap: 11px; }
  .dhp-projects .dhp-category-text { font-size: 11px; letter-spacing: .20em; }
  .dhp-projects .dhp-category::after { width: 40px; }
  .dhp-projects .dhp-details { padding: 27px; gap: 8px; }
  .dhp-projects .dhp-project-title { font-size: clamp(35px,8.8vw,47px) !important; }
  .dhp-projects .dhp-project-link { font-size: 9px; }
  .dhp-projects .dhp-footer { padding: 48px 18px 75px; }
  .dhp-projects .dhp-all-projects { max-width: 100%; min-height: 51px; padding: 15px 18px; font-size: 10px; letter-spacing: .10em; text-align: center; }
}
@media (max-width:380px) {
  .dhp-projects .dhp-details { padding: 20px; }
  .dhp-projects .dhp-project-title { font-size: 33px !important; }
  .dhp-projects .dhp-all-projects { font-size: 9px; padding-inline: 13px; }
}
/* On touch fallback: show info without JavaScript; with observer hide until scrolled. */
@media (hover:none), (pointer:coarse) {
  .dhp-projects .dhp-card .dhp-category { opacity: 0; }
  .dhp-projects .dhp-card .dhp-details { opacity: 1; visibility: visible; transform: translateY(0); }
  .dhp-projects.dhp-scroll-ready .dhp-card .dhp-category { opacity: 1; }
  .dhp-projects.dhp-scroll-ready .dhp-card .dhp-details { opacity: 0; visibility: hidden; transform: translateY(28px); }
  .dhp-projects.dhp-scroll-ready .dhp-card.is-active .dhp-category { opacity: 0; }
  .dhp-projects.dhp-scroll-ready .dhp-card.is-active .dhp-details { opacity: 1; visibility: visible; transform: translateY(0); }
}
@media (prefers-reduced-motion:reduce) {
  .dhp-projects *, .dhp-projects *::before, .dhp-projects *::after { animation: none !important; transition: none !important; }
  .dhp-projects .dhp-reveal-ready { opacity: 1 !important; transform: none !important; }
  .dhp-projects .dhp-heading-rule { opacity: 1 !important; transform: none !important; }
}
