/* ═══════════════════════════════════════
   Single Project Detail Page
═══════════════════════════════════════ */

.sp-dd-page {
  /* Vertical rhythm between the page's sections. A variable so the specs
     section can cancel it exactly (see .sp-dd-section + .sp-dd-specs) without
     the two values drifting apart at a breakpoint. */
  --sp-section-gap: 72px;

  background: var(--dovetail-bg);
  color: var(--dovetail-dark);
  /* The scope panel breaks out to 100vw, which includes the scrollbar
     width — clip stops that causing a horizontal scrollbar */
  overflow-x: clip;
}

.sp-dd-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

/* ── Hero ── */
.sp-dd-hero {
  position: relative;
  min-height: 72vh;
  padding-top: 160px;
  padding-bottom: 54px;
  background: var(--dovetail-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sp-dd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}

.sp-dd-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.sp-dd-price {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--dovetail-white);
  font-family: "Cal Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Breadcrumb (visible counterpart to the BreadcrumbList schema) ── */
.sp-dd-breadcrumb {
  margin: 0 0 18px;
}

.sp-dd-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.sp-dd-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.sp-dd-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-dd-breadcrumb a:hover,
.sp-dd-breadcrumb a:focus-visible {
  color: var(--dovetail-white);
  text-decoration: underline;
}

.sp-dd-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.55);
}

.sp-dd-hero-content h1 {
  margin: 0 0 18px !important;
  color: var(--dovetail-white) !important;
  font-family: "Cal Sans", sans-serif !important;
  font-size: clamp(40px, 5.5vw, 84px) !important;
  line-height: 0.97 !important;
  font-weight: 600 !important;
  font-style: normal !important;
}

.sp-dd-hero-address {
  margin: 0 0 28px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: "Old Standard TT", serif !important;
  font-size: clamp(28px, 3vw, 36px) !important;
  font-style: italic !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
}

.sp-dd-hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.sp-dd-hero-meta-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.sp-dd-hero-meta-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.sp-dd-hero-meta-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}

.sp-dd-hero-meta-item strong {
  font-weight: 400;
  color: var(--dovetail-white);
}

.sp-dd-hero-desc {
  margin: 0 0 28px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  max-width: 640px;
}

.sp-dd-hero-back {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: var(--dovetail-white) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sp-dd-hero-back svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.sp-dd-hero-back:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

.sp-dd-hero-back:hover svg {
  transform: translateX(-3px);
}

/* ── Body wrapper ── */
.sp-dd-body {
  padding-top: 72px;
  padding-bottom: 0px;
}

/* ── Stats bar ── */
.sp-dd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--dovetail-border);
  background: var(--dovetail-white);
  margin-bottom: 72px;
}

.sp-dd-stat {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 24px;
  border-right: 1px solid var(--dovetail-border);
  text-align: center;
}

.sp-dd-stat:last-child {
  border-right: none;
}

.sp-dd-stat svg {
  width: 26px;
  height: 26px;
  color: var(--dovetail-taupe);
  margin-bottom: 2px;
}

.sp-dd-stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--dovetail-dark);
  line-height: 1;
  font-family: var(--font-heading, serif);
}

.sp-dd-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--dovetail-taupe);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Tabs ── */
.sp-dd-tabs {
  margin-bottom: 80px;
}

/* Gray baseline drawn as an inset shadow (not border-bottom) so the
   active tab's own border can cover it even when the nav becomes an
   overflow-x scroll container on small screens */
.sp-dd-tab-nav {
  display: flex;
  gap: 0;
  box-shadow: inset 0 -2px 0 var(--dovetail-border);
  margin-bottom: 52px;
}

.sp-dd-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0px 20px 15px 10px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--dovetail-text-muted) !important;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease !important;
  outline: none !important;
}

.sp-dd-tab-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  stroke: currentColor !important;
}

.sp-dd-tab-btn:hover,
.sp-dd-tab-btn:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dovetail-dark) !important;
  border-bottom-color: var(--dovetail-taupe) !important;
}

.sp-dd-tab-btn.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dovetail-dark) !important;
  border-bottom: 2px solid var(--dovetail-dark) !important;
}

/* a11y: visible keyboard focus (base rule sets outline:none) */
.sp-dd-tab-btn:focus-visible {
  outline: 2px solid var(--dovetail-accent) !important;
  outline-offset: 3px !important;
}

.sp-dd-tab-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--dovetail-border) !important;
  color: var(--dovetail-dark) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

.sp-dd-tab-btn.active .sp-dd-tab-count {
  background: var(--dovetail-dark) !important;
  color: var(--dovetail-white) !important;
}

.sp-dd-tab-panel {
  display: none;
}

.sp-dd-tab-panel.active {
  display: block;
}

/* ── Two-column layout ── */
.sp-dd-main-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}

