/* =========================================================
   BHUCHISWORLD NEO — Gen Z Editorial Design System
   Near-black canvas · Acid lime · Poster energy
   ========================================================= */

:root {
  --acid: #d4ff2b;
  --acid-deep: #a8cc1f;
  --hot: #ff5db1;
  --cyan: #4de3ff;
  --ink: #0a0a0b;
  --paper: #f4f2ec;

  /* Dark (default) */
  --bg: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1e;
  --tx: #f4f2ec;
  --tx-2: #a9a9b3;
  --line: #2a2a30;
  --card-shadow: 6px 6px 0 rgba(212, 255, 43, .9);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --r: 18px;
  --r-pill: 999px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .9, .25, 1);
}

html[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #ffffff;
  --bg-3: #eceadf;
  --tx: #0a0a0b;
  --tx-2: #55555e;
  --line: #d8d5c8;
  --card-shadow: 6px 6px 0 rgba(10, 10, 11, .9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

/* Grain overlay for texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--acid); color: #0a0a0b; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ============ READING PROGRESS BAR ============ */
.bw-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  z-index: 999;
}

/* ============ HEADER ============ */
.bw-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
}
.bw-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 74px;
}
.bw-logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.bw-logo .dot { color: var(--acid); }
.bw-logo img { max-height: 44px; width: auto; }

.bw-nav ul { display: flex; gap: 6px; list-style: none; }
.bw-nav a {
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; padding: 9px 14px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; transition: all .25s var(--ease);
}
.bw-nav a:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }

.bw-header-actions { display: flex; align-items: center; gap: 10px; }
.bw-icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg-2); color: var(--tx);
  display: grid; place-items: center; cursor: pointer; font-size: 1rem;
  transition: all .25s var(--ease);
}
.bw-icon-btn:hover { border-color: var(--acid); box-shadow: 3px 3px 0 var(--acid); transform: translate(-1px,-1px); }

.bw-burger { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .bw-nav { display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--bg); border-bottom: 2px solid var(--line); padding: 16px 24px 22px; }
  .bw-nav.open { display: block; }
  .bw-nav ul { flex-direction: column; gap: 4px; }
  .bw-nav a { display: block; font-size: .95rem; }
  .bw-burger { display: grid; }
}

/* ============ TICKER MARQUEE ============ */
.bw-ticker {
  background: var(--acid); color: #0a0a0b;
  border-bottom: 2px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 8px 0;
}
.bw-ticker-track { display: inline-block; animation: ticker 28s linear infinite; }
.bw-ticker:hover .bw-ticker-track { animation-play-state: paused; }
.bw-ticker-track span { margin: 0 26px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ HERO ============ */
.bw-hero { padding: 56px 0 30px; }
.bw-kicker {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--acid);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.bw-kicker::before { content: ""; width: 28px; height: 2px; background: var(--acid); }

.bw-hero-card {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  border: 2.5px solid var(--tx); border-radius: calc(var(--r) + 6px);
  overflow: hidden; background: var(--bg-2);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bw-hero-card:hover { transform: translate(-3px, -3px); }
.bw-hero-media { position: relative; min-height: 380px; overflow: hidden; }
.bw-hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bw-hero-card:hover .bw-hero-media img { transform: scale(1.06) rotate(-.5deg); }
.bw-hero-body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bw-hero-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase;
}
.bw-hero-title a:hover { color: var(--acid); }
.bw-hero-excerpt { color: var(--tx-2); font-size: 1.02rem; }

@media (max-width: 900px) {
  .bw-hero-card { grid-template-columns: 1fr; }
  .bw-hero-media { min-height: 240px; }
  .bw-hero-body { padding: 26px 22px; }
}

/* Giant outlined background word */
.bw-giant {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: .9; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
  user-select: none; margin: 30px 0 -10px;
  white-space: nowrap; overflow: hidden;
}
.bw-giant em { font-style: normal; -webkit-text-stroke: 0; color: var(--acid); }

/* ============ CATEGORY PILLS / STICKERS ============ */
.bw-pill {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--acid); color: #0a0a0b; border: 1.5px solid #0a0a0b;
  transform: rotate(-2deg); transition: transform .25s var(--ease);
}
.bw-pill:nth-child(2n) { background: var(--hot); transform: rotate(1.5deg); }
.bw-pill:nth-child(3n) { background: var(--cyan); transform: rotate(-1deg); }
.bw-pill:hover { transform: rotate(0) scale(1.08); }

.bw-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .74rem; color: var(--tx-2);
  text-transform: uppercase; letter-spacing: .08em;
}
.bw-meta .sep { color: var(--acid); }

/* ============ SECTION HEADINGS ============ */
.bw-section { padding: 46px 0; }
.bw-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 26px; flex-wrap: wrap;
}
.bw-section-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -.01em;
  position: relative; display: inline-block;
}
.bw-section-title::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 10px;
  width: 100%; background: var(--acid); z-index: -1; opacity: .55;
  transform: skewX(-12deg);
}

