/* ═══════════════════════════════════════════════════════════════
   DHALMIA — South Lanarkshire Project Page
   File:     /css/dh-south-lanarkshire.css
   Scope:    .dhalmia-project[data-page="south-lanarkshire"]
   Requires: dh-global-v5.css (custom properties)
   JS:       project-enhancements.js → thorntonhallEnhancements()
   ═══════════════════════════════════════════════════════════════ */

/* ── Page-level tokens ── */
.dhalmia-project[data-page="south-lanarkshire"] {
  --th-max:        1320px;
  --th-pad:        clamp(1.25rem, 3vw, 3rem);
  --th-gutter:     clamp(1rem, 2vw, 2rem);
  --th-section-y:  clamp(4rem, 8vw, 7rem);
  --th-bg:         #0A0A0A;
  --th-surface:    #111111;
  --th-surface-2:  #171717;
  --th-text-0:     #F0EDE8;
  --th-text-1:     rgba(240,237,232,.65);
  --th-text-2:     rgba(240,237,232,.4);
  --th-copper:     var(--copper-0, #CC8434);
  --th-copper-dim: rgba(204,132,52,.35);
  --th-copper-bg:  rgba(204,132,52,.06);
  --th-radius:     var(--radius-sm, 4px);

  background: var(--th-bg);
  color: var(--th-text-0);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  overflow-x: hidden;
}


/* ───────────────────────────────────────────────────────────
   CONTAINER
   ─────────────────────────────────────────────────────────── */

.dhalmia-project[data-page="south-lanarkshire"] .dh-container {
  width: 100%;
  max-width: var(--th-max);
  margin: 0 auto;
  padding-left: var(--th-pad);
  padding-right: var(--th-pad);
}


/* ───────────────────────────────────────────────────────────
   SECTION SPACING
   ─────────────────────────────────────────────────────────── */

.dhalmia-project[data-page="south-lanarkshire"] .dh-section {
  padding-block: var(--th-section-y);
  position: relative;
}


/* ───────────────────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ─────────────────────────────────────────────────────────── */

.dhalmia-project[data-page="south-lanarkshire"] .dh-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--th-copper), #E8A954);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}


/* ───────────────────────────────────────────────────────────
   SHARED TYPOGRAPHY
   ─────────────────────────────────────────────────────────── */

.dhalmia-project[data-page="south-lanarkshire"] .dh-overline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--th-copper);
  margin-bottom: 0.75rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-overline--center {
  text-align: center;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-heading-lg {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--th-text-0);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-heading--center {
  text-align: center;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-body {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: var(--th-text-1);
  max-width: 58ch;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-body + .dh-body {
  margin-top: 1rem;
}

/* Decorative copper line */
.dhalmia-project[data-page="south-lanarkshire"] .dh-line {
  width: 48px;
  height: 1px;
  background: var(--th-copper);
  margin-bottom: 1.25rem;
  transform-origin: left;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-line--center {
  margin-inline: auto;
  transform-origin: center;
}

/* data-line="trace" animation target */
.dhalmia-project[data-page="south-lanarkshire"] [data-line="trace"] {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out, cubic-bezier(.22,1,.36,1));
}

.dhalmia-project[data-page="south-lanarkshire"] [data-line="trace"].is-inview,
.dhalmia-project[data-page="south-lanarkshire"].dh-gsap-ready [data-line="trace"] {
  /* GSAP handles scaleX when available; IO fallback uses .is-inview */
}

/* IO fallback reveal */
.dhalmia-project[data-page="south-lanarkshire"] .dh-io-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out, ease), transform 0.8s var(--ease-out, ease);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-io-hidden.is-inview {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,.15) 0%,
      rgba(10,10,10,.05) 35%,
      rgba(10,10,10,.45) 65%,
      rgba(10,10,10,.92) 100%
    ),
    linear-gradient(90deg,
      rgba(10,10,10,.25) 0%,
      transparent 50%
    );
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--th-max);
  margin: 0 auto;
  padding: 0 var(--th-pad) clamp(3rem, 6vw, 5rem);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__overline {
  display: inline-block;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--th-copper);
  margin-bottom: 1rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* Hero meta row */
.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__meta {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-copper);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__meta-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  font-weight: 400;
}

/* Scroll cue */
.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.35);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-hero__scroll-dot {
  animation: th-scroll-bounce 2s ease-in-out infinite;
}

@keyframes th-scroll-bounce {
  0%, 100% { cy: 10; opacity: 1; }
  50%      { cy: 20; opacity: 0.3; }
}


