:root {
  --ink: #102234;
  --ink-soft: #304962;
  --paper: #f7f5ef;
  --paper-2: #efede6;
  --line: rgba(16,34,52,.16);
  --deep: #0d2339;
  --deep-2: #081b2e;
  --white: #fffef9;
  --warm: #d8c8aa;
  --shadow: 0 18px 50px rgba(12,26,40,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.page-shell { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }
.section-pad { padding: 82px 0; }
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
}
h1,h2,h3,.brand,.footer-brand,.stat strong,.programme-card span {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
h2 { margin: 0; font-size: clamp(38px, 4.1vw, 58px); line-height: 1.02; letter-spacing: -.035em; }

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  top: 0;
  left: 0;
  border-bottom: 1px solid rgba(16,34,52,.08);
  background: rgba(247,245,239,.90);
  backdrop-filter: blur(12px);
}
.nav-shell {
  width: min(1180px, calc(100% - 56px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  text-decoration: none;
  font-size: 22px;
  line-height: .9;
  letter-spacing: -.02em;
}
.main-nav { display: flex; justify-content: center; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  padding: 27px 0 24px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus, .main-nav .active { border-color: var(--ink); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 22px;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  transition: .2s ease;
}
.nav-cta { color: var(--white); background: var(--deep); min-height: 42px; padding: 0 18px; }
.nav-cta:hover, .button-dark:hover { background: #16314c; }
.menu-toggle { display: none; background: none; color: var(--ink); border: 0; padding: 12px; }

.hero {
  min-height: 570px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: url('https://www.belfastinterfaceproject.org/sites/default/files/styles/flexslider_full/public/slides/slide04.png?itok=DeAaWiKs') center center / cover no-repeat;
  color: var(--white);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,12,21,.88) 0%, rgba(4,14,25,.70) 40%, rgba(4,14,25,.13) 75%, rgba(4,14,25,.06) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 62px; }
.hero-eyebrow { color: rgba(255,255,255,.9); }
.hero h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(50px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-copy { max-width: 600px; margin: 0 0 28px; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.45; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #ede9dd; }
.button-outline { color: var(--white); border-color: rgba(255,255,255,.72); }
.button-outline:hover { background: rgba(255,255,255,.1); }
.button-dark { background: var(--deep); color: var(--white); }

.impact { background: #fbfaf6; border-bottom: 1px solid var(--line); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 140px; padding: 28px 38px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: 43px; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.stat span { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.3; padding-top: 6px; }

.map-section { background: linear-gradient(#f1efe9, #f6f4ef); }
.map-heading { display: grid; grid-template-columns: 1fr auto; gap: 38px; align-items: end; margin-bottom: 28px; }
.map-heading > div { max-width: 820px; }
.map-heading h2 { max-width: 850px; }
.map-heading p:not(.eyebrow) { max-width: 760px; color: var(--ink-soft); font-family: Georgia, 'Times New Roman', serif; font-size: 17px; }
.map-explorer { display: grid; grid-template-columns: 335px 1fr; min-height: 520px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(16,34,52,.08); }
.map-controls { padding: 22px; background: rgba(255,254,249,.98); border-right: 1px solid var(--line); }
.map-controls label { display: block; margin: 12px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.map-controls .search-label { margin-top: 0; }
.map-controls input, .map-controls select {
  width: 100%; min-height: 42px; border: 1px solid #c9c7c0; background: #fff; color: var(--ink); padding: 0 11px; border-radius: 0;
}
.filter-meta { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; font-size: 11px; color: var(--ink-soft); }
.text-button { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; }
.site-results { border-top: 1px solid var(--line); }
.site-result { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 2px; color: var(--ink); cursor: pointer; }
.site-result:hover, .site-result.is-active { background: #f2f0e8; }
.site-result strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 400; }
.site-result span { display: block; font-size: 11px; color: var(--ink-soft); }
.site-result em { font-style: normal; font-size: 18px; padding-right: 4px; }
.no-results { padding: 22px 4px; color: var(--ink-soft); font-family: Georgia, 'Times New Roman', serif; }
.map-visual { position: relative; min-height: 520px; background: #1b2836; overflow: hidden; }
.map-visual::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 50px rgba(4,14,25,.15); pointer-events:none; }
.map-visual img, .map-visual .live-map { width: 100%; height: 100%; min-height: 520px; border: 0; display:block; object-fit: cover; filter: saturate(.82) contrast(.97); }
.map-detail { position: absolute; left: 26px; top: 26px; z-index: 2; width: min(290px, calc(100% - 52px)); background: rgba(255,254,249,.95); box-shadow: 0 12px 38px rgba(4,14,25,.18); padding: 20px; }
.map-detail .detail-kicker { margin: 0 0 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.map-detail h3 { margin: 0 0 4px; font-size: 25px; line-height: 1.05; }
.map-detail p { margin: 0 0 12px; font-size: 12px; color: var(--ink-soft); }
.map-detail a { font-size: 12px; font-weight: 700; }
.map-note { margin: 14px 0 0; font-size: 11px; color: #4f6c89; }

.shared-intro { display: grid; grid-template-columns: 1fr 1.06fr; background: var(--paper); }
.shared-image { min-height: 355px; background: url('https://www.belfastinterfaceproject.org/sites/default/files/styles/flexslider_full/public/slides/slide02.png?itok=oTElBaEM') center / cover no-repeat; }
.shared-copy { display: flex; align-items: center; }
.copy-inner { max-width: 650px; padding: 60px 68px; }
.copy-inner h2 { font-size: clamp(36px, 4vw, 54px); }
.copy-inner > p:not(.eyebrow) { font-family: Georgia, 'Times New Roman', serif; color: var(--ink-soft); font-size: 17px; margin: 20px 0 26px; }

.programme-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.programme-card { min-height: 265px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 34px; color: var(--white); text-decoration: none; background-size: cover; background-position: center; overflow: hidden; border-right: 2px solid var(--paper); }
.programme-card:last-child { border-right: 0; }
.programme-card::before { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(4,14,25,.86), rgba(4,14,25,.04) 68%); }
.programme-card > * { position: relative; z-index: 1; }
.programme-card span { font-size: 31px; line-height: 1; }
.programme-card small { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.3; margin-top: 7px; max-width: 280px; }
.card-one { background-image: url('https://www.belfastinterfaceproject.org/sites/default/files/styles/flexslider_full/public/slides/slide05.png?itok=IPgR6BlQ'); }
.card-two { background-image: url('https://www.belfastinterfaceproject.org/sites/default/files/styles/flexslider_full/public/slides/slide01.png?itok=FiKsc5Ob'); }
.card-three { background-image: url('https://www.belfastinterfaceproject.org/sites/default/files/styles/flexslider_full/public/slides/slide03.png?itok=AQkD4cqR'); }
.programme-card:hover::before { background: linear-gradient(0deg, rgba(4,14,25,.90), rgba(4,14,25,.15) 68%); }

.news { background: #fbfaf6; }
.news-title-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.news-title-row h2 { font-size: clamp(38px, 4vw, 54px); }
.text-link { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card { border-top: 1px solid var(--line); padding-top: 12px; }
.news-card img { width: 100%; aspect-ratio: 2.15/1; object-fit: cover; margin-bottom: 15px; }
.news-type { margin: 0 0 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--ink-soft); }
.news-card h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.05; }
.news-card a { font-size: 12px; font-weight: 700; }

.site-footer { background: var(--deep-2); color: #edf0eb; padding: 46px 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1.1fr .8fr; gap: 40px; align-items: start; }
.footer-brand { font-size: 26px; line-height: .9; }
.site-footer p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; color: rgba(255,255,255,.76); }
.site-footer strong { display: block; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: inherit; }

@media (max-width: 1050px) {
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 12px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:first-child { padding-left: 38px; }
  .map-explorer { grid-template-columns: 300px 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .page-shell, .nav-shell { width: min(100% - 34px, 1180px); }
  .site-header { position: relative; }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 72px; }
  .brand { font-size: 20px; }
  .menu-toggle { display: block; justify-self: end; }
  .nav-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 72px; left: 17px; right: 17px; background: #f7f5ef; border-top: 1px solid var(--line); padding: 10px 18px 20px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 610px; background-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,12,21,.88), rgba(4,14,25,.55)); }
  .hero h1 { font-size: clamp(46px, 12vw, 70px); }
  .map-heading { grid-template-columns: 1fr; align-items: start; }
  .map-heading .button { justify-self: start; }
  .map-explorer { grid-template-columns: 1fr; }
  .map-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-visual { min-height: 410px; }
  .map-visual .live-map { min-height:410px; }
  .shared-intro { grid-template-columns: 1fr; }
  .shared-image { min-height: 330px; }
  .copy-inner { padding: 48px 28px 58px; }
  .programme-strip { grid-template-columns: 1fr; }
  .programme-card { min-height: 250px; border-right: 0; border-bottom: 2px solid var(--paper); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section-pad { padding: 60px 0; }
  .hero { min-height: 650px; }
  .hero-content { padding-bottom: 42px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 310px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 118px; padding: 24px 18px; display: block; }
  .stat:first-child { padding-left: 18px; }
  .stat strong { font-size: 34px; display: block; margin-bottom: 7px; white-space: normal; }
  .stat span { font-size: 13px; }
  h2 { font-size: 40px; }
  .map-explorer { box-shadow: none; }
  .map-visual { min-height: 350px; }
  .map-visual .live-map { min-height:350px; }
  .map-detail { left: 16px; right: 16px; top: 16px; width: auto; }
  .news-title-row { display: block; }
  .news-title-row .text-link { display: inline-block; margin-top: 15px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card img { aspect-ratio: 2.3/1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Historical interface cluster explorer */
.map-controls { max-height: 620px; overflow-y: auto; }
.map-visual { min-height: 620px; background: #e9e6dc; }
.cluster-map { position:absolute; inset:0; overflow:hidden; }
.map-base { width:100%; height:100%; position:absolute; inset:0; }
.map-region,.map-river,.map-key { position:absolute; z-index:1; color:#4e6b88; font-size:11px; letter-spacing:.09em; text-transform:uppercase; font-weight:700; pointer-events:none; }
.region-north {left:36%;top:8%}.region-west {left:6%;top:42%}.region-east {right:5%;top:41%}.region-south {left:61%;bottom:5%}
.map-river {right:21%;top:36%;transform:rotate(72deg);color:#6585a6}
.map-key {left:16px;bottom:14px;background:rgba(255,254,249,.92);padding:8px 10px;font-size:10px;letter-spacing:.02em;text-transform:none}
.cluster-marker {position:absolute;z-index:2;transform:translate(-50%,-50%);width:33px;height:33px;border-radius:50%;border:2px solid #fffef9;background:#16314c;color:#fffef9;box-shadow:0 2px 8px #182c4055;cursor:pointer;font-weight:700;font-size:12px}
.cluster-marker:hover,.cluster-marker:focus-visible,.cluster-marker.is-active {background:#ba8057;outline:2px solid #102234;outline-offset:2px}
.map-detail {top:auto;bottom:55px;left:20px;max-height:260px;overflow:auto}
.map-detail h3 {font-size:22px}
.map-note {line-height:1.6}
@media(max-width:860px){.map-controls{max-height:300px}.map-visual{min-height:500px}.map-detail{bottom:52px}}
@media(max-width:600px){.map-visual{min-height:440px}.map-detail{left:12px;right:12px;bottom:42px;padding:13px;max-height:170px}.map-detail h3{font-size:18px}.map-detail p{margin-bottom:6px}.cluster-marker{width:30px;height:30px}.map-region{font-size:9px}}

/* Original BIP barrier marker map */
.map-controls {max-height:650px;overflow-y:auto}
.map-visual {min-height:650px;background:#e9e6dc}
.barrier-map {position:absolute;inset:0;overflow:hidden;touch-action:pan-y;background:#e9e6dc;cursor:grab}
.barrier-map:active {cursor:grabbing}
.map-tiles,.map-markers {position:absolute;inset:0}
.map-tiles img {position:absolute;width:256px;height:256px;max-width:none;filter:saturate(.65) contrast(.95)}
.map-markers {pointer-events:none}
.barrier-marker {position:absolute;transform:translate(-50%,-50%);z-index:1;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#16314c;box-shadow:0 1px 5px #172a3e88;cursor:pointer;pointer-events:auto;padding:0}
.barrier-marker:hover,.barrier-marker:focus-visible,.barrier-marker.is-active {z-index:3;width:23px;height:23px;background:#ae6b45;outline:2px solid #102234;outline-offset:2px}
.map-zoom {position:absolute;right:14px;top:14px;z-index:4;display:grid;box-shadow:0 2px 8px #0002}
.map-zoom button {width:37px;height:37px;border:1px solid #c7cbc8;background:#fffef9;color:#102234;cursor:pointer;font-size:25px;line-height:1}
.map-zoom button+button {border-top:0}
.map-attribution {position:absolute;right:0;bottom:0;z-index:4;background:#ffffffcf;padding:2px 6px;color:#223344;font-size:10px}
.map-detail {top:auto;bottom:42px;left:18px;max-height:240px;overflow:auto}
.map-detail h3 {font-size:23px}
.map-note {line-height:1.6}
@media(max-width:860px){.map-controls{max-height:310px}.map-visual{min-height:520px}.map-detail{bottom:32px}}
@media(max-width:600px){.map-visual{min-height:460px}.map-detail{left:12px;right:12px;bottom:35px;padding:13px;max-height:160px}.map-detail h3{font-size:19px}.barrier-marker{width:16px;height:16px}}

.map-tiles img {min-height:0;object-fit:fill}

.map-heading {grid-template-columns:1fr}
.map-detail[hidden] {display:none}
.map-detail {z-index:5;top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:min(370px,calc(100% - 32px));max-height:min(560px,calc(100% - 32px));padding:0;background:#fffef9;overflow:auto;box-shadow:0 22px 68px #10223466}
.map-detail .detail-photo {height:170px;position:relative;background:#d9d9d2}
.map-detail .detail-photo img {width:100%;height:100%;min-height:0;object-fit:cover;filter:none}
.map-detail .detail-photo span {position:absolute;right:8px;bottom:7px;background:#102234dd;color:#fff;font-size:10px;padding:3px 6px}
.detail-close {position:absolute;right:10px;top:10px;z-index:2;width:33px;height:33px;border:0;background:#fffef9;color:#102234;font-size:26px;line-height:1;cursor:pointer}
.detail-body {padding:19px 22px 20px}
.detail-body h3 {font-size:27px;line-height:1.06;margin-bottom:7px}
.detail-body .detail-cluster {font-size:12px;margin-bottom:14px}
.detail-facts {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 13px;padding:12px 0;border-top:1px solid #d9d7cf;border-bottom:1px solid #d9d7cf}
.detail-facts dt {font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#4a6682;font-weight:700}
.detail-facts dd {margin:3px 0 0;font-family:Georgia,serif;font-size:15px;line-height:1.25}
.detail-body .detail-description {font-family:Georgia,serif;font-size:15px;line-height:1.42;color:#223345;margin:0 0 13px}
.detail-body .detail-history {font-size:11px;margin:0;color:#4f6c89}
@media(max-width:600px){.map-detail{top:auto;bottom:12px;left:12px;right:12px;transform:none;width:auto;max-height:calc(100% - 24px)}.map-detail .detail-photo{height:125px}.detail-body{padding:12px 15px 14px}.detail-body h3{font-size:21px}.detail-facts{padding:8px 0;margin-bottom:8px}.detail-body .detail-description{font-size:13px}.detail-body .detail-history{font-size:10px}}

/* Keep the complete historical description readable within the map. */
.map-detail {display:flex;flex-direction:column;overflow:hidden;max-height:calc(100% - 32px)}
.map-detail .detail-photo {flex:none}
.map-detail .detail-body {min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#6f8dac #f0eee7}
.map-detail .detail-body::-webkit-scrollbar {width:8px}
.map-detail .detail-body::-webkit-scrollbar-thumb {background:#6f8dac;border-radius:8px}
.map-detail .detail-description {overflow-wrap:anywhere}
@media(max-width:600px){.map-detail{max-height:calc(100% - 24px)}}

/* Supplied logo, presented as a quiet editorial masthead plaque. */
.nav-shell {grid-template-columns:280px minmax(0,1fr);gap:32px;min-height:124px}
.brand {
  display:block;
  width:280px;
  padding:7px;
  line-height:0;
  background:var(--white);
  border:1px solid rgba(16,34,52,.17);
  box-shadow:0 5px 18px rgba(16,34,52,.07);
  transition:box-shadow .2s ease,transform .2s ease;
}
.brand:hover,.brand:focus-visible {box-shadow:0 8px 24px rgba(16,34,52,.15);transform:translateY(-1px)}
.brand:focus-visible {outline:2px solid var(--deep);outline-offset:3px}
.brand img {display:block;width:100%;height:auto}
.main-nav {justify-content:center;gap:clamp(21px,2.25vw,35px)}
.main-nav a {
  font-family:Georgia,'Times New Roman',serif;
  font-size:21px;
  letter-spacing:-.02em;
  line-height:1.2;
  padding:15px 0 14px;
  border-bottom-width:1px;
  transition:color .18s ease,border-color .18s ease;
}
.main-nav a:hover,.main-nav a:focus-visible {color:#36587a}
@media(max-width:1200px){.main-nav a{font-size:18px}.main-nav{gap:18px}}
@media(max-width:980px){
  .nav-shell{grid-template-columns:1fr auto;min-height:102px}
  .brand{width:235px}
  .menu-toggle{display:block;justify-self:end}
  .nav-cta{display:none}
  .main-nav{display:none;position:absolute;top:102px;left:28px;right:28px;background:#f7f5ef;border-top:1px solid var(--line);padding:10px 18px 20px;box-shadow:var(--shadow)}
  .main-nav.is-open{display:grid;gap:0}
  .main-nav a{padding:12px 0;border-bottom:1px solid var(--line)}
}
@media(max-width:860px){.main-nav{top:90px;left:17px;right:17px}.nav-shell{min-height:90px}.brand{width:210px;padding:5px}}
@media(max-width:600px){.nav-shell{min-height:84px}.main-nav{top:84px}.brand{width:195px;padding:5px}}
