:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;

  --accent:#0054a3;
  --sidebars:#1a2c3f;
  --header:#32557c;

  --border:rgba(15,23,42,0.14);
  --shadow:0 10px 26px rgba(15,23,42,0.08);
  --radius:14px;

  --headerOffset: 92px;
}

*{box-sizing:border-box;}

html{
  background: var(--header);
  scroll-behavior:smooth;
  scroll-padding-top: var(--headerOffset);
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
}

/* Side framing */
body::before,
body::after{
  content:"";
  position:fixed;
  top:0;
  bottom:0;
  background: var(--sidebars);
  z-index:0;
  width: clamp(10px, calc(((100vw - min(1100px, 92vw)) / 2) - 48px), 70px);
}
body::before{ left:0; }
body::after{ right:0; }

main, header, footer{ position:relative; z-index:1; }
.container{width:min(1100px,92%);margin:0 auto;}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:var(--header);
  border-bottom:1px solid rgba(255,255,255,0.18);
}

.header-row{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.brand-link{
  text-decoration:none;
  color:inherit;
}
.brand-link:hover{ opacity:0.95; }

.brand-logo{ width:72px; height:72px; object-fit:contain; }

.brand-logo-fallback{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.25);
  color:#ffffff;
  font-weight:700;
  letter-spacing:0.02em;
}

.brand-text{min-width:0;}
.brand-kicker{ font-size:12px; color:rgba(255,255,255,0.85); }
.brand-title{ margin:2px 0 0; font-size:18px; line-height:1.2; color:#ffffff; }
.brand-subtitle{
  margin-top:2px;
  font-size:13px;
  color:rgba(255,255,255,0.85);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:620px;
}

/* Desktop nav */
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav a{
  color:#ffffff;
  text-decoration:none;
  font-size:13px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background: transparent;
}
.nav a:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

/* Hamburger hidden by default */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  cursor:pointer;
  padding:0;
  box-shadow:none;
  outline:none;
}
.nav-toggle:hover{ background: rgba(255,255,255,0.14); }
.nav-toggle:focus-visible{
  outline:2px solid rgba(255,255,255,0.55);
  outline-offset:2px;
}
.nav-toggle-bar{
  width:18px;
  height:2px;
  background:#ffffff;
  border-radius:2px;
  display:block;
}

/* Mobile header and nav */
@media (max-width: 860px){
  .header-row{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap:10px 12px;
    align-items:center;
  }

  .brand{ grid-area: brand; min-width:0; }

  .nav-toggle{
    grid-area: toggle;
    justify-self:end;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
  }

  .brand-title{ font-size:16px; }
  .brand-subtitle{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    line-height: 1.25;
  }

  .nav{
    grid-area: nav;
    width:100%;
    display:none;
    flex-direction:column;
    gap:6px;
    padding-top:10px;
  }
  .nav.is-open{ display:flex; }

  .nav a{
    width:100%;
    padding:10px 12px;
    background: rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.20);
  }
  .nav a:hover{ background: rgba(255,255,255,0.18); }
}

/* ===== New Combined Layout: info left, video right (bottoms align) ===== */
.project-layout{
  padding:18px 0 10px;
}

.layout-flex{
  display:flex;
  align-items:stretch; /* equal-height columns */
  gap:16px;
}

/* Left column */
.layout-info{
  flex: 1 1 60%;
  min-width:0;
  display:flex;
  flex-direction:column;
}

/* Right column */
.layout-video{
  flex: 0 0 40%;
  max-width:40%;
  min-width: 280px;

  display:flex;
  flex-direction:column;
  align-self:stretch; /* ensure it participates in stretch */
}

/* Video frame fills the column height */
.video-frame{
  /* IMPORTANT: remove default browser figure margins (this was breaking bottom alignment) */
  margin:0;

  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow: var(--shadow);

  flex:1;
  display:flex;
  flex-direction:column;

  height:100%;
  min-height:0;
}

/* Still fills available height; caption stays at the bottom */
.hero-still{
  width:100%;
  height:100%;
  flex:1;
  display:block;
  object-fit:cover;
}

.video-caption{
  margin-top:auto;
  padding:8px 12px;
  font-size:12px;
  color:var(--muted);
  background:var(--card);
  border-top:1px solid var(--border);
}

/* (kept: video-related classes in case you switch back to MP4 hero later) */
.hero-video{
  width:100%;
  flex:1;
  height:100%;
  display:block;
  object-fit:cover;
  opacity:0;
  transition: opacity 350ms ease;
}
.hero-video.is-ready{opacity:1;}

.hero-poster{
  display:none;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  object-fit:cover;
}
.video-frame.show-poster .hero-poster{ display:block; }
.video-frame.show-poster .hero-video{ display:none; }

@media (max-width: 600px) {
  .hero-poster { display: none !important; }
}
.video-play{
  display:none;
  position:absolute;
  left:12px;
  right:12px;
  bottom:52px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.18);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-weight:600;
  cursor:pointer;
  box-shadow: var(--shadow);
}
@media (max-width: 600px){
  .hero-poster{ display:block; }
}

