/* =========================================================
   NEXT LEVEL RENOVATIONS & SERVICES
   DESIGN-PARTNERS.CSS — public Design Partners pages
   (directory, designer microsite, private preview).
   Uses the site tokens from variables.css; every class is
   prefixed "dp-" so nothing else on the site is affected.
   ========================================================= */

.dp-page {
  --dp-ink: var(--text-dark);
  --dp-muted: var(--text-muted);
  --dp-line: var(--border);
  --dp-soft: var(--off-white);
  --dp-accent: #8fb4d3;
  background: var(--white);
}

.dp-page main {
  display: block;
}

.dp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------- HERO (directory) ---------- */

.dp-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(6, 23, 36, .96) 0%, rgba(7, 28, 45, .9) 42%, rgba(16, 42, 72, .55) 100%),
    var(--navy-dark);
  isolation: isolate;
}

.dp-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
}

.dp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 23, 36, .94) 0%, rgba(6, 23, 36, .78) 45%, rgba(6, 23, 36, .35) 100%);
}

/* No photo chosen yet: quiet architectural lines instead of a stock image */
.dp-hero-media.is-empty {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 120px),
    radial-gradient(ellipse 70% 90% at 85% 40%, rgba(61, 143, 224, .16), transparent 70%),
    var(--navy-dark);
}

.dp-hero-media.is-empty::after {
  display: none;
}

.dp-hero-inner {
  display: grid;
  gap: 20px;
  max-width: 640px;
  padding-block: clamp(72px, 10vw, 128px) clamp(64px, 9vw, 112px);
}

.dp-kicker {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.dp-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.dp-hero p {
  max-width: 56ch;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.65;
}

.dp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}


/* ---------- HOW IT WORKS ---------- */

.dp-model {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dp-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dp-model-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 26px 24px 26px 0;
}

.dp-model-step + .dp-model-step {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.dp-model-step svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  color: var(--dp-accent);
}

.dp-model-step strong {
  font-size: 14px;
  font-weight: 700;
}

.dp-model-step span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.5;
}


/* ---------- DIRECTORY ---------- */

.dp-directory {
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--off-white);
  scroll-margin-top: 0;
}

.dp-section-head {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin-bottom: 38px;
}

.dp-section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
  text-wrap: balance;
}

.dp-section-head p {
  color: var(--dp-muted);
  font-size: 16px;
  line-height: 1.6;
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.dp-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--dp-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dp-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px),
    var(--navy);
}

.dp-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-card-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 23, 36, .78);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dp-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  border: 3px solid var(--white);
  box-shadow: 0 6px 18px rgba(6, 23, 36, .2);
}

.dp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.dp-card .dp-logo {
  position: absolute;
  left: 18px;
  bottom: -30px;
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.dp-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 42px 20px 20px;
}

.dp-card-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.dp-card-specialty {
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dp-card-place {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dp-muted);
  font-size: 13px;
}

.dp-card-place svg {
  width: 14px;
  height: 14px;
}

.dp-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dp-ink);
  font-size: 14px;
  line-height: 1.55;
}

.dp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.dp-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.dp-card:hover .dp-card-link svg {
  transform: translateX(3px);
}

/* the whole card is the link */
.dp-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.dp-card-link:focus-visible {
  outline: none;
}

.dp-card:has(.dp-card-link:focus-visible) {
  outline: 2px solid var(--navy-soft);
  outline-offset: 3px;
}

.dp-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 620px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--dp-line);
  border-radius: var(--radius-md);
}

.dp-state h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--navy);
}

.dp-state p {
  color: var(--dp-muted);
  line-height: 1.6;
}

.dp-skeleton {
  min-height: 330px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #e9edf1 0%, #f4f6f8 50%, #e9edf1 100%);
  background-size: 200% 100%;
  animation: dp-shimmer 1.4s ease-in-out infinite;
}

@keyframes dp-shimmer {
  to { background-position: -200% 0; }
}


/* ---------- INVITATION BAND ---------- */

.dp-join {
  background: var(--navy-dark);
  color: var(--white);
  padding-block: 56px;
}

.dp-join-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.dp-join h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.dp-join p {
  max-width: 58ch;
  margin-top: 8px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.6;
}


/* ---------- MICROSITE ---------- */

.dp-profile-hero {
  position: relative;
  min-height: clamp(320px, 42vw, 520px);
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy-dark);
  overflow: hidden;
  isolation: isolate;
}

.dp-profile-cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px),
    var(--navy-dark);
}

.dp-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 36, .1) 0%, rgba(6, 23, 36, .55) 55%, rgba(6, 23, 36, .94) 100%);
}

.dp-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-block: 44px 40px;
}

.dp-profile-head .dp-logo {
  width: clamp(88px, 10vw, 120px);
  height: clamp(88px, 10vw, 120px);
  font-size: 34px;
}

.dp-profile-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dp-profile-title h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.dp-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.dp-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dp-profile-meta svg {
  width: 15px;
  height: 15px;
}

.dp-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 600;
}

.dp-back svg {
  width: 15px;
  height: 15px;
}

.dp-profile-body {
  padding-block: clamp(48px, 6vw, 80px);
}

.dp-about {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.dp-about h2,
.dp-portfolio h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 14px;
}

.dp-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 14px;
}

