:root {
  --ink: #18211d;
  --paper: #f7f5ef;
  --stone: #d7d0c2;
  --mist: #eef3f1;
  --moss: #4d6b54;
  --lake: #315f73;
  --clay: #9e5a3f;
  --charcoal: #111715;
  --line: rgba(24, 33, 29, 0.16);
  --shadow: 0 18px 42px rgba(17, 23, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(17, 23, 21, 0.72), transparent);
}

.wordmark,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark {
  text-decoration: none;
  font-weight: 700;
}

.wordmark-mark {
  width: 45px;
  height: 13px;
  flex: 0 0 45px;
  background:
    radial-gradient(circle at 6px 50%, var(--clay) 0 6px, transparent 7px),
    radial-gradient(circle at 22px 50%, var(--moss) 0 6px, transparent 7px),
    radial-gradient(circle at 38px 50%, var(--lake) 0 6px, transparent 7px);
}

.site-header nav a {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.portfolio-hero {
  min-height: 78vh;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 23, 21, 0.82), rgba(17, 23, 21, 0.18) 55%),
    linear-gradient(to right, rgba(17, 23, 21, 0.56), transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 132px clamp(20px, 5vw, 64px) 54px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2b596;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: clamp(1.06rem, 1.8vw, 1.34rem);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.48);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  font-weight: 800;
}

.signal-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--charcoal);
  color: #fff;
}

.signal-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-strip strong {
  color: #f2b596;
}

.signal-strip a,
.evidence-grid a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.editorial-section,
.xdd-section {
  background: #fffdf8;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.editorial-copy p {
  color: rgba(24, 33, 29, 0.78);
  font-size: 1.08rem;
  line-height: 1.78;
}

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.capability-strip span,
.specialist-points span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f4eb;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-section {
  background: #f1ede3;
}

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

.feature-story {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.feature-story img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-story div {
  padding: 24px;
}

.feature-story span,
.timeline span,
.presentation-grid span,
.bd-grid span {
  display: block;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-story h3,
.bd-grid h3,
.specialist-feature h3,
.timeline h3,
.presentation-grid h3 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.08;
}

.feature-story p,
.bd-grid p,
.specialist-feature p,
.timeline p,
.presentation-grid p {
  color: rgba(24, 33, 29, 0.72);
  line-height: 1.62;
}

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

.presentation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bd-grid article,
.presentation-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(24, 33, 29, 0.08);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.filter-panel label span {
  color: rgba(24, 33, 29, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.filter-empty {
  margin-top: 20px;
  color: rgba(24, 33, 29, 0.68);
  font-weight: 800;
}

.beyond-section {
  background: var(--charcoal);
  color: #fff;
}

.beyond-section .eyebrow,
.beyond-section h2 {
  color: #fff;
}

.specialist-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.technical-plate {
  display: grid;
  min-height: 420px;
  align-content: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 95, 115, 0.34), rgba(158, 90, 63, 0.22)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 24px
    ),
    #1c2422;
}

.technical-plate span {
  color: #f2b596;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.technical-plate strong {
  max-width: 420px;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 0.96;
}

.specialist-feature > div:last-child {
  display: grid;
  align-content: center;
}

.specialist-feature h3 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.9rem);
}

.specialist-feature p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.specialist-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.specialist-points span {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.timeline-section {
  background: #fffdf8;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline article {
  min-height: 270px;
  padding: 26px;
  background: #f8f4eb;
}

.presentation-section {
  background: #eef3f1;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card a {
  display: block;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.project-card img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(49, 95, 115, 0.18), rgba(77, 107, 84, 0.12)),
    repeating-linear-gradient(
      135deg,
      rgba(24, 33, 29, 0.08) 0 1px,
      transparent 1px 15px
    ),
    #f0eee6;
  color: rgba(24, 33, 29, 0.7);
}