/* ── Section titles ── */
.sp-dd-section {
  margin-bottom: var(--sp-section-gap);
}

/* The specs panel butts flush against the section above it — both blocks run
   to the same width off the left edge, so any gap between them reads as a
   seam rather than rhythm. Cancels whatever the section rhythm is, at every
   breakpoint. Guarded by the sibling selector: if Scope of Work is empty and
   no section precedes, nothing is pulled and the spacing stays normal. */
.sp-dd-section + .sp-dd-specs {
  margin-top: calc(var(--sp-section-gap) * -1);
}

.sp-dd-section-title {
  margin: 0 0 32px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dovetail-border);
  color: var(--dovetail-dark) !important;
  font-size: clamp(22px, 2.2vw, 34px) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
}

/* ── Description ── */
.sp-dd-desc {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: var(--dovetail-dark-700) !important;
  margin: 0 !important;
}

.sp-dd-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dovetail-dark-700);
}

.sp-dd-content p {
  margin-bottom: 1.4em;
}

/* ── Project Info — open editorial spec column (right col) ──
   No box: the metadata reads as a monograph colophon, framed by
   hairlines and rhythm rather than a bordered card. */
.sp-dd-details-card {
  position: sticky;
  top: 100px;
  background: var(--dovetail-dark);
  padding: 30px;
  border-radius: 5px;
}

/* Header row: section label + status marker on one tidy metadata line */
.sp-dd-details-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 22px;
}

.sp-dd-details-title {
  margin: 0 !important;
  font-family: var(--font-body, "Roboto", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1 !important;
  color: var(--dovetail-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Dark card surface: flip the card's ink text to light tones */
.sp-dd-details-card .sp-dd-status,
.sp-dd-details-card .sp-dd-fact dd,
.sp-dd-details-card .sp-dd-architect-name {
  color: var(--dovetail-white);
}

/* --dovetail-taupe = --bronze-light */
.sp-dd-details-card .sp-dd-fact dt {
  color: var(--dovetail-taupe);
}

/* Same bronze as the fact labels above — both are field labels, so they
   shouldn't be two different colours. (Was green-200.) */
.sp-dd-details-card .sp-dd-architect-label {
  color: var(--dovetail-taupe);
}

.sp-dd-details-card .sp-dd-credit-role {
  color: rgba(255, 255, 255, 0.5);
}

.sp-dd-details-card .sp-dd-facts {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.sp-dd-details-card .sp-dd-fact + .sp-dd-fact {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* This one was missing entirely, so the credit divider kept the light-theme
   --dovetail-border (#d5c8af) and rendered as the brightest line on the dark
   card — over the least important boundary in it. */
.sp-dd-details-card .sp-dd-architect {
  border-top-color: rgba(255, 255, 255, 0.15);
}

/* Stacked facts: a tiny tracked label over a clean value, hairline-split.
   The editorial alternative to a right-aligned spec-sheet row. */
.sp-dd-facts {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--dovetail-border);
}

.sp-dd-fact {
  padding: 16px 0;
}

.sp-dd-fact + .sp-dd-fact {
  border-top: 1px solid var(--dovetail-taupe-100);
}

.sp-dd-fact dt {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-text-muted);
}

.sp-dd-fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--dovetail-dark);
}

.sp-dd-press-link,
.sp-dd-details-card .sp-dd-press-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dovetail-white, #ffffff) !important;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.sp-dd-press-link:hover,
.sp-dd-details-card .sp-dd-press-link:hover {
  color: #d5c8af !important;
  border-bottom-color: #d5c8af;
  gap: 9px;
}

.sp-dd-press-link svg {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.sp-dd-press-link:hover svg {
  transform: translate(2px, -2px);
}

/* When the sidebar has nothing to show, the content spans full width */
.sp-dd-main-row > .sp-dd-col-left:only-child {
  grid-column: 1 / -1;
}

/* ── Editorial story sections (Scope of Work / The Challenge) ──
   Shared header pattern: gold dash + small-caps eyebrow + serif title.
   Replaces the old boxed look with open, magazine-style spacing. */
.sp-dd-story-head {
  margin-bottom: 28px;
}

.sp-dd-story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--dovetail-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sp-dd-story-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--dovetail-accent);
  flex-shrink: 0;
}

.sp-dd-story-title {
  margin: 0 !important;
  color: var(--dovetail-dark) !important;
  font-size: clamp(26px, 2.4vw, 38px) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
}

/* ── Scope of Work — full-bleed feature panel ──
   Dark forest-green block with the project's own gallery image,
   spanning the entire viewport width edge to edge. */

/* Breakout: the section sits inside the centered .sp-dd-container,
   so shifting by 50% - 50vw lands its left edge on the viewport edge */
.sp-dd-scope-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.sp-dd-scope-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--dovetail-forest-green);
  overflow: hidden;
  min-height: 460px;
}

