@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;800&family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap");

:root{
  --side-w: 280px;
  --side-gap: 14px;

  --bg: #0b1220;
  --stroke: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --brand1: #6366f1;
  --brand2: #22c55e;
  --brand3: #ec4899;

  --radius: 2px;
  --max: 1320px;

  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
}

*{ box-sizing:border-box }
html,body{ height:100% }

body{
  margin:0;
  overflow-x:hidden;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(99,102,241,.22), transparent 55%),
    radial-gradient(900px 500px at 90% 15%, rgba(236,72,153,.16), transparent 60%),
    radial-gradient(800px 500px at 60% 100%, rgba(34,197,94,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
      background-repeat: no-repeat;
      
}

a{ color:inherit; text-decoration:none }
a:hover{ opacity:.92 }
img{ display:block; max-width:100% }
.no-scroll{ overflow:hidden; }

/* Mobile top bar */
.v12-mtop{
  display:none;
  position: sticky;
  top:0;
  z-index: 90;
  background: rgba(11,18,32,.85);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.v12-mtop__btn{
  width:44px; height:44px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  color: var(--text);
  cursor:pointer;
  font: 900 22px/1 var(--sans);
}
.v12-mtop__name{
  font: 800 16px/1 var(--sans);
  letter-spacing:.02em;
}
.v12-mtop__spacer{
  width:44px; height:44px;
  display:block;
}

/* ✅ Scrim must be BELOW sidebar (so clicks work) */
.v12-mscrim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 60; /* was 70 - caused blocking */
}
.v12-mscrim.is-on{ opacity: 1; pointer-events:auto; }

/* Sidebar */
.v12-side{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  padding: 18px 16px;
  background: rgba(15,26,46,.86);
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  z-index: 70; /* ABOVE scrim so it's clickable */

  display:flex;
  flex-direction:column;
  gap: 10px;
}

.v12-side__brandlink{
  display:flex;
  align-items:center;
  gap: 0px;
}
.v12-side__logo{
 width: 50px;
  height: 50px;
  border-radius: var(--radius);

  object-fit: contain;
}
.v12-side__name{
  font: 900 28px/1 var(--serif);
  letter-spacing:.01em;
}

.v12-side__search{
  display:flex;
  gap: 10px;
  margin: 6px 0 6px;
}
.v12-side__input{
  flex: 1;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 0 10px;
  outline: none;
  font: 700 13px/1 var(--sans);
  min-width: 0;
}
.v12-side__btn{
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(99,102,241,.55);
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(236,72,153,.75));
  color: white;
  padding: 0 12px;
  cursor:pointer;
  font: 900 12px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v12-side__scroll{
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}
.v12-side__group{ margin-top: 14px; }
.v12-side__label{
  font: 900 11px/1 var(--sans);
  letter-spacing:.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.v12-side__nav{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.v12-side__link{
  padding: 10px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 700 13px/1.2 var(--sans);
  color: rgba(255,255,255,.88);
}
.v12-side__link:hover{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.v12-side__foot{
  border-top: 1px solid var(--stroke);
  padding-top: 12px;
}
.v12-side__tiny{
  color: rgba(255,255,255,.60);
  font: 600 12px/1.5 var(--sans);
}

/* Main */
.v12-main{
  margin-left: calc(var(--side-w) + var(--side-gap));
  min-height: 100vh;
  padding: 22px 22px 40px 22px;
}

.v12-shell{
  max-width: var(--max);
  width: 100%;
  margin: 0;
  min-width: 0;
}

/* Hero */
.v12-hero{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.v12-hero__bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position:center;
  filter: blur(18px) saturate(1.15);
  opacity: .20;
  transform: scale(1.1);
}
.v12-hero__inner{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  padding: 14px;
  align-items: start;
}
.v12-hero__content{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15,26,46,.55);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.v12-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font: 900 11px/1 var(--sans);
  letter-spacing:.12em;
  text-transform: uppercase;
}
.v12-hero__title{
  margin: 0;
  font: 800 34px/1.06 var(--serif);
}
.v12-hero__dek{
  margin: 0;
  color: rgba(255,255,255,.82);
  font: 600 15px/1.7 var(--sans);
  max-width: 62ch;
}
.v12-hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 2px;
}
.v12-hero__media{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.v12-hero__media img{
  width:100%;
  height: clamp(240px, 26vw, 360px);
  object-fit: cover;
}

.v12-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  font: 900 12px/1 var(--sans);
  letter-spacing:.06em;
  text-transform: uppercase;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.v12-btn--primary{
  border-color: rgba(99,102,241,.55);
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(236,72,153,.75));
}
.v12-btn--ghost:hover{ background: rgba(255,255,255,.07); }

.v12-divider{
  height: 1px;
  background: var(--stroke);
  margin: 16px 0;
}

/* Sections */
.v12-sec{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 16px;
  margin-bottom: 16px;
}
.v12-sec__head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.v12-sec__title{ margin:0; font: 800 18px/1.2 var(--sans); }
.v12-sec__more{
  color: rgba(255,255,255,.82);
  font: 900 12px/1 var(--sans);
  letter-spacing:.08em;
  text-transform: uppercase;
}
.v12-sec__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.v12-sec__grid--big{ grid-template-columns: repeat(4, 1fr); }
.v12-sec__foot{ margin-top: 12px; }

/* Cards */
.v12-card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15,26,46,.40);
  overflow:hidden;
}
.v12-card__img{
  display:block;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.04);
}
.v12-card__img img{ width:100%; height:100%; object-fit: cover; }
.v12-card__body{ padding: 12px; }
.v12-card__title{ margin: 0 0 8px; font: 800 16px/1.2 var(--sans); }
.v12-card__meta{ color: rgba(255,255,255,.70); font: 700 12px/1.2 var(--sans); }

