:root{
  --bg: #0a0f1b;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.50);
  --border: rgba(255,255,255,0.14);
  --panel: rgba(255,255,255,0.06);
  --shadow: 0 16px 36px rgba(0,0,0,0.38);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ background: var(--bg); }

body{
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: transparent;
}

/* Background is handled by the animated noise canvas */
body::before{ display: none !important; }

#bgNoise{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body > *:not(#bgNoise){
  position: relative;
  z-index: 1;
}


/* Keep all content above the background canvas */
body > :not(#bgNoise){
  position: relative;
  z-index: 1;
}

a{ color: inherit; }
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  padding: 0.12rem 0.35rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.wrap{ max-width: 900px; margin: 0 auto; padding: 0 18px; }

.bar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10,15,27,0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bar .wrap{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
}


.back{ text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 12px; justify-self: start; }
.back:hover{ color: var(--text); background: rgba(255,255,255,0.06); }

.title{ font-weight: 800; letter-spacing: -0.2px; justify-self: center; }

.hero{ padding: 38px 0 14px; }
.hero h1{ margin: 0 0 10px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.5px; }
.muted{ color: var(--muted); }
.small{ font-size: 0.92rem; }

.tags{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag{ border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); padding: 7px 10px; border-radius: 999px; font-size: 0.92rem; }

.card{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}
.card h2{ margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -0.2px; }

.card-head{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.video-controls{
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 420px;
  justify-content: flex-end;
}

input[type="url"], input[type="text"], input[type="search"], textarea{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
  width: min(520px, 100%);
}
input:focus, textarea:focus{
  border-color: rgba(32,227,178,0.65);
  box-shadow: 0 0 0 4px rgba(32,227,178,0.12);
}

.actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 12px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.24); }
.btn.small{ padding: 8px 10px; border-radius: 12px; justify-self: end; }
.primary{ border-color: rgba(32,227,178,0.55); background: rgba(32,227,178,0.12); }

.video-shell{
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
}
.ph-title{ font-weight: 800; font-size: 1.05rem; letter-spacing: -0.2px; }
.ph-sub{ color: var(--muted); max-width: 60ch; }

.gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 720px){
  .gallery{ grid-template-columns: 1fr; }
  .video-controls{ justify-content: flex-start; }
}

.shot{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  text-decoration: none;
  position: relative;
  min-height: 220px;
}

.shot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.shot-ph{
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}
.shot.missing .shot-ph{ display: grid; }

.prose h3{
  margin: 16px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}
.prose p{ margin: 0 0 10px; color: rgba(255,255,255,0.88); }
.prose ul{ margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.prose li{ margin: 8px 0; }

.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;
}

.foot{ padding: 26px 0 40px; color: var(--muted); }