.sp-dd-scope-panel--noimg {
  grid-template-columns: 1fr;
}

.sp-dd-scope-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Left padding tracks the container margin on wide screens so the
     text lines up with the rest of the page content */
  padding: 72px clamp(26px, 5vw, 90px) 72px max(26px, calc((100vw - 1400px) / 2 + 10px));
}

/* On-dark overrides for the shared editorial header */
.sp-dd-scope-panel .sp-dd-story-head {
  margin-bottom: 22px;
}

.sp-dd-scope-panel .sp-dd-story-eyebrow {
  color: var(--dovetail-green-200);
}

/* No leading dash on the Scope eyebrow — the label sits flush-left,
   aligned with the title and body below it. */
.sp-dd-scope-panel .sp-dd-story-eyebrow::before {
  display: none;
}

.sp-dd-scope-panel .sp-dd-story-title {
  color: var(--dovetail-white) !important;
}

/* Scope text — light on the green panel */
.sp-dd-scope-text {
  margin: 0 !important;
  max-width: 560px;
  color: var(--dovetail-dark-100) !important;
  font-size: clamp(16px, 1.4vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

/* Image column — full bleed */
.sp-dd-scope-img {
  position: relative;
  min-height: 300px;
}

.sp-dd-scope-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Challenge body — readable measure, generous leading */
.sp-dd-story-content {
  max-width: 720px;
  color: var(--dovetail-dark-700);
  font-size: 16.5px;
  line-height: 1.85;
}

.sp-dd-story-content p {
  margin: 0 0 20px;
}

.sp-dd-story-content p:last-child {
  margin-bottom: 0;
}

/* Lede — first paragraph slightly larger, draws the eye in */
.sp-dd-story-content > p:first-child {
  font-size: 19px;
  line-height: 1.7;
  color: var(--dovetail-dark);
}

/* ── The Challenge — editorial chapter ──
   An open two-column spread anchored by a vertical "spine" rule.
   Left: a sticky two-voice title lockup (Cal Sans setup word + Old
   Standard TT italic hero word). Right: a lede-led story that hangs
   off the spine, opened by a serif drop cap. No box — the structure
   and the hairlines do the framing. */
.sp-dd-chal {
  padding: clamp(52px, 6vw, 88px) 0;
}

.sp-dd-chal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.6fr;
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}

/* Title column stays in view while the story scrolls */
.sp-dd-chal-head {
  position: sticky;
  top: 110px;
}

/* The title is the anchor: a confident display lockup that fills the
   column so the left side reads as composed, not empty. */
.sp-dd-chal-title {
  margin: 10px 0 0 !important;
  line-height: 0.92 !important;
}

.sp-dd-chal-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(24px, 2.1vw, 34px);
  letter-spacing: 0.005em;
  color: var(--dovetail-dark);
}

.sp-dd-chal-ott {
  display: block;
  margin-top: 2px;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 5.2vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--dovetail-accent-strong);
}

/* Story column — hangs off the vertical spine, capped to a readable
   measure so the line length stays in the 65–75ch band. */
.sp-dd-chal-body {
  position: relative;
  max-width: 68ch;
  border-left: 1px solid var(--dovetail-border);
  padding-left: clamp(32px, 4.5vw, 80px);
}

/* A short scarce-green node sits at the top of the spine — the one
   accent moment, aligned to the start of the story. */
.sp-dd-chal-body::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 64px;
  background: var(--dovetail-accent);
}

/* Lede — the opening paragraph is set larger and in full ink to draw
   the eye in past the drop cap. */
.sp-dd-chal-body > p:first-child {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.7;
  color: var(--dovetail-dark);
}

/* Drop cap on the opening paragraph */
/* ── Entrance reveal — custom staggered variant ──
   The section opts in with data-reveal="custom": the shared reveal.js
   adds .dd-reveal / .is-in, and this CSS staggers the children instead
   of the generic components.css rise-in. */
.sp-dd-chal.dd-reveal .sp-dd-chal-head,
.sp-dd-chal.dd-reveal .sp-dd-chal-body {
  opacity: 0;
  transform: translateY(20px);
}