/* ============ POSTER RAIL (horizontal scroll) ============ */
.bw-rail {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 22px;
  scroll-snap-type: x mandatory; cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--acid) transparent;
}
.bw-rail:active { cursor: grabbing; }
.bw-rail::-webkit-scrollbar { height: 8px; }
.bw-rail::-webkit-scrollbar-thumb { background: var(--acid); border-radius: 8px; }
.bw-rail .bw-card { min-width: 300px; max-width: 300px; scroll-snap-align: start; }
@media (max-width: 600px) { .bw-rail .bw-card { min-width: 78vw; } }

/* ============ POST CARDS ============ */
.bw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .bw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bw-grid { grid-template-columns: 1fr; } }

.bw-card {
  background: var(--bg-2); border: 2px solid var(--tx);
  border-radius: var(--r); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bw-card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: var(--card-shadow); }
.bw-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.bw-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bw-card:hover .bw-card-media img { transform: scale(1.08); }
.bw-card-media .bw-pill { position: absolute; top: 12px; left: 12px; z-index: 2; }
.bw-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bw-card-title {
  font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25;
  text-transform: uppercase; letter-spacing: -.01em;
}
.bw-card-title a:hover { color: var(--acid); }
.bw-card-excerpt { color: var(--tx-2); font-size: .92rem; line-height: 1.6; }
.bw-card .bw-meta { margin-top: auto; padding-top: 8px; }

/* ============ BUTTONS ============ */
.bw-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--acid); color: #0a0a0b;
  border: 2px solid #0a0a0b; border-radius: var(--r-pill);
  padding: 13px 26px; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,.85);
  transition: all .22s var(--ease);
}
html[data-theme="light"] .bw-btn { box-shadow: 4px 4px 0 #0a0a0b; }
.bw-btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(0,0,0,.85); }
.bw-btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 rgba(0,0,0,.85); }
.bw-btn--ghost { background: transparent; color: var(--tx); border-color: var(--tx); box-shadow: 4px 4px 0 var(--acid); }

/* ============ SINGLE POST ============ */
.bw-article { padding: 54px 0; }
.bw-article-head { max-width: 860px; margin: 0 auto 34px; text-align: left; }
.bw-article-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.05;
  letter-spacing: -.015em; margin: 16px 0 18px;
}
.bw-article-featured {
  max-width: 1080px; margin: 0 auto 44px;
  border: 2.5px solid var(--tx); border-radius: calc(var(--r) + 4px);
  overflow: hidden; box-shadow: var(--card-shadow); transform: rotate(-.4deg);
}
.bw-article-featured img { width: 100%; }

.bw-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.bw-content > * + * { margin-top: 1.4em; }
.bw-content h2, .bw-content h3 {
  font-family: var(--font-display); text-transform: uppercase; line-height: 1.2;
  letter-spacing: -.01em; margin-top: 2em;
}
.bw-content h2 { font-size: 1.65rem; padding-left: 16px; border-left: 6px solid var(--acid); }
.bw-content h3 { font-size: 1.25rem; }
.bw-content a { color: var(--acid-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
html[data-theme="dark"] .bw-content a, html:not([data-theme]) .bw-content a { color: var(--acid); }
.bw-content blockquote {
  border: 2px solid var(--tx); border-radius: var(--r);
  background: var(--bg-2); padding: 24px 26px;
  font-family: var(--font-body); font-weight: 600; font-size: 1.15rem;
  box-shadow: 5px 5px 0 var(--hot); transform: rotate(-.5deg);
}
.bw-content img { border-radius: var(--r); border: 2px solid var(--tx); }
.bw-content ul, .bw-content ol { padding-left: 1.4em; }
.bw-content li + li { margin-top: .5em; }
.bw-content pre {
  background: #101014; color: #d8ffd8; font-family: var(--font-mono);
  font-size: .88rem; padding: 20px; border-radius: var(--r);
  overflow-x: auto; border: 2px solid var(--line);
}
.bw-content code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-3); padding: 2px 7px; border-radius: 6px; }
.bw-content pre code { background: none; padding: 0; }
.bw-content .wp-caption-text, .bw-content figcaption {
  font-family: var(--font-mono); font-size: .75rem; color: var(--tx-2);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 10px;
}

/* Drop cap on first paragraph */
.bw-content > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.4em; line-height: .85;
  float: left; margin: 6px 12px 0 0; color: var(--acid);
}

/* ============ SHARE BAR ============ */
.bw-share {
  max-width: 760px; margin: 44px auto 0; padding-top: 26px;
  border-top: 2px dashed var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.bw-share-label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--tx-2); }