/* ═══════════════════════════════════════════════════════════
   INTRODUCTION
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__aside {
  position: sticky;
  top: calc(var(--th-section-y) + 2rem);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-card {
  background: var(--th-surface);
  border: 1px solid rgba(204,132,52,.12);
  border-radius: var(--th-radius);
  padding: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-num {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--th-copper);
  line-height: 1;
  min-width: 2.5ch;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-label {
  font-size: 0.85rem;
  color: var(--th-text-1);
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════
   PILLARS
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-pillars {
  background: var(--th-surface);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--th-gutter);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-pillar {
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--th-radius);
  background: var(--th-bg);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-pillar:hover {
    border-color: var(--th-copper-dim);
    box-shadow: 0 0 40px rgba(204,132,52,.06), 0 0 8px rgba(204,132,52,.04);
  }
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-pillar__num {
  display: block;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  color: rgba(204,132,52,.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-pillar__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 400;
  color: var(--th-text-0);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-pillar__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--th-text-1);
}


/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery {
  padding-bottom: 0;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__showcase {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Visuals — shared */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__visual {
  position: relative;
  overflow: hidden;
  background: var(--th-surface);
  cursor: pointer;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  will-change: transform;
}

/* Full-width image */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__visual--full {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Side-by-side pair */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__visual--half {
  aspect-ratio: 3 / 4;
}

/* Curtain reveal */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__curtain {
  position: absolute;
  inset: 0;
  background: var(--th-bg);
  z-index: 3;
  transform-origin: left;
}

/* Inner inset shadow */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__inset {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,.35);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* Image number badge */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__num {
  position: absolute;
  bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  left: clamp(0.75rem, 1.5vw, 1.25rem);
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.55);
  z-index: 2;
  pointer-events: none;
}

/* Transparent shield for click + protection */
.dhalmia-project[data-page="south-lanarkshire"] .dh-shield {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}

/* Gallery info row */
.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__info {
  max-width: var(--th-max);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) var(--th-pad) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-copper);
  white-space: nowrap;
  flex-shrink: 0;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__info-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--th-text-1);
}


/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-track {
  position: absolute;
  top: calc(2rem + 6px);
  left: 6px;
  right: 6px;
  height: 1px;
  background: linear-gradient(90deg,
    var(--th-copper-dim),
    var(--th-copper),
    var(--th-copper-dim)
  );
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--th-bg);
  border: 2px solid var(--th-copper);
  box-shadow: 0 0 12px rgba(204,132,52,.2);
  flex-shrink: 0;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--th-text-0);
  text-align: center;
  line-height: 1.4;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-label small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--th-text-2);
  margin-top: 0.15rem;
}