.sp-dd-chal.dd-reveal.is-in .sp-dd-chal-head,
.sp-dd-chal.dd-reveal.is-in .sp-dd-chal-body {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-dd-chal.dd-reveal.is-in .sp-dd-chal-body {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .sp-dd-chal.dd-reveal .sp-dd-chal-head,
  .sp-dd-chal.dd-reveal .sp-dd-chal-body {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Per-project testimonial ──
   Outer section: full-viewport-width brand black background.
   Inner .sp-dd-testi-grid: constrained to the same max-width as every
   other container on the page, so it aligns with header/footer/body. */
.sp-dd-testi-block {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 72px;
  background: var(--dovetail-dark);
}

.sp-dd-testi-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  min-height: 500px;
}

.sp-dd-testi-block--noimg .sp-dd-testi-grid {
  grid-template-columns: 1fr;
}

/* Left: image column */
.sp-dd-testi-img {
  position: relative;
  overflow: hidden;
}

.sp-dd-testi-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right: content column */
.sp-dd-testi-content {
  padding: 88px 20px 88px 72px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Giant decorative quote mark — behind the text */
.sp-dd-testi-content::before {
  content: '\201C';
  position: absolute;
  top: -52px;
  left: 40px;
  font-family: "Old Standard TT", serif;
  font-size: 340px;
  line-height: 1;
  color: var(--dovetail-accent);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.sp-dd-testi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dovetail-accent);
  position: relative;
  z-index: 1;
}

.sp-dd-testi-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--dovetail-accent);
  flex-shrink: 0;
}

.sp-dd-testi-fig {
  margin: 0;
  position: relative;
  z-index: 1;
}

.sp-dd-testi-quote {
  margin: 0 0 44px;
  padding: 0;
  border: none;
  background: none;
}

.sp-dd-testi-quote p {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.72;
  color: var(--dovetail-on-dark);
  font-weight: 400;
}

.sp-dd-testi-cite {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 28px;
  border-top: 1px solid rgba(154, 123, 79, 0.25);
}

.sp-dd-testi-author {
  font-family: "Cal Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--dovetail-on-dark);
  letter-spacing: 0.01em;
}

.sp-dd-testi-role {
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--dovetail-on-dark-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


@media (max-width: 900px) {
  .sp-dd-testi-grid {
    grid-template-columns: 1fr;
  }

  .sp-dd-testi-block {
    margin-top: 40px;
  }

  .sp-dd-testi-img {
    height: 300px;
    position: relative; /* restore for stacked layout */
  }


  .sp-dd-testi-content {
    padding: 56px 32px;
  }
}

@media (max-width: 640px) {
  .sp-dd-testi-content {
    padding: 48px 18px;
  }

  .sp-dd-testi-quote p {
    font-size: 20px;
  }
}

/* ── Project Info: status marker ──
   A refined inline marker (dot + tracked label), not a chip. */
.sp-dd-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dovetail-dark);
  white-space: nowrap;
}

.sp-dd-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dovetail-accent); /* fallback color */
  flex-shrink: 0;
}

.sp-dd-status-completed   .sp-dd-status-dot { background: var(--dovetail-accent); }
.sp-dd-status-in-progress .sp-dd-status-dot { background: var(--dovetail-taupe); }
.sp-dd-status-coming-soon .sp-dd-status-dot { background: var(--dovetail-dark-300); }
.sp-dd-status-sold        .sp-dd-status-dot { background: var(--dovetail-taupe-700); }

/* ── Project Info: architect credit ──
   Separated from the facts by a hairline, like a magazine byline. */
.sp-dd-architect {
  padding-top: 24px;
  border-top: 1px solid var(--dovetail-border);
}