.dp-prose p {
  color: var(--dp-ink);
  font-size: 16px;
  line-height: 1.75;
  max-width: 68ch;
}

.dp-prose p + p {
  margin-top: 14px;
}

.dp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dp-chip {
  padding: 7px 12px;
  border: 1px solid var(--dp-line);
  border-radius: 999px;
  background: var(--off-white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.dp-facts {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--off-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--radius-md);
}

.dp-fact {
  display: grid;
  gap: 2px;
}

.dp-fact dt {
  color: var(--dp-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dp-fact dd {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dp-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dp-social a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--dp-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.dp-social a:hover {
  border-color: var(--navy);
}

.dp-network {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px 22px;
  border: 1px solid var(--dp-line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-md);
  background: var(--white);
}

.dp-network img {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: var(--navy-dark);
}

.dp-network p {
  color: var(--dp-muted);
  font-size: 14px;
  line-height: 1.6;
}

.dp-network strong {
  color: var(--navy);
}

.dp-portfolio {
  margin-top: clamp(48px, 6vw, 80px);
  scroll-margin-top: 16px;
}

.dp-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dp-project {
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dp-line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dp-project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dp-project:focus-visible {
  outline: 2px solid var(--navy-soft);
  outline-offset: 3px;
}

.dp-project-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}

.dp-project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-project-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 23, 36, .78);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.dp-project-count svg {
  width: 13px;
  height: 13px;
}

.dp-project-body {
  display: grid;
  gap: 4px;
  padding: 16px 18px 18px;
}

.dp-project-body small {
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dp-project-body strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.25;
}


/* ---------- PROJECT VIEWER + CONTACT SHEET (dialogs) ---------- */

.dp-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(3, 12, 20, .86);
  backdrop-filter: blur(4px);
}

.dp-dialog[hidden] {
  display: none;
}

.dp-dialog-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1100px, 100%);
  max-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.dp-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dp-dialog-head h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.25;
}

.dp-dialog-head p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.5;
}

.dp-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
}

.dp-icon-button:hover {
  background: rgba(255, 255, 255, .14);
}

.dp-icon-button:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
}

.dp-icon-button svg {
  width: 18px;
  height: 18px;
}

.dp-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  background: #02080f;
}

.dp-viewer-stage img,
.dp-viewer-stage video {
  max-width: 100%;
  max-height: min(68vh, 760px);
  object-fit: contain;
}

.dp-viewer-stage img {
  cursor: zoom-in;
}

.dp-viewer-stage.is-zoomed {
  overflow: auto;
  place-items: start;
}

.dp-viewer-stage.is-zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.dp-viewer-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}

.dp-viewer-nav.prev { left: 12px; }
.dp-viewer-nav.next { right: 12px; }

.dp-viewer-foot {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.dp-viewer-caption {
  min-height: 18px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.dp-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.dp-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--navy);
  scroll-snap-align: start;
  opacity: .7;
}

.dp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-thumb.is-active {
  border-color: var(--white);
  opacity: 1;
}

.dp-thumb .dp-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 23, 36, .8);
}

.dp-thumb .dp-badge svg {
  width: 12px;
  height: 12px;
  color: var(--white);
}

.dp-contact-panel {
  grid-template-rows: auto auto;
  width: min(520px, 100%);
  background: var(--white);
  color: var(--dp-ink);
}

.dp-contact-panel .dp-dialog-head {
  border-bottom-color: var(--dp-line);
}

.dp-contact-panel .dp-dialog-head p {
  color: var(--dp-muted);
}

.dp-contact-panel .dp-icon-button {
  border-color: var(--dp-line);
  background: var(--off-white);
  color: var(--navy);
}

.dp-contact-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.dp-contact-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--dp-line);
  border-radius: var(--radius-md);
  color: var(--navy);
}

.dp-contact-item:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.dp-contact-item > svg:first-child {
  width: 22px;
  height: 22px;
  justify-self: center;
}

.dp-contact-item span {
  display: grid;
  min-width: 0;
}

.dp-contact-item small {
  color: var(--dp-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dp-contact-item strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dp-contact-item > svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--dp-muted);
}

.dp-lock {
  overflow: hidden;
}


/* ---------- PRIVATE PREVIEW BANNER ---------- */

.dp-preview-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 10px 16px;
  background: #b7791f;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.dp-preview-bar a {
  text-decoration: underline;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .dp-grid,
  .dp-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-about {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .dp-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-model-step,
  .dp-model-step + .dp-model-step {
    padding: 18px 0;
    border-left: 0;
  }

  .dp-model-step + .dp-model-step {
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .dp-profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dp-profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .dp-grid,
  .dp-projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-hero p {
    font-size: 16px;
  }

  .dp-hero-actions .btn,
  .dp-profile-actions .btn {
    flex: 1 1 auto;
  }

  .dp-profile-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .dp-viewer-stage img,
  .dp-viewer-stage video {
    max-height: 58vh;
  }

  .dp-viewer-nav {
    width: 36px;
    height: 36px;
  }

  .dp-dialog {
    padding: 0;
    place-items: end stretch;
  }

  .dp-dialog-panel {
    max-height: 100%;
    border-radius: 14px 14px 0 0;
  }

  .dp-network {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-card,
  .dp-project,
  .dp-card-link svg,
  .dp-skeleton {
    transition: none;
    animation: none;
  }
}