/* ═══════════════════════════════════════════════════════════
   TESTIMONIAL
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial {
  background: var(--th-surface);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial__figure {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial__quote-mark {
  color: rgba(204,132,52,.18);
  margin-bottom: 1.5rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial__text {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--th-text-0);
  margin: 0 0 1.5rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial__attribution {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--th-text-0);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-testimonial__role {
  font-size: 0.75rem;
  color: var(--th-text-2);
  letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════
   CTA STRIP
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip {
  background: var(--th-bg);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(204,132,52,.15);
  border-radius: var(--th-radius);
  background: var(--th-surface);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__heading {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  color: var(--th-text-0);
  margin-bottom: 0.35rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__desc {
  font-size: 0.9rem;
  color: var(--th-text-1);
  max-width: 42ch;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--copper-1, #D4973C);
  border: 1px solid var(--th-copper-dim);
  border-radius: 2px;
  background: transparent;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(204,132,52,.08);
  transition: color 0.3s ease, border-color 0.3s ease,
              background 0.3s ease, box-shadow 0.4s ease,
              transform 0.3s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__btn:hover {
    color: #0F0F0F;
    border-color: var(--th-copper);
    background: linear-gradient(135deg, #8B5A1E 0%, #CC8434 35%, #E8A954 55%, #CC8434 80%, #8B5A1E 100%);
    box-shadow: 0 0 36px rgba(204,132,52,.3), 0 0 12px rgba(204,132,52,.15);
    transform: translateY(-2px);
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__btn:hover svg {
    transform: translateX(4px);
  }
}


/* ═══════════════════════════════════════════════════════════
   RELATED PROJECTS (dp-related — shared with functions.php)
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dp-related {
  padding-block: var(--th-section-y);
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__inner {
  max-width: var(--th-max);
  margin: 0 auto;
  padding: 0 var(--th-pad);
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__overline {
  display: block;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--th-copper);
  margin-bottom: 0.75rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  color: var(--th-text-0);
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--th-gutter);
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__card {
  text-decoration: none;
  color: inherit;
  border-radius: var(--th-radius);
  overflow: hidden;
  background: var(--th-surface);
  border: 1px solid rgba(255,255,255,.04);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dhalmia-project[data-page="south-lanarkshire"] .dp-related__card:hover {
    border-color: var(--th-copper-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dp-related__card:hover .dp-related__card-img {
    transform: scale(1.05);
  }
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__card-body {
  padding: 1.25rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__card-collection {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-copper);
  margin-bottom: 0.35rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__card-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--th-text-0);
  margin: 0;
}

.dhalmia-project[data-page="south-lanarkshire"] .dp-related__card-meta {
  font-size: 0.75rem;
  color: var(--th-text-2);
  margin-top: 0.35rem;
}


/* ═══════════════════════════════════════════════════════════
   FULL-SCREEN VIEWER
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5,5,5,.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer.is-active {
  opacity: 1;
  visibility: visible;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, background 0.2s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__close:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, background 0.2s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__nav:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__nav--prev { left: 1.25rem; }
.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__nav--next { right: 1.25rem; }

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__stage {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  -webkit-user-drag: none;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__bar {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.08em;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__counter span {
  color: var(--th-copper);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__caption {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 1rem;
  overflow-x: auto;
  max-width: 90vw;
  padding-bottom: 0.5rem;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__thumb {
  width: 56px;
  height: 42px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__thumb.is-active {
  border-color: var(--th-copper);
  opacity: 1;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ═══════════════════════════════════════════════════════════
   VIDEO LIGHTBOX
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-lightbox__stage {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-lightbox__stage video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #000;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__aside {
    position: static;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-card {
    flex-direction: row;
    gap: 0;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-row {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
    border-bottom: none;
    padding-bottom: 0;
    border-right: 1px solid rgba(255,255,255,.06);
    padding-inline: 1rem;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-row:last-child {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-pillars__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__pair {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__visual--half {
    aspect-ratio: 4 / 3;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__info {
    flex-direction: column;
    gap: 0.35rem;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-track {
    display: none;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__timeline-step {
    flex: 0 0 calc(33.333% - 1rem);
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dp-related__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__inner {
    flex-direction: column;
    text-align: center;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__desc {
    max-width: none;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__btn {
    width: 100%;
    justify-content: center;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-card {
    flex-direction: column;
    gap: 0;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-row {
    flex-direction: row;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 1rem 0;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-intro__stat-row:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-hero__meta {
    gap: 1.25rem;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-viewer__thumbs {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-progress,
  .dhalmia-project[data-page="south-lanarkshire"] .dh-hero__scroll-dot,
  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__curtain,
  .dhalmia-project[data-page="south-lanarkshire"] .dh-pillar,
  .dhalmia-project[data-page="south-lanarkshire"] .dh-cta-strip__btn,
  .dhalmia-project[data-page="south-lanarkshire"] .dp-related__card,
  .dhalmia-project[data-page="south-lanarkshire"] .dh-viewer,
  .dhalmia-project[data-page="south-lanarkshire"] .dh-lightbox {
    transition: none !important;
    animation: none !important;
  }

  .dhalmia-project[data-page="south-lanarkshire"] .dh-gallery__curtain {
    display: none !important;
  }

  .dhalmia-project[data-page="south-lanarkshire"] [data-animate="reveal"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .dhalmia-project[data-page="south-lanarkshire"] [data-line="trace"] {
    transform: scaleX(1) !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   INTERIOR PHOTOGRAPHY BLOCKS
   50/50 text + image, alternating sides.
   ═══════════════════════════════════════════════════════════ */

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* Text group: vertically centred within the stretched row */
.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block--flip .dh-photo-block__visual {
  order: -1;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__text {
  max-width: 520px;
}

/* Visual column stretches to match text height */
.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__visual {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__figure {
  position: relative;
  border-radius: var(--th-radius);
  overflow: hidden;
  background: var(--th-surface);
  flex: 1;
  min-height: clamp(480px, 50vw, 680px);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--th-radius);
  transition: transform 0.8s var(--ease-out, cubic-bezier(.22,1,.36,1));
}

@media (hover: hover) and (pointer: fine) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__figure:hover img {
    transform: scale(1.03);
  }
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(204,132,52,.15);
  padding: 0.6rem 1rem;
  pointer-events: none;
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__caption-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-copper);
}

/* Pair: two equal images side by side, both filling full column height */
.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.4rem, 0.75vw, 0.75rem);
  align-self: stretch;
  min-height: clamp(480px, 50vw, 680px);
}

.dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__pair .dh-photo-block__figure {
  min-height: 0; /* override — pair grid handles height */
  height: 100%;
}

@media (max-width: 1140px) {
  .dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block--flip .dh-photo-block__visual {
    order: 0;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__text {
    max-width: none;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__figure {
    min-height: 360px;
  }
  .dhalmia-project[data-page="south-lanarkshire"] .dh-photo-block__pair {
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }
}