.image-placeholder span {
  border: 1px solid rgba(24, 33, 29, 0.22);
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card .image-placeholder {
  min-height: 0;
}

.large-placeholder {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-card span,
.project-card p,
.project-card dl {
  margin-left: 22px;
  margin-right: 22px;
}

.project-card span {
  display: block;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 22px 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.project-card p {
  color: rgba(24, 33, 29, 0.68);
}

.project-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  margin-bottom: 0;
  background: var(--line);
}

.project-card dl div {
  min-width: 0;
  padding: 14px;
  background: #f8f4eb;
}

.project-card dt {
  color: rgba(24, 33, 29, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card dd {
  min-width: 0;
  margin: 6px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.map-section {
  background: #f4f0e7;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: 22px;
  align-items: start;
}

.map-frame {
  height: min(72vh, 680px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d9ded4;
  box-shadow: var(--shadow);
}

.pin-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #d9ded4;
}

.project-pin {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 999px 999px 999px 4px;
  background: var(--clay);
  box-shadow: 0 10px 22px rgba(17, 23, 21, 0.34);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  transform: rotate(-45deg);
}

.project-pin span {
  transform: rotate(45deg);
}

.project-pin.pending {
  background: var(--lake);
}

.leaflet-marker-icon {
  overflow: visible;
}

.project-marker-shell {
  position: relative;
  width: 34px;
  height: 34px;
}

.project-marker-shell .map-popup-card {
  position: absolute;
  z-index: 600;
  bottom: 48px;
  left: 50%;
  display: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.project-marker-shell:hover .map-popup-card,
.leaflet-marker-icon.is-active .map-popup-card {
  display: block;
}

.project-map-tooltip {
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.project-map-tooltip::before {
  display: none;
}

.map-popup-card {
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(17, 23, 21, 0.24);
  color: var(--ink);
}

.map-popup-card img,
.map-popup-thumb-placeholder {
  display: block;
  width: 100%;
  height: 130px;
  overflow: hidden;
}

.map-popup-card img {
  width: 100% !important;
  height: 130px !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center;
}

.map-popup-thumb-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(49, 95, 115, 0.22), rgba(158, 90, 63, 0.14)),
    repeating-linear-gradient(
      135deg,
      rgba(24, 33, 29, 0.08) 0 1px,
      transparent 1px 13px
    ),
    #f0eee6;
  color: rgba(24, 33, 29, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-popup-card div {
  padding: 14px;
}

.map-popup-card span {
  display: block;
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-popup-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.15;
}

.map-popup-card p {
  margin: 7px 0 0;
  color: rgba(24, 33, 29, 0.7);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pin-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: min(72vh, 680px);
  overflow: auto;
  padding-right: 4px;
}

.pin-list a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(24, 33, 29, 0.08);
}

.pin-list a:hover {
  border-color: rgba(158, 90, 63, 0.5);
  transform: translateY(-1px);
}

.pin-list img,
.map-thumb-placeholder {
  display: block;
  width: 76px;
  min-width: 76px;
  height: 57px;
  overflow: hidden;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.map-thumb-placeholder {
  display: grid;
  place-items: center;
  background: #f0eee6;
  color: rgba(24, 33, 29, 0.62);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pin-list a > span:not(.map-thumb-placeholder) {
  display: block;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pin-list strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.narrative p {
  max-width: 780px;
  color: rgba(24, 33, 29, 0.82);
  font-size: 1.05rem;
  line-height: 1.78;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.facts div {
  min-height: 106px;
  padding: 18px;
  background: #fffdf8;
}

.facts span,
.gallery-grid figcaption {
  display: block;
  margin-bottom: 8px;
  color: rgba(24, 33, 29, 0.58);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.48rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.project-detail {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.alt-detail {
  background: var(--mist);
}

.section-narrow,
.project-hero {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  margin-bottom: 34px;
}

.project-hero > * {
  min-width: 0;
}

.project-hero.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.project-hero.reverse img {
  order: 2;
}

.project-hero img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.project-hero p:not(.eyebrow) {
  color: rgba(24, 33, 29, 0.76);
  font-size: 1.08rem;
  line-height: 1.68;
}

.project-detail .gallery-grid {
  margin-top: 34px;
}

.story-section {
  max-width: none;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
  background: var(--mist);
}

.story-block,
.story-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(49, 95, 115, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(49, 95, 115, 0.2);
}

.story-grid article {
  min-height: 250px;
  padding: 26px;
  background: #fbfcfa;
}

.story-grid span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--lake);
  font-weight: 900;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.story-grid p,
.evidence-grid p {
  color: rgba(24, 33, 29, 0.72);
  line-height: 1.62;
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.gallery-grid figure.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figure.wide img {
  aspect-ratio: 16 / 10;
}

.gallery-grid figcaption {
  margin: 0;
  padding: 14px 16px 16px;
  background: #fffdf8;
}

.evidence-section {
  border-top: 1px solid var(--line);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.evidence-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.evidence-grid a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--moss);
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.build-stamp {
  color: rgba(255, 255, 255, 0.68);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .overview-grid,
  .story-grid,
  .editorial-grid,
  .feature-editorial-grid,
  .bd-grid,
  .bdm-principles,
  .bdm-dashboard-grid,
  .runway-grid,
  .evidence-columns,
  .specialist-feature,
  .timeline,
  .presentation-grid,
  .filter-panel,
  .map-layout,
  .project-cards,
  .project-hero,
  .project-hero.reverse,
  .gallery-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .project-card dl {
    grid-template-columns: 1fr;
  }

  .bdm-principles article,
  .bdm-dashboard-grid article,
  .runway-grid article,
  .evidence-columns article {
    min-height: 0;
  }

  .jd-matrix-head {
    display: none;
  }

  .jd-matrix article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .jd-matrix article span:nth-child(2)::before,
  .jd-matrix article span:nth-child(3)::before {
    display: block;
    margin-bottom: 4px;
    color: rgba(24, 33, 29, 0.48);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .jd-matrix article span:nth-child(2)::before {
    content: "Craig evidence";
  }

  .jd-matrix article span:nth-child(3)::before {
    content: "Execution";
  }

  .project-hero.reverse img {
    order: 0;
  }

  .gallery-grid figure.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .signal-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    color: var(--ink);
    background: rgba(247, 245, 239, 0.95);
    border-bottom: 1px solid var(--line);
  }

  .site-header nav {
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    flex: 0 0 auto;
    color: var(--ink);
    white-space: nowrap;
  }

  .home-page .site-header,
  .presentation-header {
    position: absolute;
    color: #fff;
    background: linear-gradient(to bottom, rgba(17, 23, 21, 0.76), transparent);
    border-bottom: 0;
  }

  .home-page .site-header nav a,
  .presentation-header nav a {
    color: #fff;
  }

  .route-grid,
  .index-workspace,
  .bdm-principles,
  .bdm-dashboard-grid,
  .runway-grid,
  .profile-proof-grid,
  .numbers-grid,
  .detail-hero,
  .detail-grid,
  .split-feature,
  .project-pager,
  .presentation-stage {
    grid-template-columns: 1fr;
  }

  .filter-console {
    position: static;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-hero-image,
  .detail-placeholder {
    min-height: 360px;
  }

  .presentation-shell {
    padding-top: 116px;
  }

  .presentation-stage {
    min-height: auto;
  }

  .presentation-image {
    height: 42vh;
  }
}

@media (max-width: 540px) {
  .page-hero {
    padding-top: 42px;
  }

  .home-page .page-hero {
    padding-top: 64px;
  }

  .route-grid a {
    min-height: 0;
  }

  .detail-hero-copy {
    padding: 28px 20px 34px;
  }

  .project-pager {
    margin-left: 20px;
    margin-right: 20px;
  }

  .presentation-controls {
    position: sticky;
    bottom: 12px;
  }
}

@media (max-width: 540px) {
  .wordmark {
    max-width: 170px;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .hero-meta span {
    width: 100%;
  }

  .project-card span,
  .project-card p,
  .project-card dl {
    margin-left: 18px;
    margin-right: 18px;
  }

  .project-card h3 {
    margin-left: 18px;
    margin-right: 18px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .technical-plate,
  .map-frame,
  .pin-map {
    height: 420px;
    min-height: 420px;
  }

  .large-placeholder {
    width: 100%;
    min-width: 0;
    min-height: 170px;
    aspect-ratio: 4 / 3;
  }

  .image-placeholder span {
    max-width: calc(100% - 24px);
    text-align: center;
    overflow-wrap: anywhere;
  }

  .pin-list {
    max-height: none;
    overflow: visible;
  }
}

.database-body {
  background: #f4f0e7;
}

.local-admin-link,
.local-only {
  display: none !important;
}

.is-local .local-admin-link {
  display: inline-flex !important;
}

.is-local .route-grid .local-admin-link,
.is-local .local-only {
  display: block !important;
}

.hero-content > p:not(.eyebrow) {
  max-width: 740px;
  margin-bottom: 26px;
  font-size: clamp(1.06rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}

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

.hero-actions a,
.presentation-controls button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.hero-build-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(17, 23, 21, 0.42);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-build-stamp span {
  color: #fff;
}

.subpage .site-header,
.database-header {
  position: sticky;
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
}

.subpage .site-header nav a,
.database-header nav a {
  color: var(--ink);
}

.subpage .wordmark-mark,
.database-header .wordmark-mark {
  filter: saturate(1.05);
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 64px) clamp(26px, 4vw, 50px);
}

.page-hero h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(24, 33, 29, 0.72);
  font-size: 1.1rem;
  line-height: 1.65;
}

.page-routes {
  padding-top: clamp(44px, 6vw, 78px);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-grid a,
.filter-console,
.detail-facts,
.presentation-controls,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(17, 23, 21, 0.08);
}

.route-grid a {
  min-height: 220px;
  min-width: 0;
  padding: 24px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.route-grid span,
.project-card small,
.pin-list small {
  display: block;
  color: rgba(24, 33, 29, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-grid strong {
  display: block;
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.route-grid p {
  color: rgba(24, 33, 29, 0.68);
  line-height: 1.55;
}

.section-link-row {
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.split-feature > div:first-child p:not(.eyebrow) {
  color: rgba(24, 33, 29, 0.72);
  font-size: 1.08rem;
  line-height: 1.72;
}

.bdm-positioning {
  background: #fffdf8;
}

.bdm-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.bdm-principles article {
  min-height: 240px;
  padding: 28px;
  background: #fffdf8;
}

.bdm-principles span,
.bdm-dashboard-grid span,
.runway-grid span,
.metric-strip span,
.jd-matrix span:first-child {
  display: block;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bdm-principles strong {
  display: block;
  margin-top: 34px;
  font-size: 1.25rem;
  line-height: 1.12;
}

.bdm-principles p {
  margin: 12px 0 0;
  color: rgba(24, 33, 29, 0.7);
  line-height: 1.58;
}

.bdm-dashboard-band {
  background: #141414;
  color: #fff;
}

.bdm-dashboard-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 128px) clamp(20px, 5vw, 64px);
}

.bdm-dashboard-band .section-heading h2,
.bdm-dashboard-band .section-heading p:not(.eyebrow) {
  color: #fff;
}

.bdm-dashboard-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.bdm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.bdm-dashboard-grid article {
  min-height: 230px;
  padding: 26px;
  background: #141414;
}

.bdm-dashboard-grid strong {
  display: block;
  margin: 28px 0 12px;
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
}

.bdm-dashboard-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.56;
}

.jd-matrix {
  display: grid;
  border-top: 1px solid rgba(24, 33, 29, 0.28);
}

.jd-matrix-head,
.jd-matrix article {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.25fr);
  gap: clamp(18px, 4vw, 60px);
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.jd-matrix-head {
  color: rgba(24, 33, 29, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jd-matrix article span {
  color: rgba(24, 33, 29, 0.72);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.jd-matrix article span:first-child {
  color: var(--ink);
  font-size: 1.05rem;
}

.runway-section {
  background: #f1ede3;
}

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

.runway-grid article {
  min-height: 300px;
  padding: 30px;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.runway-grid h3 {
  margin: 34px 0 14px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.02;
}

.runway-grid p {
  color: rgba(24, 33, 29, 0.7);
  line-height: 1.62;
}

.bdm-metrics-section {
  background: #fffdf8;
}

.evidence-base-section {
  background: #f1ede3;
}

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

.evidence-columns article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.evidence-columns h3 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
}

.evidence-columns p {
  color: rgba(24, 33, 29, 0.7);
  line-height: 1.62;
}

.holloway-section {
  background: #fffdf8;
}

.profile-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-proof-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 420px;
  background: #fffdf8;
}

.profile-proof-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ebe4d8;
  object-fit: cover;
}

.profile-proof-grid div {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.profile-proof-grid span,
.numbers-grid span {
  display: block;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-proof-grid h3 {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.08;
}

.profile-proof-grid p {
  margin: 0;
  color: rgba(24, 33, 29, 0.68);
  line-height: 1.56;
}

.technical-bdm-band {
  background: #141414;
  color: #fff;
}

.technical-bdm-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 128px) clamp(20px, 5vw, 64px);
}

.technical-bdm-band .section-heading h2 {
  color: #fff;
}

.technical-bdm-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.technical-proof-grid {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.technical-proof-grid article {
  background: #141414;
}

.technical-proof-grid img {
  background: #20201e;
}

.technical-proof-grid h3,
.technical-proof-grid p {
  color: #fff;
}

.technical-proof-grid p {
  color: rgba(255, 255, 255, 0.66);
}

.numbers-section {
  background: #f1ede3;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.numbers-grid article {
  min-height: 260px;
  padding: 28px;
  background: #fffdf8;
}

.numbers-grid span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: none;
}

.numbers-grid p {
  margin: 36px 0 0;
  color: rgba(24, 33, 29, 0.72);
  line-height: 1.58;
}

.archive-backbone-section {
  background: #141414;
  color: #fff;
}

.archive-backbone-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 128px) clamp(20px, 5vw, 64px);
}

.archive-backbone-section .section-heading h2 {
  color: #fff;
}

.archive-backbone-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.archive-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.archive-metrics-grid article {
  min-height: 230px;
  padding: 26px;
  background: #141414;
}

.archive-metrics-grid span {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.2vw, 4.1rem);
  font-weight: 500;
  line-height: 0.95;
}

.archive-metrics-grid strong {
  display: block;
  margin: 24px 0 10px;
  color: #f2b596;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-metrics-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.56;
}

.archive-boundary-note {
  max-width: 860px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.archive-summary-band {
  background: #141414;
  color: #fff;
}

.archive-summary-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 64px);
}

.archive-summary-inner h2 {
  margin-bottom: 14px;
  color: #fff;
}

.archive-summary-inner p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.62;
}

.archive-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.archive-mini-metrics span {
  display: grid;
  align-content: center;
  min-height: 116px;
  padding: 20px;
  background: #141414;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.archive-mini-metrics strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: none;
}

@media (max-width: 1120px) {
  .profile-proof-grid,
  .numbers-grid,
  .archive-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #f8f4eb;
  color: rgba(24, 33, 29, 0.78);
}

.public-routes {
  background: #fffdf8;
}

.admin-note {
  border-top: 1px solid var(--line);
}

.index-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 18px;
}

.filter-console {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.filter-console label {
  display: grid;
  gap: 7px;
}

.filter-console span {
  color: rgba(24, 33, 29, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-console input,
.filter-console select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #f8f4eb;
  color: var(--ink);
  font: inherit;
}

.filter-console p {
  margin: 6px 0 0;
  color: rgba(24, 33, 29, 0.66);
  font-weight: 800;
}

.project-index-grid {
  align-items: stretch;
}

.project-index-results {
  display: grid;
  gap: clamp(38px, 6vw, 72px);
  min-width: 0;
}

.project-list-band {
  background: #141414;
  color: #fff;
}

.project-list-inner {
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 132px) clamp(18px, 3.5vw, 64px) clamp(76px, 9vw, 140px);
}

.project-list-inner h2 {
  margin: 0 0 clamp(44px, 6vw, 76px);
  color: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(3.1rem, 5.8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.96;
}

.project-list-table {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.project-list-header,
.project-list-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.35fr)
    minmax(170px, 0.9fr)
    minmax(96px, 0.55fr)
    minmax(120px, 0.7fr);
  gap: clamp(18px, 4vw, 88px);
  align-items: center;
}

.project-list-header {
  padding: 22px 44px 20px 0;
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.42rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-list-row {
  position: relative;
  min-height: 68px;
  padding: 16px 52px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #807d7e;
  text-decoration: none;
  transition:
    color 180ms ease,
    padding-right 180ms ease;
}

.project-list-row:hover,
.project-list-row:focus-visible {
  padding-right: 62px;
  color: #fff;
  outline: none;
}

.project-list-arrow {
  position: absolute;
  right: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #807d7e;
  font-size: 1.95rem;
  font-weight: 300;
  line-height: 1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-list-row:hover .project-list-arrow,
.project-list-row:focus-visible .project-list-arrow {
  color: var(--tan);
  transform: translate(4px, -4px);
}

.project-list-row span {
  min-width: 0;
  color: currentColor;
  font-size: clamp(1.06rem, 1.35vw, 1.42rem);
  font-weight: 500;
  line-height: 1.25;
}

.project-list-name {
  display: grid;
  gap: 5px;
}

.project-list-name strong {
  overflow-wrap: anywhere;
  color: currentColor;
  font-size: clamp(1.08rem, 1.45vw, 1.48rem);
  font-weight: 500;
  line-height: 1.12;
}

.project-list-name small {
  color: rgba(215, 165, 110, 0.82);
  font-size: clamp(0.72rem, 0.85vw, 0.9rem);
  font-weight: 700;
}

.project-list-band .empty-state {
  color: rgba(255, 255, 255, 0.68);
}

.route-grid,
.index-workspace,
.project-index-results,
.detail-hero,
.detail-grid,
.split-feature,
.project-pager,
.presentation-stage,
.map-layout,
.project-cards {
  min-width: 0;
}

.route-grid > *,
.index-workspace > *,
.project-index-results > *,
.detail-hero > *,
.detail-grid > *,
.split-feature > *,
.project-pager > *,
.presentation-stage > *,
.map-layout > *,
.project-cards > * {
  min-width: 0;
}

.dynamic-project-card small {
  margin: 16px 22px 22px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: rgba(24, 33, 29, 0.68);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 72vh;
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
}

.detail-hero-image {
  min-height: 520px;
}

.detail-hero-image img,
.presentation-image img {
  height: 100%;
  object-fit: cover;
}

.detail-hero-copy {
  align-self: end;
  padding: clamp(36px, 6vw, 72px);
}

.detail-hero h1,
.presentation-copy h1 {
  color: inherit;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.detail-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.16rem;
  line-height: 1.62;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.detail-facts {
  padding: 22px;
}

.detail-facts h2 {
  font-size: 2rem;
}

.detail-facts dl {
  display: grid;
  gap: 1px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-facts div {
  padding: 13px;
  background: #f8f4eb;
}

.detail-facts dt {
  color: rgba(24, 33, 29, 0.55);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-narrative p,
.detail-narrative li {
  color: rgba(24, 33, 29, 0.76);
  font-size: 1.05rem;
  line-height: 1.76;
}

.detail-narrative h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.detail-narrative h3 {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.project-page-gallery {
  padding-top: 20px;
}

.detail-placeholder {
  height: 100%;
  min-height: 520px;
}

.project-pager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto clamp(42px, 6vw, 74px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.project-pager a {
  min-width: 0;
  padding: 18px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.map-page .map-section {
  padding-top: 20px;
}

.pin-list a div {
  min-width: 0;
}

.pin-list a div span {
  display: block;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.presentation-body {
  min-height: 100vh;
  background: var(--charcoal);
  color: #fff;
}

.presentation-header {
  position: fixed;
  background: linear-gradient(to bottom, rgba(17, 23, 21, 0.82), transparent);
}

.presentation-shell {
  display: grid;
  min-height: 100vh;
  padding: 92px clamp(18px, 4vw, 56px) 28px;
}

.presentation-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 168px);
}

.presentation-stage:has(.presentation-copy:only-child) {
  grid-template-columns: 1fr;
}

.presentation-image {
  height: min(68vh, 720px);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.presentation-copy {
  max-width: 760px;
}

.presentation-copy p:not(.eyebrow),
.presentation-copy li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.presentation-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: end;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.presentation-controls button {
  cursor: pointer;
}

.presentation-controls span {
  font-weight: 900;
}

.database-header {
  background: rgba(244, 240, 231, 0.92);
}

.database-shell {
  padding-top: 96px;
}

.database-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 32px clamp(18px, 4vw, 48px) 24px;
}

.database-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: 0.96;
}

.database-title p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(24, 33, 29, 0.74);
  font-size: 1rem;
  line-height: 1.6;
}

.database-status {
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 38px rgba(24, 33, 29, 0.08);
}

.database-status span {
  color: rgba(24, 33, 29, 0.62);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  min-height: calc(100vh - 250px);
  padding: 0 clamp(18px, 4vw, 48px) 48px;
}

.master-panel,
.detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.master-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: 680px;
}

.maintenance-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbf8f1;
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.maintenance-toolbar label,
.form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.maintenance-toolbar span,
.form-grid span {
  color: rgba(24, 33, 29, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-toolbar input,
.maintenance-toolbar select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(24, 33, 29, 0.18);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.maintenance-toolbar input,
.maintenance-toolbar select,
.form-grid input,
.form-grid select {
  height: 42px;
  padding: 0 11px;
}

.form-grid textarea {
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.45;
}

.master-list {
  overflow: auto;
  min-height: 0;
}

.master-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  border-bottom: 1px solid rgba(24, 33, 29, 0.1);
}

.master-row.active {
  background: rgba(158, 90, 63, 0.09);
}

.row-include {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(24, 33, 29, 0.08);
}

.row-include input {
  width: 18px;
  height: 18px;
  accent-color: var(--clay);
}

.master-row button {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.master-row button:hover {
  background: rgba(49, 95, 115, 0.08);
}

.master-row strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-row span {
  overflow: hidden;
  color: rgba(24, 33, 29, 0.62);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-footer,
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fbf8f1;
}

.list-footer button,
.form-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 900;
  cursor: pointer;
}

.list-footer button {
  padding: 0 14px;
}

.list-footer button:disabled {
  cursor: default;
  opacity: 0.45;
}

.list-footer span,
#save-status {
  color: rgba(24, 33, 29, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-panel {
  padding: 24px;
  color: rgba(24, 33, 29, 0.64);
}

.detail-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

#project-form {
  min-width: 0;
}

.detail-panel-top {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.detail-panel-top h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.include-toggle,
.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.include-toggle input,
.checkbox-field input {
  width: 19px;
  height: 19px;
  accent-color: var(--clay);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.form-grid .full,
.checkbox-field {
  grid-column: 1 / -1;
}

.form-actions button {
  padding: 0 18px;
}

.evidence-panel {
  border-top: 1px solid var(--line);
  background: #f8f4eb;
}

.evidence-panel summary {
  cursor: pointer;
  padding: 16px 20px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.folder-meta {
  padding: 0 20px 16px;
}

.folder-meta dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.folder-meta div {
  min-width: 0;
  padding: 12px;
  background: #fffdf8;
}

.folder-meta dt {
  color: rgba(24, 33, 29, 0.56);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.folder-meta dd {
  min-width: 0;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.evidence-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.evidence-list article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.evidence-list strong,
.evidence-list span {
  display: block;
}

.evidence-list span {
  margin-top: 5px;
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-list p {
  margin: 7px 0 0;
  color: rgba(24, 33, 29, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .database-title,
  .maintenance-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .database-shell {
    padding-top: 82px;
  }

  .database-title {
    padding-inline: 16px;
  }

  .maintenance-layout {
    padding-inline: 16px;
  }

  .toolbar-row,
  .form-grid,
  .detail-panel-top,
  .folder-meta dl {
    grid-template-columns: 1fr;
  }

  .master-panel {
    min-height: 560px;
  }
}

@media (max-width: 860px) {
  .jd-matrix-head {
    display: none;
  }

  .jd-matrix article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .jd-matrix article span:nth-child(2)::before,
  .jd-matrix article span:nth-child(3)::before {
    display: block;
    margin-bottom: 4px;
    color: rgba(24, 33, 29, 0.48);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .jd-matrix article span:nth-child(2)::before {
    content: "Craig evidence";
  }

  .jd-matrix article span:nth-child(3)::before {
    content: "Execution";
  }

  .route-grid,
  .index-workspace,
  .bdm-principles,
  .bdm-dashboard-grid,
  .runway-grid,
  .evidence-columns,
  .profile-proof-grid,
  .numbers-grid,
  .archive-metrics-grid,
  .archive-summary-inner,
  .detail-hero,
  .detail-grid,
  .split-feature,
  .project-pager,
  .presentation-stage,
  .map-layout,
  .project-cards {
    grid-template-columns: 1fr;
  }

  .profile-proof-grid article,
  .numbers-grid article,
  .archive-metrics-grid article {
    min-height: 0;
  }

  .profile-proof-grid div,
  .numbers-grid article,
  .archive-metrics-grid article {
    padding: 22px;
  }

  .archive-mini-metrics {
    grid-template-columns: 1fr;
  }

  .archive-mini-metrics span {
    min-height: 0;
  }

  .numbers-grid p {
    margin-top: 20px;
  }

  .filter-console {
    position: static;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-hero-image,
  .detail-placeholder {
    min-height: 360px;
  }

  .presentation-shell {
    padding-top: 116px;
  }

  .presentation-stage {
    min-height: auto;
  }

  .presentation-image {
    height: 42vh;
  }

  .project-list-header {
    display: none;
  }

  .project-list-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 18px 44px 18px 0;
  }

  .project-list-row:hover,
  .project-list-row:focus-visible {
    padding-right: 48px;
  }

  .project-list-row > span:not(.project-list-arrow):not(.project-list-name) {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    font-size: 0.88rem;
  }

  .project-list-row > span:not(.project-list-arrow):not(.project-list-name)::before {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .project-list-row > span:nth-of-type(3)::before {
    content: "Category";
  }

  .project-list-row > span:nth-of-type(4)::before {
    content: "Completed";
  }

  .project-list-row > span:nth-of-type(5)::before {
    content: "Company";
  }
}

@media (max-width: 540px) {
  .page-hero {
    padding-top: 42px;
  }

  .route-grid a {
    min-height: 0;
  }

  .detail-hero-copy {
    padding: 28px 20px 34px;
  }

  .project-pager {
    margin-left: 20px;
    margin-right: 20px;
  }

  .presentation-controls {
    position: sticky;
    bottom: 12px;
  }
}
