:root {
  --bg: #020504;
  --panel: rgba(8, 20, 14, 0.82);
  --panel-strong: #07110c;
  --line: rgba(71, 255, 150, 0.28);
  --line-soft: rgba(71, 255, 150, 0.13);
  --green: #47ff96;
  --green-soft: #9dffc5;
  --cyan: #5ee7ff;
  --text: #ecfff4;
  --muted: #a9c9b6;
  --dim: #6f8d7b;
  --shadow: 0 0 38px rgba(71, 255, 150, 0.16);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(71, 255, 150, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 255, 150, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(71, 255, 150, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(94, 231, 255, 0.08), transparent 28rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 4px);
  opacity: 0.28;
  z-index: 10;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--green);
  color: #001708;
  padding: 0.7rem 1rem;
  border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(2, 5, 4, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.brand strong {
  display: block;
  color: var(--green-soft);
  font-size: 1rem;
  letter-spacing: 0;
}
.brand small {
  display: block;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.72rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.primary-nav a {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--green);
  border-color: var(--green);
}
.nav-cta, .button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(71,255,150,0.16), rgba(71,255,150,0.06));
  box-shadow: var(--shadow);
}
.nav-cta { padding-inline: 0.8rem !important; border-radius: 4px; color: var(--text) !important; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 12, 0.9);
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--green);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section-grid,
.content-section,
.feed-section,
.mission-panel,
.cta-band,
.article-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) 0 4rem;
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 700 0.74rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.live-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(71,255,150,0.8);
  animation: pulse 1.8s infinite;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  max-width: 820px;
  text-shadow: 0 0 30px rgba(71,255,150,0.18);
}
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.15rem; }
.hero-deck {
  margin: 1.2rem 0 0;
  color: var(--green-soft);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}
.hero-actions, .cookie-actions, .post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border-radius: 4px;
  font-weight: 800;
}
.button.primary { color: #001708; background: linear-gradient(180deg, var(--green), #24c96e); border-color: transparent; }
.button.secondary { color: var(--green-soft); }
.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(71,255,150,0.24));
  animation: floatConsole 9s ease-in-out infinite;
}

.mission-panel,
.cta-band {
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(7, 17, 12, 0.96), rgba(3, 10, 7, 0.74));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}
.mission-panel p:last-child,
.cta-band p { color: var(--muted); margin: 0; }

.content-section, .feed-section { padding: clamp(4rem, 8vw, 6rem) 0 0; }
.section-heading {
  margin-bottom: 1.4rem;
}
.section-line {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--green), transparent);
}

.category-grid, .post-grid, .lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.category-card,
.post-card,
.lane-grid > div,
.related-posts {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 20, 14, 0.88), rgba(5, 11, 8, 0.82));
  border-radius: 6px;
  padding: 1.15rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.category-card:hover,
.post-card:hover,
.lane-grid > div:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.category-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.category-card p,
.post-card p,
.lane-grid span,
.feed-item em,
.article-body,
.related-posts a { color: var(--muted); }
.category-card a,
.read-link {
  color: var(--green);
  font-weight: 800;
}
.post-kicker {
  display: inline-block;
  color: var(--cyan);
  margin-bottom: 0.7rem;
  font: 700 0.75rem ui-monospace, Consolas, monospace;
  text-transform: uppercase;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dim);
  font-size: 0.86rem;
  margin: 1rem 0;
}

.feed-section {
  background: linear-gradient(180deg, transparent, rgba(71,255,150,0.035));
}
.feed-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.filter-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}
select {
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
}
.feed-list {
  border: 1px solid var(--line-soft);
}
.feed-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 13, 9, 0.74);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: rgba(71,255,150,0.06); }
.feed-item span { color: var(--green); font-family: ui-monospace, Consolas, monospace; }

.lane-grid > div {
  display: grid;
  gap: 0.45rem;
}
.affiliate-note {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 3px solid var(--green);
  background: rgba(71,255,150,0.06);
  color: var(--muted);
}
.avon-banner {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: clamp(1.2rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(71, 255, 150, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(71,255,150,0.1), transparent 58%),
    linear-gradient(135deg, rgba(9, 28, 18, 0.96), rgba(3, 10, 7, 0.88));
  box-shadow: 0 0 44px rgba(71, 255, 150, 0.16), inset 0 0 30px rgba(71, 255, 150, 0.05);
}
.avon-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(157,255,197,0.16) 43%, transparent 52% 100%);
  transform: translateX(-120%);
  animation: bannerSweep 6.5s ease-in-out infinite;
}
.avon-copy {
  position: relative;
  z-index: 1;
}
.avon-copy h2 {
  max-width: 720px;
}
.avon-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
}
.avon-visual {
  position: relative;
  z-index: 1;
  min-height: 210px;
}
.avon-visual svg {
  width: 100%;
  min-height: 210px;
  filter: drop-shadow(0 0 22px rgba(71,255,150,0.22));
}
.avon-orbit,
.avon-wave,
.mosquito,
.avon-bottle,
.avon-label {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.avon-orbit {
  stroke: rgba(71,255,150,0.42);
  stroke-width: 1.5;
  stroke-dasharray: 12 16;
  transform-origin: 210px 110px;
}
.orbit-one { animation: orbitSpin 18s linear infinite; }
.orbit-two { animation: orbitSpin 24s linear reverse infinite; }
.avon-bottle {
  stroke: var(--green-soft);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(71,255,150,0.3));
}
.avon-label {
  stroke: var(--cyan);
  stroke-width: 2;
}
.avon-wave {
  stroke: rgba(94,231,255,0.62);
  stroke-width: 2;
  stroke-dasharray: 18 14;
  animation: waveFlow 5s linear infinite;
}
.wave-two {
  animation-direction: reverse;
  opacity: 0.72;
}
.mosquito {
  stroke: var(--green);
  stroke-width: 2.4;
  fill: rgba(71,255,150,0.18);
  animation: mosquitoDrift 4.8s ease-in-out infinite;
}
.mosquito-two {
  animation-delay: -1.8s;
  animation-duration: 5.5s;
}
.cta-band {
  align-items: center;
  grid-template-columns: 1fr auto;
  margin-top: clamp(4rem, 8vw, 6rem);
}
.ecosystem-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.ecosystem-links a {
  border: 1px solid var(--line-soft);
  padding: 1rem;
  color: var(--green-soft);
  background: rgba(8,20,14,0.7);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 5rem auto 0;
  padding: 2rem 0 2.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer small { grid-column: 1 / -1; color: var(--dim); }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: 900px;
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(3, 10, 7, 0.96);
  box-shadow: var(--shadow);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0.25rem 0 0; color: var(--muted); }
