:root {
  --navy: #0B1230;
  --navy-2: #121B45;
  --line: #1B2658;
  --text: #F4F6FC;
  --muted: #AAB4D9;
  --accent: #6F93F2;
  --blue: #1F3FBF;
  --paper: #F4F6FC;
  --ink: #0B1230;
  --ink-muted: #4A5273;
  --card-line: #D5DBF0;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--navy); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { opacity: .85; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.1; max-width: 860px; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.2; margin-bottom: 40px; }
h2.h-small { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 28px; }
h3 { font-size: 20px; margin-bottom: 10px; }
p { margin: 0 0 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.block { padding: clamp(56px, 8vw, 96px) 0; }
.dark { background: var(--navy); }
.dark-2 { background: var(--navy-2); }
.light { background: var(--paper); color: var(--ink); }
.blue { background: var(--blue); color: #fff; }
.muted { color: var(--muted); }
.light .muted, .light .meta { color: var(--ink-muted); }
.lead { font-size: 18px; max-width: 560px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.light .eyebrow { color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 4px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--text); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--card-line); color: var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: block; font: 700 22px/1.1 var(--serif); }
.brand-sub { display: block; font-size: 12px; color: var(--ink-muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.nav a { text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 130px) 0; background-color: var(--navy); }
.hero-content { position: relative; z-index: 2; }
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .slide.is-active { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 48, .92) 0%, rgba(11, 18, 48, .7) 50%, rgba(11, 18, 48, .4) 100%); }
.stat-tiles { background: var(--navy-2); padding-top: clamp(32px, 5vw, 56px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.tile { background: var(--navy); border: 1px solid var(--line); padding: 24px 22px; }
.tile::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--accent);
  margin-bottom: 12px;
}
.tile .stat-number { font-size: clamp(30px, 3.6vw, 42px); white-space: nowrap; }
.tile .stat-label { font-size: 12px; margin-top: 6px; color: var(--muted); }
/* Layout helpers */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.logos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }

/* Cards, steps, stats */
.card { background: #fff; border: 1px solid var(--card-line); padding: 28px; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.card-number { font: 700 32px var(--serif); color: var(--blue); }
.step { border-top: 3px solid var(--accent); padding-top: 18px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.stat-number { font: 700 52px/1 var(--serif); }
.stat-label { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }

/* Projects */
.project { margin-bottom: 56px; }
.project:last-child { margin-bottom: 0; }
.project h3 { font-size: 26px; margin-bottom: 6px; }
.project .meta { font-size: 14px; margin-bottom: 14px; }
.project-media { width: 100%; min-height: 300px; object-fit: cover; }
@media (min-width: 800px) { .project.reverse .project-media { order: 2; } }

.placeholder { display: flex; align-items: center; justify-content: center; min-height: 320px; font-size: 14px; letter-spacing: .1em; border: 1px dashed; }
.placeholder-dark { background: var(--line); border-color: #3A4780; color: var(--muted); }
.placeholder-light { background: #E4E9F7; border-color: #8D97BE; color: var(--ink-muted); }
.logo-box { height: 90px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--card-line); padding: 12px; }
.logo-box img { max-height: 100%; object-fit: contain; }

/* Map */
.map { height: 420px; border: 1px solid var(--line); background: var(--navy); }
.pin { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(31, 63, 191, .2); }
/* Contact form */
.contact { align-items: start; }
.quote-form .field { margin-bottom: 16px; }
.quote-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.quote-form input, .quote-form textarea { width: 100%; padding: 12px; font: 16px var(--sans); color: var(--text); background: var(--navy-2); border: 1px solid #3A4780; border-radius: 4px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #FFB4B4; font-size: 14px; }
.notice { background: var(--navy-2); border-left: 4px solid var(--accent); padding: 12px 16px; margin-bottom: 20px; }

.site-footer { background: #060A1E; color: var(--muted); font-size: 13px; text-align: center; padding: 22px 20px; }

/* Scroll animations: change these three numbers to play with the feel */
:root {
  --reveal-distance: 24px;
  --reveal-duration: .6s;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) ease,
              transform var(--reveal-duration) ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}

/* Sticky header with a shadow once you scroll */
.site-header { position: sticky; top: 0; z-index: 20; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(11, 18, 48, .15); }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* Services: image cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(11, 18, 48, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(11, 18, 48, .12);
}

.service-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.service-card__img--empty { background: #E4E9F7; }

.service-card__body { padding: 28px 32px 34px; }
.service-card__body h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}
.service-card__body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.8;
}
.service-card__body h3 a { text-decoration: none; color: inherit; }
.service-card__body h3 a:hover { color: var(--blue); opacity: 1; }

.light .eyebrow a { text-decoration: none; }

.service-detail { display: grid; gap: 32px; margin: 40px 0; max-width: 860px; }
.service-detail__img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 24px; }
.service-detail__text { color: var(--ink-muted); font-size: 17px; line-height: 1.9; }
.service-detail__text p { margin-bottom: 18px; }

/* ===== Service card link ===== */
.service-card__body { display: flex; flex-direction: column; flex: 1; }
.service-card__link {
  margin-top: 20px; align-self: flex-start;
  color: var(--blue); font-weight: 600; text-decoration: none;
}
.service-card__link:hover { text-decoration: underline; opacity: 1; }

/* ===== Our Work: tree filter with icon cards ===== */
.work-tree { margin: 40px 0 48px; --line-color: #B4BEE0; --gap: 16px; --stem: 32px; }

.tree-root {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: fit-content; margin: 0 auto; padding: 12px 22px 12px 14px;
  border-radius: 14px; background: #fff; border: 1px solid var(--card-line);
  color: var(--ink); text-decoration: none; transition: background .2s;
}
.tree-root__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #E4E9F7; color: var(--blue); font-size: 22px;
}
.tree-root__label { font: 700 20px var(--serif); }
.tree-root__count {
  min-width: 30px; padding: 2px 10px; border-radius: 999px; text-align: center;
  background: #E4E9F7; color: var(--ink-muted); font: 600 13px var(--sans);
}
.tree-root:hover { background: #F0F3FB; opacity: 1; }
.tree-root.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tree-root.is-active .tree-root__icon { background: rgba(255,255,255,.14); color: var(--accent); }
.tree-root.is-active .tree-root__count { background: rgba(255,255,255,.16); color: #fff; }

.tree-root::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -1px;
  width: 2px; height: var(--stem); background: var(--line-color);
}
.tree-root::before {
  content: ""; position: absolute; left: 50%; top: calc(100% + var(--stem));
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--line-color); border: 2px solid var(--paper); z-index: 2;
}

.tree-children {
  display: flex; justify-content: center; gap: var(--gap);
  list-style: none; margin: var(--stem) 0 0; padding: 0;
}
.tree-children li { position: relative; flex: 1 1 0; min-width: 0; padding-top: var(--stem); }
.tree-children li::before {
  content: ""; position: absolute; top: 0; left: 50%; margin-left: -1px;
  width: 2px; height: var(--stem); background: var(--line-color);
}
.tree-children li::after {
  content: ""; position: absolute; top: 0; margin-top: -1px;
  left: calc(var(--gap) / -2); right: calc(var(--gap) / -2);
  height: 2px; background: var(--line-color);
}
.tree-children li:first-child::after { left: 50%; }
.tree-children li:last-child::after { right: 50%; }
.tree-children li:only-child::after { display: none; }
.tree-children li:has(.is-active)::before { background: var(--blue); }

.tree-node {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  height: 100%; padding: 18px 12px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--card-line);
  color: var(--ink); text-align: center; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.tree-node::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--line-color); border: 2px solid var(--paper);
}
.tree-node__icon {
  width: 44px; height: 44px; margin-bottom: 8px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #E4E9F7; color: var(--blue); font-size: 22px;
}
.tree-node strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tree-node small { font-size: 13px; color: var(--ink-muted); }
.tree-node:hover { background: #F0F3FB; border-color: var(--accent); opacity: 1; }

.tree-node.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tree-node.is-active::before { background: var(--blue); }
.tree-node.is-active .tree-node__icon { background: rgba(255,255,255,.18); color: #fff; }
.tree-node.is-active small { color: rgba(255,255,255,.8); }

/* ===== Our Work: toggle, map, project cards ===== */
.view-toggle { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 28px; }
.view-toggle__btn {
  padding: 9px 20px; border-radius: 8px;
  border: 1px solid var(--card-line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none;
}
.view-toggle__btn:hover { background: #E4E9F7; opacity: 1; }
.view-toggle__btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.map--work { height: 560px; border-radius: 20px; overflow: hidden; }
.work-empty { color: var(--ink-muted); padding: 16px 0; }

.work-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.work-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--card-line);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 18, 48, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11, 18, 48, .12); opacity: 1; }
.work-card__media { position: relative; height: 220px; background: #E4E9F7; }
.work-card__media img, .work-card__empty { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card__badge {
  position: absolute; left: 14px; bottom: 14px;
  background: #fff; color: var(--ink);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.work-card__body { padding: 20px 24px 24px; }
.work-card__body h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.work-card__meta { color: var(--ink-muted); font-size: 14px; margin-bottom: 10px; }
.work-card__text { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* ===== About section (final) ===== */
.about {
  position: relative; background-color: var(--navy-2);
  background-size: cover; background-position: center;
}
.about.has-bg::before {            /* dark tint over the photo; lower .72 to show more of it */
  content: ""; position: absolute; inset: 0;
  background: rgba(18, 27, 69, .72);
}
.about > .wrap { position: relative; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
.about-grid.about-grid--single { grid-template-columns: minmax(0, 780px); }
.about-grid > * { min-width: 0; }

.about-intro {
  background: rgba(11, 18, 48, .9); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 30px 14px;
}
.about-intro h2 { margin-bottom: 20px; }

.about-slider {
  margin-top: 20px; padding: 24px 26px 20px;
  background: rgba(11, 18, 48, .9); border: 1px solid var(--line); border-radius: 18px;
}
.about-track {
  display: flex; align-items: flex-start; max-width: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  transition: height .3s ease;
}
.about-track::-webkit-scrollbar { display: none; }
.about-slide { flex: 0 0 100%; scroll-snap-align: start; }
.about-slide h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; color: var(--text); margin-bottom: 14px;
}
.about-slide h3 i { color: var(--accent); font-size: 22px; }
.about-slide p { color: #C4CCE8; font-size: 16px; line-height: 1.8; margin: 0; }

.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; color: #C4CCE8; line-height: 1.6; font-size: 15px; }
.about-num {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
}

.about-slider__foot { display: none; align-items: center; justify-content: space-between; margin-top: 20px; }
.js-ready .about-slider__foot { display: flex; }
.about-dots { display: flex; gap: 6px; }
.about-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: #2A3670; cursor: pointer; transition: width .2s, background .2s;
}
.about-dot.is-active { width: 22px; border-radius: 4px; background: var(--accent); }
.about-nav { display: flex; align-items: center; gap: 14px; }
.about-count { font-size: 13px; color: var(--muted); }
.about-arrows { display: flex; gap: 8px; }
.about-arrow {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid #2A3670; background: transparent; color: var(--text); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.about-arrow:hover { border-color: var(--accent); }
.about-arrow.next { background: var(--accent); border-color: var(--accent); color: var(--navy); }

.about-photo {
  order: 2; align-self: center; position: relative;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 20px; border: 1px solid #3A4780;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.about-photo__slides, .about-photo__slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-photo__slide { object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity 1s ease; }
.about-photo__slide.is-active { opacity: 1; }
.about-photo__badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--blue); color: #fff; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; }
.about-photo__dots { position: absolute; right: 14px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.about-photo__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s, background .2s;
}
.about-photo__dot.is-active { width: 22px; border-radius: 4px; background: #fff; }

@media (max-width: 900px) {
  .about-grid,
  .about-grid.about-grid--single { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-photo { order: 0; align-self: auto; }
  .about-intro { padding: 22px 20px 10px; }
  .about-slider { padding: 20px 18px 16px; }
  .about-slide p { font-size: 15px; }
}

/* ===== Our projects: phone and tablet ===== */
@media (max-width: 1000px) {
  .tree-root::before, .tree-root::after, .tree-node::before,
  .tree-children li::before, .tree-children li::after { display: none; }
  .tree-root { margin: 0 0 14px; }
  .tree-children { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
  .tree-children li { padding-top: 0; }
}

@media (max-width: 560px) {
  .work-tree { margin: 28px 0 32px; }
  .tree-root { width: 100%; justify-content: center; }
  .tree-children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tree-node { padding: 14px 10px 12px; }
  .tree-node strong { font-size: 13px; overflow-wrap: anywhere; }

  .view-toggle { justify-content: stretch; }
  .view-toggle__btn { flex: 1; text-align: center; padding: 10px 12px; }
}

/* ===== About: photo + slideshow on the left, tall About box on the right ===== */
.about-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.about-photo { order: 0; align-self: auto; width: 100%; }
.about-left .about-slider { margin-top: 0; }
.about-intro {
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 36px 24px;
}
.about-head { margin-bottom: 0; }
.about-head h2 { margin-bottom: 32px; }

@media (max-width: 900px) {
  .about-grid,
  .about-grid.about-grid--single { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-left { display: contents; }          /* lets the three boxes be re-ordered */
  .about-photo { order: 1; }
  .about-intro { order: 2; padding: 22px 20px 10px; }
  .about-left .about-slider { order: 3; }
}

/* ===== Our team ===== */
.team-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team-card {
  background: #fff; border: 1px solid var(--card-line);
  border-radius: 20px; padding: 30px 24px 26px; text-align: center;
  box-shadow: 0 6px 24px rgba(11, 18, 48, .06);
}
.team-card__photo {
  width: 128px; height: 128px; margin: 0 auto 18px; display: block;
  border-radius: 50%; object-fit: cover; object-position: center top;
  border: 4px solid #E4E9F7;
}
.team-card__photo--empty {
  display: flex; align-items: center; justify-content: center;
  background: #E4E9F7; color: var(--blue); font-size: 48px;
}
.team-card h3 { color: var(--ink); font-size: 20px; margin-bottom: 4px; }
.team-card__role { color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.team-card__intro { color: var(--ink-muted); font-size: 15px; line-height: 1.65; margin-bottom: 0; }
.team-card__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  background: #E4E9F7; color: var(--blue); font-size: 14px; font-weight: 600;
  transition: background .2s, color .2s;
}
.team-card__link:hover { background: var(--blue); color: #fff; opacity: 1; }
.team-card__link i { font-size: 18px; }


.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.instrument-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}
.instrument-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.instrument-card__body { padding: 16px; }
.instrument-card__cat {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 4px;
}
.instrument-card h3 { margin: 0 0 6px; }
.instrument-card p:last-child { margin-bottom: 0; }

/* ===== District label on the project map ===== */

/* ===== District label on the project maps ===== */
.leaflet-tooltip.district-tooltip {
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  opacity: 1 !important;
  font-family: var(--sans);
  white-space: normal;
  box-shadow: 0 10px 28px rgba(11, 18, 48, .35);
}
.district-tip { min-width: 150px; padding: 12px 16px 13px; }
.district-tip__label {
  display: block; margin-bottom: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.district-tip__name { display: block; font: 700 18px/1.2 var(--serif); }
.district-tip__count {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.district-tip__count b { font: 700 22px/1 var(--serif); color: #fff; }

/* the little arrow under the card should match its colour */
.leaflet-tooltip.district-tooltip.leaflet-tooltip-top::before { border-top-color: var(--navy); }
.leaflet-tooltip.district-tooltip.leaflet-tooltip-bottom::before { border-bottom-color: var(--navy); }
.leaflet-tooltip.district-tooltip.leaflet-tooltip-left::before { border-left-color: var(--navy); }
.leaflet-tooltip.district-tooltip.leaflet-tooltip-right::before { border-right-color: var(--navy); }

/* ===== Accessibility: skip link, and the hidden spam-trap field of the contact form ===== */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: #fff; color: var(--ink); }
.skip-link:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; }

/* ===== Pagination on the projects page ===== */
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; color: var(--ink-muted); }
.pager a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ===== Project detail page ===== */
.project-meta { margin: 6px 0 28px; }
.project-meta a { color: var(--blue); text-decoration: none; }
.project-body { display: grid; gap: 28px; margin-bottom: 36px; }
@media (min-width: 900px) { .project-body:has(.project-photo):has(.project-text) { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.project-photo { width: 100%; border-radius: 12px; object-fit: cover; }
.project-text { color: var(--ink-muted); font-size: 17px; }
.map--project { height: 360px; border-radius: 12px; }
.project-related-title { margin: 48px 0 20px; }