.sp-dd-architect-label {
  display: block;
  margin-bottom: 10px;
  color: var(--dovetail-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Credits stacked under one "Design Team" label rather than a block each */
.sp-dd-credits {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Name and its icons share a row; the role sits quietly underneath */
.sp-dd-credit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sp-dd-credit-role {
  display: block;
  margin-top: 3px;
  color: var(--dovetail-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sp-dd-architect-name {
  display: block;
  margin: 0;   /* the row gap handles the spacing now */
  color: var(--dovetail-dark);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
}

.sp-dd-architect-socials {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;   /* icons hold their size; the name column absorbs the wrap */
}

.sp-dd-architect-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dovetail-border);
  border-radius: 50%;
  color: var(--dovetail-white) !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.sp-dd-architect-socials a:hover {
  background: var(--dovetail-white);
  border-color: var(--dovetail-white);
  color: var(--dovetail-dark) !important;
  transform: translateY(-2px);
}

/* ── Skeleton shimmer ── */
@keyframes sp-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.sp-dd-skeleton {
  background: linear-gradient(90deg, #e8e4de 25%, #f4f1ec 50%, #e8e4de 75%);
  background-size: 200% 100%;
  animation: sp-shimmer 1.4s ease-in-out infinite;
}

.sp-dd-skeleton img {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sp-dd-gallery-item:not(.sp-dd-skeleton) img {
  opacity: 1;
}

/* ── Gallery ── */
.sp-dd-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 360px;
  gap: 12px;
}

.sp-dd-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--dovetail-border);
  margin: 0;
  height: 100%;
}

/* First gallery image spans 2 columns, taller row */
.sp-dd-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}

.sp-dd-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* a11y: visible keyboard focus on gallery triggers (inset so it shows over the image) */
.sp-dd-gallery-item a:focus-visible {
  outline: 3px solid var(--dovetail-accent);
  outline-offset: -3px;
}

.sp-dd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.sp-dd-gallery-item:hover img {
  transform: scale(1.06);
}

.sp-dd-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.sp-dd-gallery-overlay svg {
  width: 40px;
  height: 40px;
  color: var(--dovetail-white);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.sp-dd-gallery-item:hover .sp-dd-gallery-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.sp-dd-gallery-item:hover .sp-dd-gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ── Architectural Specs ──
   Two columns: the spec schedule on the left, a crossfading strip of gallery
   shots on the right. The image column is sticky on desktop so it stays with
   the reader through a long spec list, and drops below the specs on tablet
   and phone. */
#sp-dd-specs-heading {
  font-family: "Cal Sans", sans-serif !important;
  /* !important is required here: .sp-dd-story-title sets `margin: 0 !important`
     as a shorthand, so a plain longhand would lose to it regardless of the ID. */
  margin-top: 40px !important;
}

/* Distance from the viewport edge to the container's content edge.
   .sp-dd-container is max-width 1400px with 10px side padding, so the content
   box is 1380px wide and each gutter is (100vw - 1380px) / 2 — floored at the
   10px padding on narrow screens. Used to bleed the image out to the edge. */
.sp-dd-specs-row {
  --sp-gutter: max(10px, calc(50vw - 690px));

  /* The Scope of Work panel above is a 100vw bleed split 1.15fr / 1fr, so its
     green block ends at 1.15 / 2.15 = 53.488vw. Sizing the image to finish on
     that same line keeps the two stacked panels aligned down the page — a
     fixed 60/40 drifted 15–56px past it depending on viewport width. */
  --sp-media-edge: 53.488vw;

  display: grid;
  grid-template-columns: calc(var(--sp-media-edge) - var(--sp-gutter)) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Source order is content-then-image so a phone reads the specs first; on
   desktop the image is placed back into column 1, on the left. */
.sp-dd-specs-media {
  grid-column: 1;
  grid-row: 1;
}

.sp-dd-specs-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;   /* let long words wrap instead of blowing out the grid */
}

.sp-dd-specs-list {
  margin: 0;
  padding: 0;
}

/* No gallery on this project — the schedule takes the full width */
.sp-dd-specs-row.has-no-media {
  grid-template-columns: minmax(0, 1fr);
}

.sp-dd-specs-row.has-no-media .sp-dd-specs-content {
  grid-column: 1;
}

/* Label and detail sit side by side, schedule-style */
.sp-dd-spec {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(0, 1fr);
  column-gap: 28px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--dovetail-taupe-100);
}

.sp-dd-spec dt {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--dovetail-dark);
}

.sp-dd-spec dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dovetail-text-soft);
}

/* Detail with no label saved against it — take the full row rather than
   sitting in the label column. (dt renders first whenever it exists, so a
   dd in first position means the label was blank.) */
.sp-dd-spec dd:first-child {
  grid-column: 1 / -1;
}

/* ── Gallery strip beside the specs ──
   Runs off the left edge of the screen, mirroring the way .sp-dd-scope-img
   meets the right edge in Scope of Work. The negative margin stretches the
   grid item leftwards; .sp-dd-page already has overflow-x: clip, so this
   can't produce a horizontal scrollbar. */
.sp-dd-specs-media {
  position: sticky;
  top: 100px;
  margin-left: calc(var(--sp-gutter) * -1);
  /* Height is set outright rather than via aspect-ratio + max-height. Those
     two fight each other: when the cap binds, the browser shrinks the WIDTH
     too so the ratio still holds, and the panel pulls away from its column,
     leaving a gap between image and specs. With a fixed height the width is
     simply the column (aligned to the scope panel's divide above) and
     object-fit: cover does the cropping. */
  height: 60vh;
  overflow: hidden;
  background: var(--dovetail-taupe-100);
}