.cookie-actions button,
.scroll-top {
  border: 1px solid var(--line);
  color: var(--green-soft);
  background: rgba(8,20,14,0.9);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: none;
  width: 44px;
  height: 44px;
}
.scroll-top.is-visible { display: block; }

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  padding-top: 4rem;
}
.article {
  border: 1px solid var(--line-soft);
  background: rgba(5, 12, 8, 0.72);
}
.article-hero, .article-body, .article-footer { padding: clamp(1.2rem, 4vw, 2.5rem); }
.article-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.article-deck, .lead {
  color: var(--green-soft);
  font-size: 1.16rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--dim);
  margin: 1.2rem 0;
}
.article-visual {
  max-height: 380px;
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  background: #020504;
}
.article-figure {
  margin: 1.5rem 0 0;
}
.article-figure img {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: #020504;
}
.video-figure video {
  width: 100%;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #020504;
  box-shadow: 0 0 30px rgba(71,255,150,0.12);
}
.embed-figure {
  display: grid;
  justify-items: center;
  overflow: hidden;
}
.embed-figure iframe {
  width: 100%;
  max-width: 500px;
  min-height: 320px;
  display: block;
  border: 0;
  border-radius: 6px;
  background: #020504;
}
.social-embed {
  display: grid;
  justify-items: center;
}
.social-embed .twitter-tweet,
.social-embed iframe {
  max-width: 100% !important;
}
.article-figure figcaption {
  margin-top: 0.55rem;
  color: var(--dim);
  font-size: 0.86rem;
}
.inset-figure {
  max-width: 420px;
  margin: 1.5rem 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--line-soft);
}
.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.article-table th,
.article-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.article-table th {
  color: var(--green-soft);
  background: rgba(71,255,150,0.07);
}
.article-table tr:last-child td {
  border-bottom: 0;
}
.evidence-box,
.article-avon {
  margin: 1.6rem 0;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(71, 255, 150, 0.36);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(71,255,150,0.1), rgba(5,12,8,0.86));
  box-shadow: 0 0 26px rgba(71,255,150,0.1);
}
.evidence-box strong,
.article-avon strong {
  color: var(--green-soft);
}
.article-avon a {
  width: fit-content;
  color: #001708;
  background: linear-gradient(180deg, var(--green), #24c96e);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-weight: 900;
}
.inline-ad {
  margin: 2rem 0;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  border: 1px dashed rgba(71, 255, 150, 0.32);
  border-radius: 6px;
  background: rgba(5, 12, 8, 0.72);
}
.ad-label {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.inline-ad .adsbygoogle {
  min-height: 90px;
}
.direct-ad-slot {
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}
.direct-ad-slot strong {
  color: var(--green-soft);
}
.direct-ad-slot span {
  color: var(--muted);
  font-size: 0.92rem;
}
.direct-ad-slot a {
  width: fit-content;
  color: var(--green);
  font-weight: 900;
}
.article-body {
  font-size: 1.04rem;
}
.article-body h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
  color: var(--text);
}
blockquote {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--green);
  color: var(--green-soft);
  background: rgba(71,255,150,0.05);
}
.inline-cta {
  margin: 2rem 0;
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(71,255,150,0.07);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tags span {
  border: 1px solid var(--line-soft);
  color: var(--green-soft);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.84rem;
}
.post-nav a,
.related-posts a {
  display: block;
  padding: 0.8rem;
  border: 1px solid var(--line-soft);
  margin-top: 0.6rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(71,255,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(71,255,150,0); }
}
@keyframes floatConsole {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}
@keyframes bannerSweep {
  0%, 42% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes waveFlow {
  to { stroke-dashoffset: -64; }
}
@keyframes mosquitoDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.9; }
  45% { transform: translate(-12px, 9px) rotate(-7deg); opacity: 0.55; }
  70% { transform: translate(9px, -8px) rotate(6deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(3, 10, 7, 0.98);
  }
  .primary-nav.is-open, .primary-nav.visible { display: flex; }
  .hero, .mission-panel, .cta-band, .article-shell, .avon-banner {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-visual { min-height: 280px; }
  .category-grid, .post-grid, .lane-grid, .ecosystem-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-item { grid-template-columns: 42px 1fr; }
  .feed-item em { grid-column: 2; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .category-grid, .post-grid, .lane-grid, .ecosystem-links {
    grid-template-columns: 1fr;
  }
  .feed-head, .site-footer, .cookie-banner {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  h1 { font-size: clamp(2.7rem, 16vw, 4.2rem); }
  .mission-panel, .cta-band, .avon-banner { padding: 1rem; }
  .avon-visual { min-height: 170px; }
  .avon-visual svg { min-height: 170px; }
}
