:root{
  --bg:#0b0c10;
  --bg2:#0f1118;
  --text:#f3f4f6;
  --muted:rgba(243,244,246,.72);
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --accent:#7c5cff;
  --accent2:#ffd166;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:22px;
  --max:1120px;
}

html[data-theme="light"]{
  --bg:#fbfbfd;
  --bg2:#f2f4f8;
  --text:#0b0c10;
  --muted:rgba(11,12,16,.72);
  --card:rgba(0,0,0,.04);
  --border:rgba(0,0,0,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.12);
}

*{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(1200px 800px at 15% 10%, rgba(124,92,255,.25), transparent 55%),
              radial-gradient(1000px 700px at 85% 15%, rgba(255,209,102,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:24px}
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15));
  border-bottom:1px solid var(--border);
}
html[data-theme="light"] header{
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.60));
}

.nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.logo{
  width:40px; height:40px; border-radius:14px;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.9), rgba(124,92,255,.1)),
              radial-gradient(circle at 70% 70%, rgba(255,209,102,.85), rgba(255,209,102,.05));
  box-shadow: var(--shadow);
  border:1px solid var(--border);
}
.brand .title{
  font-weight:760;
  letter-spacing:.2px;
  line-height:1.1;
}
.brand .sub{
  font-size:12px;
  color:var(--muted);
}

.navlinks{
  display:flex; gap:14px; align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.navlinks a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  transition:all .2s ease;
}
.navlinks a:hover{ color:var(--text); border-color:var(--border); background:rgba(255,255,255,.04); }

.controls{
  display:flex; gap:10px; align-items:center;
}
select,button{
  font:inherit;
}
select{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
}
html[data-theme="light"] select{ background:rgba(0,0,0,.03); }

.btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); background:rgba(255,255,255,.08); }
.btn.primary{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(124,92,255,.35));
}
.btn.primary:hover{ background: linear-gradient(135deg, rgba(124,92,255,1), rgba(124,92,255,.45)); }

.hero{
  padding:56px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:24px;
  align-items:stretch;
}
@media (max-width: 920px){
  .hero-grid{ grid-template-columns:1fr; }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card{ padding:28px; position:relative;}
.kicker{ color:var(--muted); font-size:13px; letter-spacing:.08em; text-transform:uppercase;}
h1{ margin:10px 0 10px; font-size:44px; line-height:1.05; letter-spacing:-.02em;}
@media (max-width: 520px){ h1{ font-size:36px; } }
.lead{ color:var(--muted); font-size:16px; line-height:1.6; max-width:62ch;}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;}
.badge{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background:rgba(255,255,255,.03);
  font-size:13px;
}

.hero-media{
  position:relative;
  min-height:320px;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.1) contrast(1.02);
}
.hero-media .overlay{
  position:absolute; inset:0;
  background: radial-gradient(800px 420px at 30% 20%, rgba(124,92,255,.28), transparent 55%),
              radial-gradient(700px 420px at 80% 75%, rgba(255,209,102,.22), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65));
}
.hero-media .caption{
  position:absolute; left:18px; right:18px; bottom:16px;
  color:rgba(255,255,255,.92);
  font-weight:650;
  text-shadow:0 6px 24px rgba(0,0,0,.55);
  display:flex; justify-content:space-between; gap:10px; align-items:flex-end;
}
.hero-media .caption span{
  font-size:12px; font-weight:600; color:rgba(255,255,255,.78);
}
section{ padding:22px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin-bottom:12px;
}
.section-head h2{
  margin:0;
  font-size:24px;
}
.section-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.prose{ padding:22px 22px; }
.prose h2{ margin-top:18px; }
.prose p{ color:var(--muted); line-height:1.78; font-size:15px; }
.prose strong{ color:var(--text); }
.prose a{ color: var(--text); text-decoration-thickness:2px; text-underline-offset:3px; }
html[data-theme="light"] .hero-media .caption{ color:rgba(255,255,255,.96); }

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  padding:14px;
}
@media (max-width: 980px){ .gallery{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 640px){ .gallery{ grid-template-columns: repeat(2,1fr);} }
.gitem{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  cursor:pointer;
}
.gitem img{ width:100%; height:220px; object-fit:cover; display:block; transition: transform .25s ease;}
.gitem:hover img{ transform: scale(1.04); }
.gitem .gcap{
  position:absolute; inset:auto 10px 10px 10px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(0,0,0,.45);
  color:rgba(255,255,255,.92);
  font-size:12px;
  backdrop-filter: blur(10px);
}

.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:100;
}
.modal.open{ display:flex; }
.modal .mcard{
  max-width:min(980px, 96vw);
  max-height:88vh;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  background:rgba(16,18,26,.9);
}
.modal img{ width:100%; height:auto; max-height:72vh; object-fit:contain; display:block; background:#000; }
.modal .mbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px;
  color:rgba(255,255,255,.92);
}
.modal .mbar .hint{ color:rgba(255,255,255,.72); font-size:12px; }
.modal .mbar .actions{ display:flex; gap:8px; }
.iconbtn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  cursor:pointer;
}
.iconbtn:hover{ background:rgba(255,255,255,.10); }

footer{
  padding:30px 0 42px;
  color:var(--muted);
  font-size:12px;
}
.sep{ height:1px; background:var(--border); margin:18px 0; }

.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{ opacity:1; transform:none; }