.bw-share a, .bw-share button {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid var(--tx); border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--tx);
  padding: 8px 16px; cursor: pointer; transition: all .22s var(--ease);
}
.bw-share a:hover, .bw-share button:hover { background: var(--acid); color: #0a0a0b; border-color: #0a0a0b; transform: translateY(-2px); }

/* ============ AUTHOR BOX ============ */
.bw-author {
  max-width: 760px; margin: 40px auto 0; display: flex; gap: 20px;
  border: 2px solid var(--tx); border-radius: var(--r);
  background: var(--bg-2); padding: 24px; box-shadow: 5px 5px 0 var(--cyan);
  align-items: center;
}
.bw-author img { border-radius: 50%; border: 2px solid var(--acid); width: 72px; height: 72px; }
.bw-author-name { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; }
.bw-author-bio { color: var(--tx-2); font-size: .92rem; margin-top: 4px; }

/* ============ RELATED / PAGINATION / COMMENTS ============ */
.bw-related { padding: 60px 0; }
.bw-pagination { display: flex; justify-content: center; gap: 10px; margin: 50px 0 10px; flex-wrap: wrap; }
.bw-pagination .page-numbers {
  font-family: var(--font-mono); font-weight: 700;
  min-width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 2px solid var(--tx); border-radius: 12px; padding: 0 14px;
  transition: all .2s var(--ease);
}
.bw-pagination .page-numbers.current, .bw-pagination .page-numbers:hover { background: var(--acid); color: #0a0a0b; border-color: #0a0a0b; }

.bw-comments { max-width: 760px; margin: 56px auto 0; }
.bw-comments .comment-list { list-style: none; }
.bw-comments .comment-body {
  border: 2px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); padding: 20px; margin-bottom: 18px;
}
.bw-comments .comment-author { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.bw-comments .comment-author img { border-radius: 50%; }
.bw-comments .comment-metadata { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; color: var(--tx-2); margin: 4px 0 10px; }
.bw-comments .children { list-style: none; padding-left: 26px; }
.bw-comments input[type="text"], .bw-comments input[type="email"], .bw-comments input[type="url"], .bw-comments textarea,
.bw-search-field {
  width: 100%; background: var(--bg-2); color: var(--tx);
  border: 2px solid var(--tx); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; padding: 13px 16px;
  margin-bottom: 14px; transition: box-shadow .2s var(--ease);
}
.bw-comments textarea:focus, .bw-comments input:focus, .bw-search-field:focus { outline: none; box-shadow: 4px 4px 0 var(--acid); }

/* ============ SEARCH FORM ============ */
.bw-search-form { display: flex; gap: 10px; max-width: 560px; }
.bw-search-form .bw-search-field { margin: 0; flex: 1; }

/* ============ ARCHIVE HEADER ============ */
.bw-archive-head { padding: 56px 0 10px; }
.bw-archive-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 3rem); }
.bw-archive-title span { color: var(--acid); }
.bw-archive-desc { color: var(--tx-2); max-width: 620px; margin-top: 10px; }

/* ============ FOOTER ============ */
.bw-footer { margin-top: 70px; border-top: 2.5px solid var(--tx); background: var(--bg-2); position: relative; z-index: 2; }
.bw-footer-marquee {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem); white-space: nowrap; overflow: hidden;
  padding: 26px 0; border-bottom: 2px solid var(--line);
  color: transparent; -webkit-text-stroke: 1.5px var(--tx);
}
.bw-footer-marquee .bw-ticker-track { animation-duration: 36s; }
.bw-footer-marquee em { font-style: normal; color: var(--acid); -webkit-text-stroke: 0; }
.bw-footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 48px 0;
}
@media (max-width: 800px) { .bw-footer-main { grid-template-columns: 1fr; } }
.bw-footer h4 { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--acid); margin-bottom: 16px; }
.bw-footer ul { list-style: none; }
.bw-footer li + li { margin-top: 8px; }
.bw-footer a:hover { color: var(--acid); }
.bw-footer-bottom {
  border-top: 2px solid var(--line); padding: 18px 0;
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--tx-2);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ============ BACK TO TOP ============ */
.bw-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--acid); color: #0a0a0b; border: 2px solid #0a0a0b;
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,.8);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all .3s var(--ease);
}
.bw-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bw-top:hover { transform: translateY(-4px) rotate(-6deg); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 404 ============ */
.bw-404 { text-align: center; padding: 90px 0; }
.bw-404 h1 { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 10rem); color: transparent; -webkit-text-stroke: 3px var(--acid); line-height: 1; }
.bw-404 p { color: var(--tx-2); margin: 18px 0 30px; }