.sp-dd-specs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Only crossfade when there's more than one shot; a lone image just sits there */
.sp-dd-specs-media.has-slides .sp-dd-specs-slide {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-dd-specs-media.has-slides .sp-dd-specs-slide.is-active {
  opacity: 1;
  z-index: 1;   /* keeps a late-decoding neighbour from flashing over it */
}

@media (prefers-reduced-motion: reduce) {
  .sp-dd-specs-media.has-slides .sp-dd-specs-slide {
    transition: none;
  }
}

/* Narrow desktops: at 60/40 the specs column is only 380–490px here, which
   leaves the detail 28–37 characters a line once the label has taken its
   share. Stack label over detail through this band only — above 1300px the
   side-by-side reads fine, and below 1025px the row is full width anyway. */
@media (min-width: 1025px) and (max-width: 1300px) {
  .sp-dd-spec {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }
  .sp-dd-spec dd,
  .sp-dd-spec dd:first-child {
    grid-column: 1;
  }
}

/* Tablet and below — one column, and the source order takes over: specs first,
   image after. A tall 4:5 panel would eat the screen at full width, so it
   becomes a band, full-bleed on both sides rather than only the left. */
@media (max-width: 1024px) {
  .sp-dd-specs-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .sp-dd-specs-content,
  .sp-dd-specs-media {
    grid-column: 1;
    grid-row: auto;
  }
  .sp-dd-specs-media {
    /* relative, NOT static: the slides are absolutely positioned against this
       box, and a static parent would send them to a distant ancestor and leave
       an empty panel here. This only needs to switch off the sticky. */
    position: relative;
    top: auto;
    margin-inline: calc(var(--sp-gutter) * -1);
    /* Back to a ratio-driven band — no cap to fight with once stacked. */
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767px) {
  .sp-dd-specs-row {
    gap: 28px;
  }
  /* Too narrow for two columns — label stacks over its detail */
  .sp-dd-spec {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding: 16px 0;
  }
  .sp-dd-spec dd,
  .sp-dd-spec dd:first-child {
    grid-column: 1;
    font-size: 15px;
  }
  .sp-dd-specs-media {
    aspect-ratio: 3 / 2;
  }
}

/* ── Video tab ── */
.sp-dd-video {
  margin: 0;
}

/* The stage takes its shape from --sp-video-ratio, which the template sets
   from the video's real dimensions (attachment metadata for uploads, the
   oEmbed response for YouTube/Vimeo). 16 / 9 is only the fallback for when
   neither source can tell us. The iframe/<video> is absolutely filled so a
   provider shipping its own inline width/height can't override the box.

   max-width converts a height cap into a width cap while preserving the
   ratio: at 9 / 16 that resolves to calc(78vh * 9 / 16), so a vertical
   video sits centred at a sane size instead of running metres down the page.
   At 16 / 9 it resolves to ~139vh — wider than any viewport, so landscape
   video is left full-width and untouched. */
.sp-dd-video-frame {
  position: relative;
  width: 100%;
  max-width: calc(78vh * var(--sp-video-ratio, 16 / 9));
  margin-inline: auto;
  aspect-ratio: var(--sp-video-ratio, 16 / 9);
  overflow: hidden;
  background: var(--dovetail-dark);
}

.sp-dd-video-frame iframe,
.sp-dd-video-frame video,
.sp-dd-video-frame embed,
.sp-dd-video-frame object {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* contain, not cover: if the ratio ever falls back to 16 / 9 for a video
   that isn't 16:9, letterbox it rather than crop the footage. */
.sp-dd-video-frame video {
  object-fit: contain;
  background: var(--dovetail-dark);
}

/* Portrait footage reads as a phone-shot clip — the caption centres under
   the narrower player rather than running the full content width. */
.sp-dd-video.is-portrait .sp-dd-video-caption {
  max-width: calc(78vh * var(--sp-video-ratio, 16 / 9));
  margin-inline: auto;
  text-align: center;
}

/* Shown only when a provider can't be embedded — keeps the tab useful */
.sp-dd-video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dovetail-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-dd-video-fallback:hover {
  text-decoration: underline;
}

/* Revealed by JS when the browser supports <video> but not this file's codec */
.sp-dd-video-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--dovetail-white);
  font-size: 14px;
}

.sp-dd-video-error[hidden] {
  display: none;
}

.sp-dd-video-error a {
  color: var(--dovetail-white);
}

.sp-dd-video-caption {
  margin: 18px 0 0;
  color: var(--dovetail-text-muted);
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
}

/* ── Map ── */
.sp-dd-map-wrap {
  width: 100%;
  height: 480px;
  border: 1px solid var(--dovetail-border);
  overflow: hidden;
}

.sp-dd-map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── CTA Banner ── */
/* CTA banner: shared partial parts/cta-banner.php, styled in components.css */

/* ── Lightbox ──
   Full-screen viewer laid out as a column: top bar / stage / footer.
   The stage flexes to the remaining height, so the photo can never sit
   underneath the bars on any screen size. NOTE: JS re-parents the dialog
   node to <body> on init — its original ancestor (.sp-dd-tabs) carries a
   scroll-reveal transform, which would otherwise make position:fixed
   resolve against the tabs box and clip the overlay inside the panel. */
.sp-lb {
  display: none !important;
}

.sp-lb:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex !important;
  flex-direction: column;
  animation: sp-lb-in 0.28s ease both;
}

@keyframes sp-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sp-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 10, 0.98);
  cursor: zoom-out;
}

