/* ============================================================
   NEW OPTIC STUDIO — design system
   Monochrome + laser accent. Minimal, futuristic, fast.
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --paper-dim: #f4f4f4;
  --gray: #d9d9d9;
  --mid: #555;
  --laser: #00e07f;            /* scan-line accent, used sparingly */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }

section { padding: clamp(4rem, 10vw, 8.5rem) var(--pad); }

a { color: inherit; }

img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- kickers & readouts ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--mid);
  margin-bottom: 1.2rem;
}
.kicker--light { color: var(--gray); }

.readout {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--laser);
  min-height: 1.4em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.18); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { color: var(--paper); border-color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem var(--pad);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.nav__brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.nav__name em { font-style: normal; font-weight: 400; color: var(--mid); }
.nav__links {
  display: flex; gap: 1.8rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--laser);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 34px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav__burger span { display: block; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
  font-family: var(--font-display); font-size: 1.6rem;
}
.mobile-menu a { text-decoration: none; }
.mobile-menu[hidden] { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}
#pointcloud {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__display {
  display: block;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0.6rem 0 1rem;
}
.hero__sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mid);
  max-width: 34em;
  letter-spacing: 0;
  line-height: 1.5;
}
.hero__lede {
  margin: 1.4rem 0 2.2rem;
  max-width: 36em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.blog-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  z-index: 1;
}
#contact-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.blog-hero > :not(canvas) {
  position: relative;
  z-index: 1;
}

.hero__scrollcue {
  position: absolute; bottom: 2rem; left: 50%;
  width: 1.5px; height: 56px;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
}
.hero__scrollcue span {
  position: absolute; top: -50%;
  width: 100%; height: 50%;
  background: var(--ink);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { to { top: 100%; } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--paper);
}
.ticker__track {
  display: flex; gap: 2.2rem; align-items: center;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker__track i { font-style: normal; font-size: 0.5rem; color: var(--laser); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   INTRO / STATS
   ============================================================ */
.intro { max-width: 1200px; margin: 0 auto; }
.intro__statement {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  max-width: 24em;
}
.intro__statement em { font-style: normal; color: var(--mid); }
.intro__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  margin-top: 3.5rem;
}
.stat {
  background: var(--paper);
  padding: 1.8rem 1.5rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper-dim); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card::before {           /* scan-line sweep on hover */
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: var(--laser);
  transition: left 0.45s ease;
}
.card:hover::before { left: 0; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
  border-color: var(--ink);
}
.card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid);
  letter-spacing: 0.15em;
}
.card h3 { font-size: 1.35rem; margin: 0.7rem 0 0.7rem; }
.card p { font-size: 0.96rem; color: #333; }
.card__tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none;
  margin-top: 1.2rem;
}
.card__tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.25);
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
}
.card--flagship { border-color: var(--ink); }
.card--flagship h3::after {
  content: " ◆";
  color: var(--laser);
  font-size: 0.8em;
}
.card--wide { grid-column: 1 / -1; }

/* ============================================================
   COMPARE SLIDER
   ============================================================ */
.compare { max-width: 1200px; margin: 0 auto; text-align: center; }
.compare__hint { color: var(--mid); margin-bottom: 2.2rem; }
.compare__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  background: var(--paper);
  touch-action: none;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer svg { width: 100%; height: 100%; display: block; }
.compare__layer--model {
  clip-path: inset(0 0 0 var(--split, 50%));
  background: var(--paper);
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--laser);
  transform: translateX(-1px);
  z-index: 3;
}
.compare__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--laser);
  display: grid; place-items: center;
}
.compare__grip::after {
  content: "◂ ▸";
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 2px;
}
.compare__label {
  position: absolute;
  bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.3rem 0.7rem;
  z-index: 2;
  pointer-events: none;
}
.compare__label--left { left: 0.9rem; }
.compare__label--right { right: 0.9rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { max-width: 1200px; margin: 0 auto; }
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin-top: 3rem;
  border-left: 1px solid rgba(0,0,0,0.12);
}
.step {
  padding: 0 1.8rem 0.5rem;
  border-right: 1px solid rgba(0,0,0,0.12);
  position: relative;
}
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--laser);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.step p { font-size: 0.95rem; color: #333; }
.step__meta {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mid);
}

/* ============================================================
   HEALTHCARE (dark band)
   ============================================================ */
.healthcare {
  background: var(--ink);
  color: var(--paper);
}
.healthcare__inner { max-width: 880px; margin: 0 auto; }
.healthcare h2 { color: var(--paper); }
.healthcare > .healthcare__inner > p { color: #c9c9c9; font-size: 1.08rem; }
.healthcare__points {
  list-style: none;
  margin-top: 2.4rem;
  display: grid;
  gap: 1.4rem;
}
.healthcare__points li {
  padding-left: 1.6rem;
  position: relative;
  color: #c9c9c9;
}
.healthcare__points li::before {
  content: "＋";
  position: absolute; left: 0; top: 0;
  color: var(--laser);
  font-family: var(--font-mono);
}
.healthcare__points strong { color: var(--paper); }

/* ============================================================
   LIVE CAPTURE
   ============================================================ */
.capture { max-width: 1200px; margin: 0 auto; text-align: center; }
.capture__hint { color: var(--mid); max-width: 44em; margin: 0 auto 2.2rem; }
.capture__frame {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  min-height: 320px;
}
.capture__frame iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   QUOTES
   ============================================================ */
.quotes { background: var(--paper-dim); }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
  max-width: 1200px;
}
.quote {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 2rem 1.9rem;
  border-radius: var(--radius);
}
.quote__stars { color: var(--ink); letter-spacing: 0.2em; font-size: 0.85rem; }
.quote p { margin: 1rem 0 1.2rem; font-size: 0.98rem; }
.quote cite { font-family: var(--font-mono); font-style: normal; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--mid); }