.v12-ph{
  width:100%;
  height:100%;
  background:
    linear-gradient(135deg, rgba(99,102,241,.18), rgba(236,72,153,.10)),
    rgba(255,255,255,.04);
}

/* Page head */
.v12-pagehead{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 16px;
  margin-bottom: 14px;
}
.v12-pagehead__k{
  color: rgba(255,255,255,.72);
  font: 900 11px/1 var(--sans);
  letter-spacing:.14em;
  text-transform: uppercase;
}
.v12-pagehead__t{ margin: 8px 0 6px; font: 800 32px/1.05 var(--serif); }
.v12-pagehead__s{ color: rgba(255,255,255,.72); font: 600 14px/1.6 var(--sans); }

/* Article */
.v12-article{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.v12-crumbs{
  color: rgba(255,255,255,.70);
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  font: 700 12px/1.2 var(--sans);
  margin-bottom: 10px;
}
.v12-ahead__t{ margin: 10px 0 8px; font: 800 40px/1.06 var(--serif); }
.v12-ahead__m{ color: rgba(255,255,255,.70); font: 700 13px/1.4 var(--sans); }

.v12-aimg{ margin: 14px 0 16px; }
.v12-aimg__frame{
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.v12-aimg__frame img{
  width:100%;
  height: clamp(260px, 34vw, 520px);
  object-fit: cover;
}

.v12-content{
  max-width: 900px;
  margin: 0 auto;
  font: 500 18px/1.9 var(--sans);
  color: rgba(255,255,255,.88);
}
.v12-content p{ margin: 0 0 14px; }
.v12-content h2{ margin: 22px 0 10px; font: 800 24px/1.2 var(--serif); }
.v12-content h3{ margin: 18px 0 8px; font: 800 20px/1.2 var(--serif); }
.v12-content ul, .v12-content ol{ margin: 0 0 14px 20px; }
.v12-content img{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 16px 44px rgba(0,0,0,.30);
  margin: 14px 0;
}

.v12-dropcap::first-letter{
  float:left;
  font: 800 58px/0.9 var(--serif);
  padding: 6px 10px 0 0;
  color: rgba(99,102,241,.95);
}

/* Footer */
.v12-foot{
  margin-top: 20px;
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
}
.v12-foot__inner{
  width: min(var(--max), 100%);
  margin: 0;
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.v12-foot__brand{ font: 900 16px/1 var(--serif); }
.v12-foot__small{
  color: rgba(255,255,255,.70);
  font: 600 13px/1.6 var(--sans);
  margin-top: 6px;
}
.v12-foot__r{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
  color: rgba(255,255,255,.80);
  font: 800 12px/1 var(--sans);
}

/* Responsive */
@media (max-width: 980px){
  :root{ --side-w: 270px; --side-gap: 0px; }

  .v12-mtop{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .v12-main{ margin-left: 0; padding: 16px 12px 30px; }

  .v12-side{
    transform: translateX(-102%);
    transition: transform .18s ease;
  }
  .v12-side.is-open{ transform: translateX(0); }

  .v12-hero__inner{ grid-template-columns: 1fr; }
  .v12-hero__media img{ height: 220px; }

  .v12-sec__grid{ grid-template-columns: 1fr; }
  .v12-sec__grid--big{ grid-template-columns: 1fr; }

  .v12-aimg__frame img{ height: 240px; }
  .v12-content{ max-width: _attach; max-width: 100%; }
}

@media (max-width: 520px){
  .v12-hero__title{ font-size: 28px; }
  .v12-ahead__t{ font-size: 32px; }
  .v12-hero__cta{ flex-direction: column; }
  .v12-btn{ width: 100%; }
}
.v12-content.v12-content--static p,
.v12-content.v12-content--static h2,
.v12-content.v12-content--static h3,
.v12-content.v12-content--static li {
  color: var(--text) !important;
}
/* Search page */
.v12-searchbar{
  margin-bottom: 12px;
}

.v12-searchbar__inner{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(15,26,46,.50);
  backdrop-filter: blur(10px);
}

.v12-searchbar__icon{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font: 900 16px/1 var(--sans);
  flex: 0 0 auto;
}

.v12-searchbar__input{
  flex: 1;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  font: 700 14px/1 var(--sans);
  min-width: 0;
}

.v12-searchbar__input::placeholder{
  color: rgba(255,255,255,.55);
}

.v12-searchbar__btn{
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(34,197,94,.55);
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(99,102,241,.70));
  color: white;
  cursor:pointer;
  font: 900 12px/1 var(--sans);
  letter-spacing:.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.v12-searchbar__btn:hover{
  filter: brightness(1.03);
}

.v12-search__meta{
  color: rgba(255,255,255,.72);
  font: 700 12px/1.4 var(--sans);
  margin-bottom: 12px;
}

/* Responsive search bar */
@media (max-width: 520px){
  .v12-searchbar__inner{
    gap: 8px;
    padding: 8px;
  }
  .v12-searchbar__btn{
    padding: 0 12px;
  }
}