:root{
  --bg:#0f1115;
  --bg2:#141821;
  --panel:#171b2399;
  --border:#252a35;

  --text:#e8eaed;
  --muted:#9aa4b2;

  --accent:#00ffcc;
  --accent2:#9fd3ff;

  --shadow:0 18px 50px rgba(0,0,0,.25);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,var(--bg2),var(--bg));
  color:var(--text);
}

a{
  color:var(--accent2);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

code{
  background:#0d1016;
  padding:.15rem .35rem;
  border-radius:4px;
}

.wrap{
  width:min(1120px,94vw);
  margin:0 auto;
}

.bg-canvas-wrap{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.32;
}

.bg-canvas-wrap canvas{
  width:100%;
  height:100%;
  display:block;
}

.hero{
  padding:3.5rem 0 1.5rem;
}

.hero-inner{
  display:grid;
  grid-template-columns:1.5fr .9fr;
  gap:1rem;
  align-items:start;
}

h1{
  margin:0 0 .4rem;
  font-size:clamp(2.5rem,6vw,4.5rem);
  line-height:1;
}

.tagline{
  margin:0 0 .8rem;
  color:var(--muted);
  font-size:clamp(1rem,2vw,1.2rem);
}

.lede{
  max-width:65ch;
  margin-bottom:1rem;
}

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem 1rem;
}

.section{
  padding:1.6rem 0 2rem;
}

.section-head{
  margin-bottom:.9rem;
}

.section-head h2{
  margin:0 0 .25rem;
  font-size:1.8rem;
}

.muted{
  color:var(--muted);
}

.cards{
  display:grid;
  gap:1rem;
}

.two-up{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.three-up{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem;
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
}

.card h3{
  margin:.1rem 0 .5rem;
}

.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  margin-top:.7rem;
}

.button{
  display:inline-block;
  padding:.8rem 1rem;
  border-radius:11px;
  border:1px solid var(--accent2);
  color:#081015;
  background:var(--accent2);
  font-weight:700;
}

.button:hover{
  text-decoration:none;
  filter:brightness(1.05);
}

.button.secondary{
  background:#0d1016;
  color:var(--text);
  border-color:var(--border);
}

.hero-controls h2{
  margin:.1rem 0 .4rem;
  font-size:1.1rem;
}

.small-label{
  display:block;
  margin:.7rem 0 .3rem;
}

select{
  width:100%;
  padding:.8rem .9rem;
  border-radius:11px;
  border:1px solid var(--border);
  background:#0d1016;
  color:var(--text);
  font:inherit;
}

.subsection{
  margin:0 0 1.7rem;
}

.subsection h3{
  margin:0 0 .6rem;
}

.image-grid,
.video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}

.audio-list{
  display:grid;
  gap:1rem;
}

.image-card,
.video-card,
.audio-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
}

.image-card img,
.video-card img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  background:#0b0d12;
}

.image-card h4,
.video-card h4,
.audio-card h4{
  margin:.8rem 1rem .2rem;
}

.image-card p,
.video-card p,
.audio-card p{
  margin:0 1rem 1rem;
  color:var(--muted);
}

.audio-card{
  padding:1rem;
}

.audio-card audio{
  width:100%;
}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:none;
  place-items:center;
  padding:1.5rem;
  z-index:1000;
}

.lightbox.active{
  display:grid;
}

.lightbox img{
  max-width:min(1200px,92vw);
  max-height:86vh;
}

.lightbox button{
  position:fixed;
  top:1rem;
  right:1rem;
  font-size:2rem;
  line-height:1;
  background:#171b23;
  color:#fff;
  border:1px solid #333;
  border-radius:10px;
  padding:.3rem .7rem;
  cursor:pointer;
}

.prose p{
  margin:.1rem 0 .9rem;
}

@media (max-width:900px){

.hero-inner{
  grid-template-columns:1fr;
}

.three-up{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

}

@media (max-width:680px){

.bg-canvas-wrap{
  opacity:.18;
}

.hero{
  padding:2.2rem 0 1rem;
}

.wrap{
  width:min(96vw,1120px);
}

.three-up,
.two-up{
  grid-template-columns:1fr;
}

.image-grid,
.video-grid{
  grid-template-columns:1fr;
}

.image-card img,
.video-card img{
  height:200px;
}

.button-row{
  display:grid;
  grid-template-columns:1fr;
}

.button{
  text-align:center;
}

}