/* ============================================================
   COVERAGE / RADAR
   ============================================================ */
.coverage { max-width: 1200px; margin: 0 auto; }
.coverage__layout {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 2.5rem;
}
.radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
}
.radar__rings i {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 50%;
}
.radar__rings i:nth-child(1) { width: 33%; height: 33%; }
.radar__rings i:nth-child(2) { width: 66%; height: 66%; }
.radar__rings i:nth-child(3) { width: 99%; height: 99%; }
.radar__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent 76%, rgba(0,224,127,0.22) 100%);
  animation: sweep 4.5s linear infinite;
  border-radius: 50%;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__node {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.radar__node::before {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0.4;
  animation: pulse 2.4s ease-out infinite;
}
.radar__node::after {
  content: attr(data-label);
  position: absolute;
  left: 14px; top: -4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--mid);
}
.radar__node--flip::after { left: auto; right: 14px; }
.radar__node--hq { background: var(--laser); width: 12px; height: 12px; }
.radar__node--hq::before { border-color: var(--laser); }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
.coverage__copy p { margin-bottom: 1rem; max-width: 40em; }
.coverage__list {
  list-style: none;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.coverage__list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.coverage__list li:first-child { border-top: 1px solid rgba(0,0,0,0.12); }

/* ============================================================
   BLOG CTA
   ============================================================ */
.blogcta { padding-top: 0; }
.blogcta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.blogcta p { max-width: 38em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}
#contact-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.contact__lede { color: #c9c9c9; margin: 1.2rem auto 2.4rem; max-width: 34em; }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact__fine {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem var(--pad) 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { font-size: 0.88rem; text-decoration: none; color: var(--mid); }
.footer__links a:hover { color: var(--ink); }
.footer__seo {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #999;
  max-width: 60em;
}
.footer__legal {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #999;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  #pointcloud { opacity: 0.38; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .coverage__layout { grid-template-columns: 1fr; }
  .radar { max-width: 420px; margin: 0 auto; }
  .process__steps { border-left: none; }
  .step { border-right: none; border-top: 1px solid rgba(0,0,0,0.12); padding: 1.6rem 0.2rem; }
  .capture__frame { aspect-ratio: 4 / 3; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .radar__sweep, .radar__node::before, .hero__scrollcue span { animation: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ============================================================
   BLOG — listing & article pages
   ============================================================ */

.blog-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(8rem, 16vw, 11rem) var(--pad) clamp(3.5rem, 7vw, 5rem);
}
.blog-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--paper);
  margin-bottom: 0.8rem;
}
.blog-hero p { color: #c9c9c9; max-width: 40em; font-size: 1.06rem; }

.posts-section {
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  max-width: 1200px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: var(--laser);
  transition: left 0.45s ease;
}
.post-card:hover::before { left: 0; }
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
  border-color: var(--ink);
}
.post-card__tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  list-style: none;
  margin-bottom: 1rem;
}
.post-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  color: var(--mid);
}
.post-card h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.post-card__excerpt {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.62;
  flex-grow: 1;
  margin-bottom: 1.3rem;
}
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1rem;
}

/* Featured / pinned posts */
.featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--pad) 0.5rem;
}
.featured-section > .kicker {
  margin-bottom: 1.2rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.post-card--featured {
  border-color: rgba(0, 224, 127, 0.3);
}
.post-card--featured::after {
  content: "PINNED";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  color: var(--laser);
  border: 1px solid var(--laser);
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
}

/* Article (single post) */
.back-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  padding: 1.4rem var(--pad) 0;
  max-width: 760px;
  margin: 0 auto;
  transition: color 0.18s;
}
.back-link:hover { color: var(--ink); }

.article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem var(--pad) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.2rem;
}
.article-excerpt {
  font-size: 1.08rem;
  color: var(--mid);
  max-width: 36em;
  margin: 0 auto 1.4rem;
  line-height: 1.65;
}
.article-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  list-style: none;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.article-tags li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  color: var(--mid);
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 8vw, 6rem);
  font-size: 1.02rem;
  line-height: 1.78;
}
.article-body h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.15;
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
}
.article-body h3 {
  font-size: 1.18rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.article-body p { margin-bottom: 1.3em; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3em;
}
.article-body li + li { margin-top: 0.45rem; }
.article-body strong { font-weight: 600; }

.article-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.article-cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}
#contact-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.article-cta h2 {
  position: relative;
  z-index: 1;
  color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.9rem;
}
.article-cta p {
  position: relative;
  z-index: 1;
  color: #c9c9c9;
  margin-bottom: 2rem;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}
.article-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2.5rem 0 0;
}
.pagination__btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--mid);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pagination__btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.pagination__btn--active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- article share ---------- */
.article-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.article-share__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-right: 0.2rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--mid);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.18s, border-color 0.18s;
}
.share-btn:hover {
  color: var(--ink);
  border-color: rgba(0,0,0,0.4);
}
.share-btn[data-copied] {
  color: var(--laser);
  border-color: var(--laser);
}
.share-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  pointer-events: none;
}

@media (max-width: 860px) {
  .posts-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .article-header { text-align: left; }
  .article-tags { justify-content: flex-start; }
}