/* Page scroll lock while the viewer is open (html + body for iOS Safari) */
html.sp-lb-open,
html.sp-lb-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ── Top bar: counter left, close right ── */
.sp-lb-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.sp-lb-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-family: var(--font-body, sans-serif);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

/* Shared circular control styling (close + arrows).
   ID-prefixed selectors on purpose: hello-elementor's reset.css loads AFTER
   this file and styles bare <button> (1px #c36 border, .5rem padding, #c36
   hover/focus background) — the ID wins on specificity so none of it bleeds
   through. Solid white circle + dark brand icon reads clearly over both the
   near-black backdrop and any photo. */
#sp-lightbox .sp-lb-close,
#sp-lightbox .sp-lb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  line-height: 0;
  background: var(--dovetail-white) !important;
  border: none !important;
  border-radius: 50% !important;
  color: var(--dovetail-dark) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease !important;
  padding: 0 !important;
}

#sp-lightbox .sp-lb-close:hover,
#sp-lightbox .sp-lb-close:focus,
#sp-lightbox .sp-lb-nav:hover,
#sp-lightbox .sp-lb-nav:focus {
  background: var(--dovetail-white) !important;
  color: var(--dovetail-dark) !important;
}

#sp-lightbox .sp-lb-close:hover {
  transform: scale(1.08);
}

/* Arrows are vertically centered with translateY — the hover scale must
   carry it or the button jumps down on hover */
#sp-lightbox .sp-lb-nav:hover {
  transform: translateY(-50%) scale(1.08);
}

#sp-lightbox .sp-lb-close svg,
#sp-lightbox .sp-lb-nav svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

/* ── Stage ── */
.sp-lb-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0; /* lets the flex child actually shrink — without it the image overflows the bars */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 84px;
}

.sp-lb-frame {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.sp-lb-img[src=""] {
  visibility: hidden; /* no broken-image glyph in the instant before the first load */
}

.sp-lb-img.sp-lb-loading {
  opacity: 0.15;
}

/* Finger-following drag must not fight the transition */
.sp-lb-img.sp-lb-dragging {
  transition: none;
}

/* Loading spinner — only revealed by JS when the network is actually slow */
.sp-lb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--dovetail-white);
  border-radius: 50%;
  animation: sp-lb-spin 0.8s linear infinite;
  pointer-events: none;
}

.sp-lb-spinner[hidden] {
  display: none;
}

@keyframes sp-lb-spin {
  to { transform: rotate(360deg); }
}

/* Prev / Next arrows */
#sp-lightbox .sp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
}

.sp-lb-prev { left: 18px; }
.sp-lb-next { right: 18px; }

#sp-lightbox .sp-lb-nav svg {
  width: 22px;
  height: 22px;
}

/* a11y: visible keyboard focus on all lightbox controls (white ring on the dark backdrop) */
.sp-lb-close:focus-visible,
.sp-lb-nav:focus-visible,
.sp-lb-thumb:focus-visible {
  outline: 2px solid var(--dovetail-white) !important;
  outline-offset: 2px;
}

/* ── Footer: filmstrip ── */
.sp-lb-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.sp-lb-thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sp-lb-thumbs::-webkit-scrollbar {
  height: 4px;
}

.sp-lb-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.sp-lb-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 44px;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 2px !important;
  background: none !important;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, border-color 0.2s ease !important;
}

.sp-lb-thumb:hover {
  opacity: 0.8;
}

.sp-lb-thumb.is-active {
  opacity: 1;
  border-color: var(--dovetail-white) !important;
}

.sp-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Single-image project: navigation chrome is meaningless — hide it */
.sp-lb--single .sp-lb-nav,
.sp-lb--single .sp-lb-thumbs,
.sp-lb--single .sp-lb-counter {
  display: none;
}

/* ── Small screens: swipe is primary, chrome shrinks out of the way ── */
@media (max-width: 767px) {
  .sp-lb-topbar {
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .sp-lb-stage {
    padding: 4px 10px;
  }

  #sp-lightbox .sp-lb-nav {
    width: 42px;
    height: 42px;
  }

  #sp-lightbox .sp-lb-nav svg {
    width: 18px;
    height: 18px;
  }

  .sp-lb-prev { left: 8px; }
  .sp-lb-next { right: 8px; }

  .sp-lb-thumb {
    width: 52px;
    height: 38px;
  }
}

/* Landscape phones: barely any height — drop the filmstrip, keep the photo */
@media (max-height: 480px) {
  .sp-lb-thumbs {
    display: none;
  }

  .sp-lb-footer {
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-lb:not([hidden]) {
    animation: none;
  }

  .sp-lb-img {
    transition: none;
  }
}

/* ── Back link ── */
.sp-dd-back {
  padding-top: 48px;
  border-top: 1px solid var(--dovetail-border);
}

.sp-dd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dovetail-dark) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s ease;
}