/* ============ WP CORE ALIGN CLASSES ============ */
.alignwide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.sticky {}
.screen-reader-text {
  position: absolute !important; clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================
   v1.1 ENHANCEMENTS — readability + premium motion
   ========================================================= */
:root {
  --tx-2: #c2c2cc;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[data-theme="light"] { --tx-2: #3f3f47; --line: #d5d2c4; }
body { line-height: 1.75; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 6px; }

/* accent readability in light mode (lime on white is low-contrast) */
html[data-theme="light"] .bw-kicker,
html[data-theme="light"] .bw-meta .sep,
html[data-theme="light"] .bw-footer h4,
html[data-theme="light"] .bw-hero-title a:hover,
html[data-theme="light"] .bw-card-title a:hover { color: #5d7a00; }

/* progress bar: animated gradient + glow */
.bw-progress {
  background: linear-gradient(90deg, var(--acid), var(--cyan), var(--hot));
  background-size: 200% 100%;
  animation: bw-gradslide 4s linear infinite;
  box-shadow: 0 0 12px var(--acid);
}
@keyframes bw-gradslide { to { background-position: 200% 0; } }

/* logo dot blink */
.bw-logo .dot { display: inline-block; animation: bw-blink 2.4s ease infinite; }
@keyframes bw-blink { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .15; } }

/* nav hover glow */
.bw-nav a:hover { box-shadow: 0 6px 18px -6px rgba(212, 255, 43, .5); }
.bw-icon-btn { transition: all .3s var(--spring); }
.bw-icon-btn:hover { transform: translate(-1px, -1px) rotate(-8deg); }

/* hero: entrance + ambient blobs */
.bw-hero { position: relative; }
.bw-hero::before, .bw-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .3; z-index: 0; pointer-events: none;
}
.bw-hero::before { width: 420px; height: 420px; background: var(--acid); top: -120px; left: -140px; animation: bw-drift 14s ease-in-out infinite alternate; }
.bw-hero::after { width: 340px; height: 340px; background: var(--hot); bottom: -140px; right: -80px; animation: bw-drift 18s ease-in-out infinite alternate-reverse; }
html[data-theme="light"] .bw-hero::before, html[data-theme="light"] .bw-hero::after { opacity: .18; }
@keyframes bw-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, -46px) scale(1.18); } }
.bw-hero > * { position: relative; z-index: 2; }
.bw-hero-card { animation: bw-heroin .9s var(--ease) both; transition: transform .4s var(--spring), box-shadow .4s var(--ease); }
@keyframes bw-heroin { from { opacity: 0; transform: translateY(46px) scale(.97); } to { opacity: 1; transform: none; } }
.bw-hero-card:hover { box-shadow: 10px 10px 0 rgba(212, 255, 43, .95); transform: translate(-4px, -4px); }
html[data-theme="light"] .bw-hero-card:hover { box-shadow: 10px 10px 0 rgba(10, 10, 11, .92); }

/* shine sweep across images on hover */
.bw-hero-media::after, .bw-card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .18) 50%, transparent 64%);
  transform: translateX(-130%);
}
.bw-hero-card:hover .bw-hero-media::after,
.bw-card:hover .bw-card-media::after { transform: translateX(130%); transition: transform .85s var(--ease); }

/* hero title word-by-word reveal (spans added by JS) */
.bw-hero-title .w { display: inline-block; animation: bw-wordup .7s var(--ease) both; }
@keyframes bw-wordup { from { opacity: 0; transform: translateY(26px) rotate(2deg); } to { opacity: 1; transform: none; } }
.bw-hero-excerpt { font-size: 1.06rem; line-height: 1.75; }

/* kicker underline grows in */
.bw-kicker::before { animation: bw-growbar 1s var(--ease) both .2s; }
@keyframes bw-growbar { from { width: 0; } to { width: 28px; } }

/* giant word shimmer on accent part */
.bw-giant em {
  background: linear-gradient(90deg, var(--acid), var(--cyan), var(--acid));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: bw-shimmer 5s linear infinite;
}
@keyframes bw-shimmer { to { background-position: 220% 0; } }

/* section title underline animates when revealed */
.bw-section-title::after { width: 0; transition: width .8s var(--ease) .2s; }
.bw-section-title.lit::after { width: 100%; }

/* cards: springier hover, animated title underline, bigger readable text */
.bw-card { transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.bw-card:hover { transform: translate(-4px, -4px) rotate(-.4deg); }
.bw-card-title { font-size: 1.15rem; line-height: 1.3; }
.bw-card-title a {
  background-image: linear-gradient(var(--acid), var(--acid));
  background-repeat: no-repeat; background-size: 0% 3px; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.bw-card-title a:hover { background-size: 100% 3px; }
.bw-card-excerpt { font-size: .96rem; line-height: 1.68; }
.bw-meta { font-weight: 700; font-size: .76rem; }

/* stagger reveals inside grids and rails */
.bw-grid .reveal:nth-child(2), .bw-rail .reveal:nth-child(2) { transition-delay: .1s; }
.bw-grid .reveal:nth-child(3), .bw-rail .reveal:nth-child(3) { transition-delay: .2s; }
.bw-rail .reveal:nth-child(4) { transition-delay: .3s; }
.bw-rail .reveal:nth-child(5) { transition-delay: .4s; }
.bw-rail .reveal:nth-child(6) { transition-delay: .5s; }

/* buttons: sliding arrow + spring */
.bw-btn { transition: all .25s var(--spring); }
.bw-btn .arr { display: inline-block; transition: transform .3s var(--spring); }
.bw-btn:hover .arr { transform: translateX(6px); }

/* footer link slide */
.bw-footer a { transition: all .25s var(--ease); display: inline-block; }
.bw-footer a:hover { transform: translateX(6px); }
.bw-footer p { color: var(--tx-2); }

/* back-to-top pulse ring */
.bw-top { transition: all .35s var(--spring); }
.bw-top.show::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--acid); animation: bw-ring 2s ease-out infinite;
}
@keyframes bw-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
.bw-top:hover { transform: translateY(-5px) rotate(-8deg); }

