/* Hermann Park Case File – static deployable site
   - No build step
   - Mobile-first
*/
:root{
  --bg:#0b1020;
  --panel:#0f1730;
  --panel2:#0c142a;
  --text:#e9eefb;
  --muted:#a8b3d3;
  --line:rgba(255,255,255,.12);
  --accent:#89d2ff;
  --accent2:#ffcc66;
  --danger:#ff6b6b;
  --ok:#35d07f;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1000px 600px at 20% 0%, rgba(137,210,255,.12), transparent 70%),
              radial-gradient(900px 700px at 90% 10%, rgba(255,204,102,.09), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
code{background:rgba(255,255,255,.08); padding:.1rem .35rem; border-radius:8px}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; gap:18px; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background:rgba(11,16,32,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(137,210,255,.22), rgba(255,204,102,.18));
  border:1px solid var(--line);
  font-weight:800;
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:.86rem; color:var(--muted)}

.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.nav a{color:var(--text); opacity:.9}
.nav a:hover{opacity:1}
.pill{
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

.layout{max-width:1200px; margin:0 auto; padding:18px}
.story{display:block}

.hero{
  padding:18px 0 14px;
}
.hero h1{
  margin:12px 0 10px;
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
  letter-spacing:-.3px;
}
.accent{color:var(--accent)}
.lede{max-width:68ch; color:var(--muted); line-height:1.5}

.hero-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.card{
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:12px 14px;
  box-shadow: var(--shadow);
}
.card .k{font-size:.86rem; color:var(--muted)}
.card .v{font-size:1.2rem; font-weight:800; margin-top:6px}
.card .s{font-size:.82rem; color:rgba(233,238,251,.72); margin-top:4px}

.mission{margin:26px 0 12px}
.mission h2{margin:0 0 8px; font-size:1.4rem}
.muted{color:var(--muted); line-height:1.5}

.scrolly{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:start;
}
.scrolly__copy{
  min-width:0;
}
.scrolly__viz{
  position: sticky;
  top:72px;
  height: calc(100vh - 92px);
  min-height:560px;
}
.viz-wrap{
  position:relative;
  height:100%;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
#map{height:100%; width:100%}

.viz-overlay{
  position:absolute;
  left:12px; right:12px;
  bottom:12px;
  display:grid;
  gap:10px;
  pointer-events:none;
}
.viz-kpis{
  display:flex; gap:10px; flex-wrap:wrap;
  pointer-events:none;
}
.kpi{
  background:rgba(11,16,32,.72);
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px 12px;
  min-width: 150px;
  backdrop-filter: blur(8px);
}
.kpi .k{font-size:.78rem; color:var(--muted)}
.kpi .v{font-weight:800; margin-top:2px}

.chart-card{
  pointer-events:auto;
  background:rgba(11,16,32,.80);
  border:1px solid var(--line);
  border-radius: 16px;
  padding:10px 12px 6px;
  backdrop-filter: blur(10px);
}
.chart-title{font-weight:800; margin-bottom:6px}
#chart{height:220px}

.steps{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-bottom: 30px;
}
.step{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.step-inner{padding:14px 14px 12px}
.step-title{font-weight:900; margin-bottom:6px}
.step.is-active{
  outline: 2px solid rgba(137,210,255,.35);
  background: rgba(137,210,255,.07);
}
.receipts{
  margin-top:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.receipts:hover{background: rgba(255,255,255,.06)}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.panel{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.panel h3{margin:0 0 8px}
.scenario{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:12px;
  background: rgba(255,255,255,.02);
  margin:10px 0;
  cursor:pointer;
}
.scenario:hover{background: rgba(255,255,255,.04)}
.scenario-title{font-weight:900}
.scenario-body{color:var(--muted); margin-top:6px; line-height:1.5}

.video-grid{display:grid; grid-template-columns:1fr; gap:10px}
.video{border:1px solid var(--line); border-radius: 14px; padding:10px; background: rgba(255,255,255,.02)}
.video-title{font-weight:900; margin-bottom:6px}
video{width:100%; border-radius: 12px; background:black}
.hint{font-size:.82rem; color:rgba(233,238,251,.72); margin-top:6px}

.form{display:grid; gap:10px}
label{display:grid; gap:6px; font-size:.92rem}
input, select, textarea{
  width:100%;
  padding:10px 10px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.textarea{margin-top:10px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px;
  padding:10px 12px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(137,210,255,.22), rgba(255,204,102,.14));
  color: var(--text);
  cursor:pointer;
  font-weight:800;
}
.btn.secondary{background: rgba(255,255,255,.04); font-weight:800}
.actions{display:flex; gap:10px; margin-top:10px; flex-wrap:wrap}

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

.footer{
  margin:18px 0 28px;
  padding:14px 0;
  border-top:1px solid var(--line);
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}
.footer-title{font-weight:900}
.right{text-align:right}

/* Drawer */
.drawer{
  position: fixed;
  top: 0; right: 0;
  width: min(460px, 96vw);
  height: 100vh;
  background: rgba(15,23,48,.96);
  border-left:1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 80;
}
.drawer.open{transform: translateX(0)}
.drawer-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.drawer-title{font-weight:900}
.drawer-close{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.drawer-body{padding:14px; color: var(--muted); line-height:1.6}
.drawer-body ul{padding-left:18px}

/* Mobile */
@media (max-width: 980px){
  .hero-cards{grid-template-columns: 1fr}
  .scrolly{grid-template-columns: 1fr}
  .scrolly__viz{
    position:relative;
    top:auto;
    height: 520px;
    min-height:520px;
    order:-1;
  }
  .grid-2{grid-template-columns:1fr}
}