.sp-dd-back-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.sp-dd-back-link:hover {
  gap: 14px;
}

.sp-dd-back-link:hover svg {
  transform: translateX(-4px);
}

/* ═══════════════════════════════
   Responsive
═══════════════════════════════ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .sp-dd-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .sp-dd-main-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Stacked below the article: a top rule separates the open column
     from the content above it, since it's no longer a contained card. */
  .sp-dd-details-card {
    position: static;
    margin-top: 8px;
  }

  .sp-dd-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }

  .sp-dd-gallery-item:first-child {
    grid-column: span 2;
  }

  .sp-dd-stat {
    flex: 1 1 140px;
    padding: 24px 16px;
  }

  .sp-dd-stat-value {
    font-size: 24px;
  }
}

/* Tablet tabs */
@media (max-width: 1024px) {
  .sp-dd-tab-btn {
    padding: 14px 22px;
    font-size: 13px;
  }
}

/* Mobile: 767px */
@media (max-width: 767px) {
  .sp-dd-tab-nav {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sp-dd-tab-btn {
    padding: 12px 16px;
    font-size: 12px;
    white-space: nowrap;
    gap: 7px;
  }

  .sp-dd-tabs {
    margin-bottom: 48px;
  }

  .sp-dd-tab-nav {
    margin-bottom: 36px;
  }

  .sp-dd-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sp-dd-hero {
    min-height: 72vh;
  }

  .sp-dd-hero-content {
    padding-bottom: 40px;
  }

  .sp-dd-body {
    padding-top: 48px;
    padding-bottom: 0px;
  }

  .sp-dd-stats {
    flex-wrap: wrap;
    margin-bottom: 48px;
  }

  .sp-dd-stat {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid var(--dovetail-border);
    padding: 20px 12px;
  }

  /* Remove right border on even items */
  .sp-dd-stat:nth-child(even) {
    border-right: none;
  }

  .sp-dd-stat-value {
    font-size: 22px;
  }

  /* Tighter rhythm on phones. Set on the variable so the specs section's
     negative pull tracks it automatically. */
  .sp-dd-page {
    --sp-section-gap: 32px;
  }

  .sp-dd-col-left .sp-dd-section:last-child {
    margin-bottom: 0;
  }

  .sp-dd-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 8px;
  }

  .sp-dd-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .sp-dd-map-wrap {
    height: 320px;
  }

  .sp-dd-architect-name {
    font-size: 19px;
  }

  .sp-dd-story-head {
    margin-bottom: 20px;
  }

  .sp-dd-scope-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sp-dd-scope-content {
    padding: 36px 26px;
  }

  .sp-dd-scope-img {
    min-height: 240px;
  }

  .sp-dd-scope-text {
    font-size: 15.5px !important;
  }

  .sp-dd-story-content {
    font-size: 15.5px;
  }

  .sp-dd-story-content > p:first-child {
    font-size: 17px;
  }

  .sp-dd-chal {
    padding: 44px 0;
  }

  .sp-dd-chal-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sp-dd-chal-head {
    position: static;
  }

  /* Stacked: the spine and its accent node fall away */
  .sp-dd-chal-body {
    border-left: none;
    padding-left: 0;
  }

  .sp-dd-chal-body::before {
    display: none;
  }

}

/* ── The team behind this build — partners linked to this project
   (rendered by single-projects.php via dd_project_partners()). Editorial,
   logo-forward rows that match the page's hairline language. ── */
.sp-dd-team {
  margin-top: clamp(48px, 6vw, 88px);
}
.sp-dd-team-grid {
  list-style: none;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.sp-dd-team-card { margin: 0; }
.sp-dd-team-card a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--dovetail-surface);
  border: 1px solid var(--dovetail-border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}
.sp-dd-team-card a:hover {
  transform: translateY(-3px);
  border-color: var(--dovetail-taupe-300);
  box-shadow: 0 18px 40px -26px rgba(31, 30, 27, 0.4);
}
.sp-dd-team-card a:focus-visible {
  outline: 2px solid var(--dovetail-accent);
  outline-offset: 3px;
}
.sp-dd-team-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 8px;
  background: var(--dovetail-white);
  border: 1px solid var(--dovetail-border);
}
.sp-dd-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-dd-team-logo.is-monogram { background: var(--dovetail-taupe-100); }
.sp-dd-team-mono {
  font-family: "Old Standard TT", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--dovetail-taupe-700);
}
.sp-dd-team-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-dd-team-type {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dovetail-taupe-700);
}
.sp-dd-team-name {
  font-family: "Old Standard TT", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--dovetail-text);
}
.sp-dd-team-disc {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--dovetail-text-muted);
}
@media (prefers-reduced-motion: reduce) {
  .sp-dd-team-card a { transition: none; }
}