/* =========================================================
   v1.2 — QA fixes: variable sync, fallback tiles, CTA, post nav
   ========================================================= */
:root { --tx: #f7f5ef; --bg-2: #131316; --bg-3: #1c1c21; --line: #2e2e35; }
html[data-theme="light"] { --tx: #0c0c0e; --bg-2: #ffffff; --bg-3: #eae8dd; }

/* skip link */
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  clip: auto; width: auto; height: auto;
  background: var(--acid); color: #0a0a0b;
  font-family: var(--font-mono); font-weight: 700;
  padding: 12px 20px; border-radius: 999px; border: 2px solid #0a0a0b;
}

/* thumbnail fallback tile */
.bw-thumb-fallback {
  width: 100%; height: 100%; min-height: inherit;
  display: grid; place-items: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
.bw-hero-media .bw-thumb-fallback { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }

/* CTA banner */
.bw-cta { padding: 10px 0 14px; }
.bw-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  border: 2.5px solid var(--tx); border-radius: calc(var(--r) + 4px);
  background: var(--bg-2); padding: 32px 36px;
  box-shadow: 6px 6px 0 var(--hot);
  position: relative; overflow: hidden;
}
.bw-cta-inner::before {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: var(--acid); filter: blur(80px); opacity: .22;
  top: -100px; right: -60px; pointer-events: none;
  animation: bw-drift 16s ease-in-out infinite alternate;
}
.bw-cta-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 2.8vw, 1.9rem); }
.bw-cta-text { color: var(--tx-2); margin-top: 6px; max-width: 560px; }

/* prev / next post navigation */
.bw-post-nav {
  max-width: 760px; margin: 34px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 640px) { .bw-post-nav { grid-template-columns: 1fr; } }
.bw-post-nav a {
  display: block; border: 2px solid var(--tx); border-radius: var(--r);
  background: var(--bg-2); padding: 16px 20px;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.5;
  transition: all .25s var(--ease);
}
.bw-post-nav-next { text-align: right; }
.bw-post-nav a:hover { background: var(--acid); color: #0a0a0b; border-color: #0a0a0b; transform: translateY(-3px); box-shadow: 4px 4px 0 rgba(0,0,0,.8); }

/* =========================================================
   v2.0 — DOMINATION LAYER
   Highlights · Hot This Week · TOC · Breadcrumbs · Category hero
   ========================================================= */

/* ---- View Transition crossfade for theme switch ---- */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(.2, .9, .25, 1);
}

