:root{
  /* Brand palette (aligned to new logo) */
  --ink:#0B1B3A;
  --gold:#2A79D8;     /* repurposed to brand blue */
  --slate:#95A3B8;
  --paper:#F6F8FC;

  --forest:#0E2A5C;
  --steel:#2E5FA8;
  --sea:#49B7F2;
  --mist:#E7EEF7;

  --bg:#ffffff;
  --card:#ffffff;
  --border:rgba(11,27,58,.12);
  --shadow:0 10px 30px rgba(11,27,58,.10);
  --radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--bg);
  line-height:1.5;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:20px; top:10px; width:auto; height:auto;
  padding:10px 12px; background:var(--paper); border:1px solid var(--border);
  border-radius:10px; z-index:1000;
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
}
.brand-mark{
  height:42px;
  width:auto;
  display:block;
}

.site-nav{
  display:flex; gap:18px; align-items:center;
  font-weight:800;
  margin-left:auto;
}
.site-nav a{padding:8px 10px; border-radius:10px}
.site-nav a:hover{background:rgba(11,27,58,.05); text-decoration:none}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:transparent;
  border-radius:12px;
  padding:10px 12px;
}
.hamburger{
  display:block;
  width:20px; height:2px;
  background:var(--ink);
  position:relative;
}
.hamburger::before,.hamburger::after{
  content:"";
  position:absolute; left:0;
  width:20px; height:2px;
  background:var(--ink);
}
.hamburger::before{top:-6px}
.hamburger::after{top:6px}

/* Hero */
.hero{
  padding:70px 0 40px;
  background:linear-gradient(180deg, rgba(231,238,247,.9), rgba(246,248,252,.4));
  border-bottom:1px solid var(--border);
}
.hero-inner{ text-align:center; }
.hero h1{
  margin:0 0 12px;
  font-size:clamp(34px, 4vw, 54px);
  letter-spacing:-.02em;
}
.hero-logo{
  width:min(480px, 70vw);
  max-width:640px;
  margin:0 auto 20px;
  display:block;
}
.lede{
  margin:0 auto 18px;
  max-width:70ch;
  font-size:clamp(16px, 1.6vw, 20px);
  color:rgba(11,27,58,.88);
}

.hero-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:18px 0 24px}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
  margin-top:10px;
}
.metric{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 12px;
  box-shadow:0 6px 20px rgba(11,27,58,.08);
}
.metric-value{font-size:26px; font-weight:900}
.metric-label{color:rgba(11,27,58,.78); font-size:14px}

/* Sections */
.section{padding:64px 0}
.section-alt{background:rgba(231,238,247,.55); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
.section h2{margin:0 0 14px; font-size:28px}
.fullwidth{max-width:none}

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

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px 18px;
  box-shadow:var(--shadow);
}
.card h3{margin:0 0 10px}
.muted{color:rgba(11,27,58,.74)}
.note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  border:1px dashed rgba(11,27,58,.25);
  background:rgba(246,248,252,.8);
}

.bullets{margin:10px 0 0; padding-left:18px}
.bullets li{margin:6px 0}

/* Media cards (compact grid) */
.media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}
.media figcaption{margin-top:10px; font-size:13px}

/* Technical table styles (kept from your site) */
.table-wrap{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:auto;
  background:#fff;
  box-shadow:0 10px 30px rgba(11,27,58,.08);
}
table{width:100%; border-collapse:collapse; min-width:640px}
thead th{
  text-align:left;
  font-size:14px;
  padding:12px 14px;
  background:rgba(231,238,247,.9);
  border-bottom:1px solid var(--border);
  cursor:pointer;
  font-weight:900;
}
tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(11,27,58,.10);
}
tbody tr:hover{background:rgba(246,248,252,.85)}
.num{text-align:center; font-variant-numeric: tabular-nums}
#fieldsTable{border:1px solid var(--border)}
#fieldsTable td, #fieldsTable th{border-right:1px solid rgba(11,27,58,.08)}
#fieldsTable td:last-child, #fieldsTable th:last-child{border-right:none}
.footnote{margin-top:10px; font-size:13px; color:rgba(11,27,58,.72)}

/* Timeline */
.timeline{display:grid; gap:16px; margin-top:12px}
.timeline-item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:14px;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}
.timeline-date{font-weight:900; color:var(--forest)}
.timeline-body p{margin:0 0 10px}
.timeline-body p:last-child{margin-bottom:0}

/* Form */
.form{
  margin-top:14px;
  display:grid;
  gap:14px;
  max-width:720px;
}
label span{display:block; font-weight:800; margin:0 0 6px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  font:inherit;
  background:#fff;
}
textarea{resize:vertical}

.form-actions{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.form-hint{margin:0; font-size:13px; color:rgba(11,27,58,.72)}

/* Buttons */
.button{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  padding:10px 14px;
  border:1px solid var(--ink);
  background:var(--ink);
  color:#fff;
  font-weight:900;
  text-decoration:none;
}
.button:hover{text-decoration:none; filter:brightness(1.02)}
.button-ghost{
  background:transparent;
  color:var(--ink);
  border-color:rgba(11,27,58,.35);
}
.button-ghost:hover{background:rgba(11,27,58,.05)}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:24px 0;
  background:var(--bg);
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.footer-left{display:flex; gap:12px; align-items:center}
.footer-mark{height:42px; width:auto}
.footer-brand{font-weight:900}
.footer-right{display:flex; gap:14px; align-items:center}

/* Accessibility */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.button:focus-visible,
.button-ghost:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible{
  outline:3px solid rgba(42,121,216,.45);
  outline-offset:2px;
}

/* Responsive */
@media (max-width: 820px){
  .grid.two{grid-template-columns:1fr}
  .hero-metrics{grid-template-columns:1fr}
  .timeline-item{grid-template-columns:1fr}
  .site-nav{
    position:absolute;
    right:20px;
    top:68px;
    flex-direction:column;
    align-items:stretch;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:10px;
    box-shadow:var(--shadow);
    display:none;
    min-width:200px;
  }
  .site-nav.open{display:flex}
  .nav-toggle{display:inline-flex}
}

/* ======= Full-size image stack (one per line) ======= */
.stack-title{ margin:22px 0 10px; }
.image-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:10px;
}
.image-stack .media img{
  width:100%;
  height:auto;
  display:block;
}
.zoomable{ cursor: zoom-in; }

/* ======= Modal (mobile-friendly) ======= */
.modal[hidden]{ display:none; }
.modal{
  position:fixed;
  inset:0;
  z-index:9999;
}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
}
.modal-dialog{
  position:relative;
  margin:0 auto;
  width:min(1100px, calc(100% - 24px));
  max-height:calc(100vh - 24px);
  top:12px;
  border-radius:16px;
  overflow:hidden;
}
.modal-dialog img{
  width:100%;
  height:auto;
  max-height:calc(100vh - 24px);
  object-fit:contain;
  display:block;
  background:#0b0b0b;
  cursor: zoom-out;
}
.modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.modal-close:focus-visible{
  outline:3px solid rgba(255,255,255,.65);
  outline-offset:2px;
}