/* Typography + content blocks */
.hero-title{ margin:0 0 6px; font-size:26px; letter-spacing:-0.02em; }
.hero-lead{ margin:0 0 14px; color:var(--muted); max-width:75ch; }

.overview-lead{
  font-size:15px;
  font-weight:600;
  margin:0 0 10px;
}

.facts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}
.fact{
  padding:12px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.fact-label{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.fact-value{ font-size:14px; }

.hero-panel{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
  padding:16px;
  margin-top:16px;
}
.panel-title{font-weight:700;margin-bottom:10px;}
.panel-list{ margin:0; padding-left:18px; color:var(--muted); }
.panel-list li{ margin:6px 0; }

/* Sections */
.section{padding:22px 0;}
.section h3{ margin:0 0 12px; font-size:18px; }

.section, .project-layout{ scroll-margin-top: var(--headerOffset); }

/* Cards and grids */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.grid-1{ display:grid; grid-template-columns:1fr; gap:12px; }

.card{
  padding:16px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card-title{margin:0 0 10px;font-size:14px;}

.section-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.filters{ display:flex; gap:10px; align-items:center; }

input[type="search"], select, input[type="text"], input[type="email"]{
  background:#ffffff;
  border:1px solid var(--border);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  font-size:13px;
  width:100%;
}
input[type="search"]{max-width:260px;}
select{max-width:200px;}
input::placeholder{color:rgba(71,85,105,0.8);}

/* Updates */
.updates-list{display:grid;gap:12px;}
.update{
  padding:14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:var(--shadow);
}
.update-head{
  display:flex;
  gap:12px;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
}
.update-title{margin:0;font-size:15px;}
.update-meta{
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(0,84,163,0.25);
  background:rgba(0,84,163,0.08);
  color:var(--accent);
}
.update p{margin:10px 0 0;color:var(--muted);}
.update a{color:var(--accent);text-decoration:none;}
.update a:hover{text-decoration:underline;}

.link-list{margin:0;padding-left:18px;}
.link-list li{margin:8px 0;}

/* Form */
.form{margin-top:12px;display:grid;gap:12px;}
.field{display:grid;gap:6px;}
.field span{font-size:12px;color:var(--muted);}

.btn{
  border:1px solid rgba(0,84,163,0.25);
  background:var(--accent);
  color:#ffffff;
  padding:10px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  width:max-content;
}
.btn:hover{filter:brightness(0.95);}

.check-list{margin:0;padding-left:18px;color:var(--muted);}
.check-list li{margin:8px 0;}

.note{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(15,23,42,0.03);
  color:var(--muted);
  font-size:13px;
}

.success{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(2,132,199,0.30);
  background:rgba(2,132,199,0.08);
  color:var(--text);
  font-size:13px;
}

.hidden{display:none;}
.muted{color:var(--muted);}
.tiny{font-size:12px;}

.link{color:var(--accent);text-decoration:none;}
.link:hover{text-decoration:underline;}

.disclaimer{ margin-top:14px; color:var(--muted); font-size:12px; }

/* Map */
.leaflet-map{
  width:100%;
  height:360px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
}

.project-benefits{
  padding: 36px 0 18px;
}

.benefits-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.benefit-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 18px;
}

/* Vertical separator line between benefits */
.benefit-item + .benefit-item{
  border-left: 1px solid var(--border);
}

.benefit-icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.benefit-text{
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

/* Responsive behavior */
@media (max-width: 860px){
  .benefits-grid{
    grid-template-columns: 1fr 1fr;
  }

  .benefit-item + .benefit-item{
    border-left: none;
  }
  .benefit-item{
    padding: 14px 18px;
  }
  .benefit-item:nth-child(n+3){
    border-top: 1px solid var(--border);
  }
  .benefit-item:nth-child(2){
    border-left: 1px solid var(--border);
  }
  .benefit-item:nth-child(4){
    border-left: 1px solid var(--border);
  }
}

@media (max-width: 480px){
  .benefits-grid{
    grid-template-columns: 1fr;
  }

  .benefit-item:nth-child(2),
  .benefit-item:nth-child(4){
    border-left: none;
  }

  .benefit-item + .benefit-item{
    border-top: 1px solid var(--border);
  }
}

/* Responsive */
@media (max-width: 900px){
  .layout-flex{ flex-direction:column; }
  .layout-video{
    max-width:100%;
    flex: 0 0 auto;
    min-width: 0;
  }
  .facts{ grid-template-columns:1fr; }
}

@media (max-width:860px){
  .grid-2{grid-template-columns:1fr;}
  input[type="search"], select{max-width:none;}
  .leaflet-map{height:300px;}
}

/* Footer */
.site-footer{
  background: var(--header);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding:16px 0 22px;
  color: rgba(255,255,255,0.85);
  font-size:12px;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-muted{ color: rgba(255,255,255,0.75); }