/* ---- Instagram-style category Highlights ---- */
.bw-highlights {
  display: flex; gap: 22px; overflow-x: auto;
  padding: 26px 24px 6px; scrollbar-width: none;
}
.bw-highlights::-webkit-scrollbar { display: none; }
.bw-hl { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.bw-hl-ring {
  width: 78px; height: 78px; border-radius: 50%; padding: 4px;
  background: conic-gradient(var(--acid), var(--cyan), var(--hot), var(--acid));
  display: grid; place-items: center;
  transition: transform .35s var(--spring);
  animation: bw-spinring 8s linear infinite paused;
}
.bw-hl:hover .bw-hl-ring { transform: scale(1.1) rotate(8deg); animation-play-state: running; }
@keyframes bw-spinring { to { filter: hue-rotate(360deg); } }
.bw-hl-face {
  width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid var(--bg);
  display: grid; place-items: center; font-size: 1.9rem;
}
.bw-hl-name {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--tx-2);
}
.bw-hl:hover .bw-hl-name { color: var(--acid); }
html[data-theme="light"] .bw-hl:hover .bw-hl-name { color: #5d7a00; }

/* ---- Hot This Week ranked list ---- */
.bw-hot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .bw-hot { grid-template-columns: 1fr; } }
.bw-hot-item {
  display: flex; align-items: center; gap: 20px;
  border: 2px solid var(--tx); border-radius: var(--r);
  background: var(--bg-2); padding: 18px 22px;
  transition: all .3s var(--spring);
}
.bw-hot-item:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--cyan); }
.bw-hot-rank {
  font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--acid);
  min-width: 54px;
}
html[data-theme="light"] .bw-hot-rank { -webkit-text-stroke: 2px #5d7a00; }
.bw-hot-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bw-hot-title {
  font-family: var(--font-display); font-size: 1rem; line-height: 1.35;
  text-transform: uppercase;
}
.bw-hot-item:hover .bw-hot-title { color: var(--acid); }
html[data-theme="light"] .bw-hot-item:hover .bw-hot-title { color: #5d7a00; }
.bw-hot-arr { margin-left: auto; font-size: 1.3rem; transition: transform .3s var(--spring); }
.bw-hot-item:hover .bw-hot-arr { transform: translateX(6px); }

/* ---- Table of Contents ---- */
.bw-toc {
  max-width: 760px; margin: 0 auto 38px;
  border: 2px solid var(--tx); border-radius: var(--r);
  background: var(--bg-2); padding: 22px 26px;
  box-shadow: 5px 5px 0 var(--acid);
}
.bw-toc-label {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--acid);
  display: block; margin-bottom: 12px;
}
html[data-theme="light"] .bw-toc-label { color: #5d7a00; }
.bw-toc-list { list-style: none; counter-reset: toc; }
.bw-toc-list li { counter-increment: toc; padding: 6px 0; }
.bw-toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 700; color: var(--tx-2);
  margin-right: 12px;
}
.bw-toc-list li.toc-sub { padding-left: 30px; }
.bw-toc-list a { font-weight: 600; transition: color .2s var(--ease); }
.bw-toc-list a:hover { color: var(--acid); }
html[data-theme="light"] .bw-toc-list a:hover { color: #5d7a00; }
.bw-content h2, .bw-content h3 { scroll-margin-top: 100px; }

/* ---- Breadcrumbs ---- */
.bw-crumbs {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 18px;
}
.bw-crumbs a:hover { color: var(--acid); }
html[data-theme="light"] .bw-crumbs a:hover { color: #5d7a00; }
.bw-crumbs .c-sep { color: var(--acid); }
html[data-theme="light"] .bw-crumbs .c-sep { color: #5d7a00; }
.bw-crumbs .c-here { color: var(--tx); opacity: .85; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Category hero ---- */
.bw-cat-hero {
  position: relative; padding: 60px 0 44px; overflow: hidden;
  border-bottom: 2px solid var(--line);
}
.bw-cat-hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cat-grad); opacity: .28; pointer-events: none;
}
html[data-theme="light"] .bw-cat-hero::before { opacity: .18; }
.bw-cat-hero .wrap { position: relative; z-index: 2; }
.bw-cat-hero-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.bw-cat-emoji {
  font-size: 4.2rem; width: 110px; height: 110px;
  display: grid; place-items: center;
  border: 2.5px solid var(--tx); border-radius: 26px;
  background: var(--bg-2); box-shadow: 6px 6px 0 var(--acid);
  transform: rotate(-4deg);
  animation: floaty 5s ease-in-out infinite;
}

/* hero tilt smoothing */
.bw-hero-card { will-change: transform; }

/* =========================================================
   v2.1 — REFINED: glassmorphism, soft depth, calmer branding
   ========================================================= */
:root {
  --violet: #8b7bff;
  --glass: rgba(255, 255, 255, .055);
  --glass-brd: rgba(255, 255, 255, .13);
  --shadow-soft: 0 14px 34px -16px rgba(0, 0, 0, .55);
  --shadow-lift: 0 26px 54px -20px rgba(0, 0, 0, .6), 0 8px 30px -10px rgba(212, 255, 43, .28);
}
html[data-theme="light"] {
  --glass: rgba(255, 255, 255, .62);
  --glass-brd: rgba(10, 10, 11, .1);
  --shadow-soft: 0 14px 30px -18px rgba(20, 20, 25, .22);
  --shadow-lift: 0 24px 46px -20px rgba(20, 20, 25, .28), 0 6px 24px -8px rgba(93, 122, 0, .22);
}

/* ambient color washes so the glass has something to refract */
body {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 123, 255, .10), transparent 60%),
    radial-gradient(820px 520px at -10% 30%, rgba(212, 255, 43, .07), transparent 60%),
    radial-gradient(720px 480px at 70% 100%, rgba(77, 227, 255, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* header → true glass */
.bw-header {
  background: color-mix(in srgb, var(--bg) 52%, transparent);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--glass-brd);
}

/* pink retired as a dominant — violet takes its place */
.bw-pill:nth-child(2n), .bw-pill.p2 { background: var(--violet); }
.bw-content blockquote { box-shadow: var(--shadow-soft); border: 1px solid var(--glass-brd); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bw-cta-inner { box-shadow: var(--shadow-soft); }
.bw-author { box-shadow: var(--shadow-soft); }

/* ---- CARDS: glass surface + layered soft shadows ---- */
.bw-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow-soft);
}
.bw-card:hover {
  transform: translateY(-7px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-lift);
  border-color: color-mix(in srgb, var(--acid) 55%, var(--glass-brd));
}

/* hero card: hybrid — subtle glass + soft depth, hard offset retired */
.bw-hero-card {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-soft);
}
.bw-hero-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-lift);
  border-color: color-mix(in srgb, var(--acid) 45%, var(--glass-brd));
}

/* hot items, TOC, post-nav, share → glass family */
.bw-hot-item, .bw-toc, .bw-post-nav a, .bw-share a, .bw-share button, .bw-search-field {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-soft);
}
.bw-toc { box-shadow: var(--shadow-soft); }
.bw-hot-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--cyan) 55%, var(--glass-brd)); }
.bw-post-nav a:hover { background: var(--acid); box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.bw-comments .comment-body { background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* buttons: keep the signature hard shadow but add a soft lime bloom on hover */
.bw-btn:hover { box-shadow: 7px 7px 0 rgba(0, 0, 0, .85), 0 14px 34px -10px rgba(212, 255, 43, .45); }

/* ---- BRANDING DIALED DOWN ---- */
.bw-giant {
  font-size: clamp(2.4rem, 7.5vw, 5.6rem);
  opacity: .55;
  margin: 26px 0 -4px;
  -webkit-text-stroke: 1.5px var(--line);
}
.bw-footer-marquee {
  font-size: clamp(1.3rem, 3.6vw, 2.2rem);
  padding: 18px 0;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tx) 55%, transparent);
}
.bw-footer-marquee em { opacity: .85; }
.bw-ticker { font-size: .72rem; padding: 7px 0; }
.bw-logo .dot { animation: none; }

/* CTA: glass instead of loud pink offset */
.bw-cta-inner {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-brd);
}

/* category hero emoji + fallback tiles: soften */
.bw-cat-emoji { box-shadow: var(--shadow-soft); border: 1px solid var(--glass-brd); }
.bw-article-featured { box-shadow: var(--shadow-soft); border: 1px solid var(--glass-brd); transform: none; }

/* highlights ring: slightly smaller, calmer */
.bw-hl-ring { width: 70px; height: 70px; }
.bw-hl-face { font-size: 1.7rem; }

/* icon buttons glass */
.bw-icon-btn { background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* =========================================================
   v2.2 — COMPATIBILITY: glass fallback for older browsers
   ========================================================= */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .bw-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .bw-card, .bw-hero-card, .bw-hot-item, .bw-toc, .bw-cta-inner,
  .bw-icon-btn, .bw-post-nav a, .bw-share a, .bw-share button,
  .bw-search-field, .bw-comments .comment-body, .bw-content blockquote {
    background: var(--bg-2);
  }
}

/* Extra safety: ensure every glass surface has webkit prefix pairing.
   (Consolidated so Safari < 18 and iOS render the blur.) */
.bw-header, .bw-card, .bw-hero-card, .bw-hot-item, .bw-toc,
.bw-cta-inner, .bw-icon-btn, .bw-post-nav a, .bw-share a,
.bw-share button, .bw-search-field, .bw-comments .comment-body,
.bw-content blockquote {
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

/* =========================================================
   v3.0 — FLAGSHIP: magazine layout · newsletter · web stories
   ========================================================= */

/* ---- MAGAZINE dense grid variant ---- */
.bw-grid--mag {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .bw-grid--mag { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bw-grid--mag { grid-template-columns: 1fr; } }
.bw-grid--mag .bw-card-media { aspect-ratio: 3/2; }
.bw-grid--mag .bw-card-body { padding: 15px 16px 17px; gap: 8px; }
.bw-grid--mag .bw-card-title { font-size: .95rem; }
.bw-grid--mag .bw-card-excerpt { display: none; }
/* first card in magazine spans 2×2 as a feature block */
.bw-grid--mag .bw-card:first-child { grid-column: span 2; grid-row: span 2; }
.bw-grid--mag .bw-card:first-child .bw-card-media { aspect-ratio: 16/10; height: 100%; }
.bw-grid--mag .bw-card:first-child .bw-card-title { font-size: 1.5rem; }
.bw-grid--mag .bw-card:first-child .bw-card-excerpt { display: block; }
@media (max-width: 560px) {
  .bw-grid--mag .bw-card:first-child { grid-column: span 1; grid-row: span 1; }
}

/* ---- NEWSLETTER block ---- */
.bw-news { padding: 20px 0; }
.bw-news-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px;
  border: 1px solid var(--glass-brd); border-radius: calc(var(--r) + 8px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-soft);
  padding: 40px 44px;
}
@media (max-width: 760px) { .bw-news-inner { grid-template-columns: 1fr; padding: 30px 26px; gap: 22px; } }
.bw-news-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--acid), var(--cyan), var(--violet), var(--acid));
  filter: blur(70px); opacity: .28; top: -120px; right: -80px; pointer-events: none;
  animation: bw-spin 18s linear infinite;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-news-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.bw-news-text { color: var(--tx-2); margin-top: 8px; max-width: 46ch; }
.bw-news-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.bw-news-form input[type="email"] {
  flex: 1; min-width: 200px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  color: var(--tx); border: 1px solid var(--glass-brd); border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; padding: 14px 20px;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.bw-news-form input[type="email"]:focus {
  outline: none; border-color: var(--acid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acid) 30%, transparent);
}

/* ---- WEB STORIES vertical cards ---- */
.bw-stories {
  display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 22px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.bw-stories::-webkit-scrollbar { display: none; }
.bw-story {
  position: relative; flex: 0 0 auto;
  width: 190px; height: 320px; border-radius: 22px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 1px solid var(--glass-brd); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--spring), box-shadow .4s var(--ease);
}
@media (max-width: 560px) { .bw-story { width: 160px; height: 280px; } }
.bw-story:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lift); }
.bw-story-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.82) 8%, rgba(0,0,0,.25) 48%, rgba(0,0,0,.12) 100%);
}
.bw-story.no-img { align-items: flex-start; }
.bw-story-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%);
  font-size: 3.6rem; z-index: -1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4));
  animation: floaty 5s ease-in-out infinite;
}
.bw-story-cat {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #0a0a0b; background: var(--acid);
  padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 10px;
}
.bw-story-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .98rem; line-height: 1.2; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
/* animated progress ticks at top like real stories */
.bw-story::before {
  content: ""; position: absolute; top: 12px; left: 14px; right: 14px; height: 3px;
  border-radius: 3px; background: rgba(255,255,255,.3); z-index: 1;
}
.bw-story::after {
  content: ""; position: absolute; top: 12px; left: 14px; width: 30%; height: 3px;
  border-radius: 3px; background: var(--acid); z-index: 2;
  transition: width .5s var(--ease);
}
.bw-story:hover::after { width: calc(100% - 28px); }

/* =========================================================
   v3.1 — PRODUCTION: mobile fixes, contrast, SEO/a11y polish
   ========================================================= */

/* FIX: mobile nav offset matched to real header height (76px) + glass + z-index */
@media (max-width: 900px) {
  .bw-nav {
    top: 76px; z-index: 99;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-brd);
    max-height: calc(100vh - 76px); overflow-y: auto;
    box-shadow: var(--shadow-soft);
  }
  .bw-nav a {
    padding: 13px 16px; font-size: 1rem;
    border: 1px solid transparent; border-radius: 12px;
  }
  .bw-nav a:active { background: var(--acid); color: #0a0a0b; }
  /* larger tap targets on mobile */
  .bw-icon-btn { width: 46px; height: 46px; }
}

/* FIX: contrast — brighten tx-2 further so all secondary text passes WCAG AA */
:root { --tx-2: #ccccd4; }
html[data-theme="light"] { --tx-2: #33333a; }

/* FIX: story progress tick low-contrast track → slightly brighter */
.bw-story::before { background: rgba(255, 255, 255, .4); }

/* FIX: card excerpt + meta minimum readable size on all screens */
.bw-card-excerpt { font-size: .95rem; }
.bw-meta { font-size: .76rem; }

/* Ensure all interactive elements have min 44px tap target (a11y) */
.bw-btn { min-height: 44px; }
.bw-pill { min-height: 30px; display: inline-flex; align-items: center; }
.bw-share a, .bw-share button, .bw-post-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.bw-pagination .page-numbers { min-height: 44px; }

/* FIX: prevent horizontal overflow on small screens from giant word / marquee */
.bw-giant, .bw-footer-marquee { max-width: 100vw; }

/* FIX: focus-visible on ALL interactive elements for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
.bw-card a:focus-visible, .bw-story:focus-visible, .bw-hl:focus-visible {
  outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 8px;
}
html[data-theme="light"] a:focus-visible,
html[data-theme="light"] button:focus-visible { outline-color: #5d7a00; }

/* FIX: story cards keyboard focusable + readable title always */
.bw-story-title { font-weight: 400; }

/* FIX: hero title very long words don't overflow */
.bw-hero-title, .bw-card-title, .bw-article-title { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }

/* FIX: content images never overflow container on mobile */
.bw-content img, .bw-content iframe, .bw-content video { max-width: 100%; height: auto; }
.bw-content .wp-block-embed iframe { width: 100%; }

/* FIX: tables in content scroll on mobile instead of breaking layout */
.bw-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.bw-content th, .bw-content td { border: 1px solid var(--line); padding: 10px 14px; }

/* Light mode: ensure story-cat lime chip text stays dark (already good) and glass cards readable */
html[data-theme="light"] .bw-story-title { text-shadow: 0 2px 10px rgba(0,0,0,.85); }

/* v3.2 — customizer: static header option */
.bw-header--static { position: relative; }
