/* ============================================================
   Blue Frost Innovations — Design System
   Palette: Ink #0B1220, Frost Cyan #5EEAD4, Electric Blue #3B82F6,
            Mist #F5F7FA, Slate #64748B, Frost White #FFFFFF
   Display: Space Grotesk | Body: Inter
   ============================================================ */

:root {
  --ink: #0B1220;
  --ink-soft: #131C2E;
  --frost: #5EEAD4;
  --blue: #3B82F6;
  --mist: #F5F7FA;
  --slate: #64748B;
  --white: #FFFFFF;
  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(15,23,42,0.08);

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--mist);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Frost glow / texture ---------- */
.frost-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.frost-glow::before,
.frost-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.frost-glow::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--frost), transparent 70%);
  top: -180px; right: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.frost-glow::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  bottom: -160px; left: -120px;
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-40px, 40px) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(40px,-30px) scale(1.1); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,18,32,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: var(--ink);
}
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--frost), var(--blue));
  transition: width .3s var(--ease);
  border-radius: 2px;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--frost), var(--blue));
  color: var(--ink) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover { filter: brightness(1.08); color: var(--ink) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(11,18,32,0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad) 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .3s;
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu-toggle { display: block; }
  .nav-cta { margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 168px var(--pad) 96px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--frost);
  box-shadow: 0 0 0 4px rgba(94,234,212,0.18);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  max-width: 14ch;
  background: linear-gradient(120deg, #fff 40%, var(--frost) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), filter .25s, background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--frost), var(--blue));
  color: var(--ink);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--frost); color: var(--frost); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: block;
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { margin-top: 1rem; color: var(--slate); font-size: 1.05rem; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.on-dark { background: var(--ink); color: var(--white); }
.on-dark .kicker { color: var(--frost); }
.on-dark .section-head p { color: rgba(255,255,255,0.65); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 2rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(11,18,32,0.25);
  border-color: rgba(59,130,246,0.25);
}
.card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--frost-text, var(--blue));
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--slate); font-size: 0.96rem; margin-bottom: 1.1rem; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.card ul li {
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  flex-shrink: 0;
}

/* glass card on dark */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 2rem;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94,234,212,0.35);
  background: rgba(255,255,255,0.06);
}
.glass-card h3 { color: var(--white); margin-bottom: 0.6rem; font-size: 1.2rem; }
.glass-card p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ---------- Tag pills (tech stack) ---------- */
.pillset { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  transition: border-color .25s, transform .25s;
}
.pill:hover { border-color: var(--blue); transform: translateY(-2px); }
.on-dark .pill {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: rgba(255,255,255,0.85);
}
.on-dark .pill:hover { border-color: var(--frost); }

/* ---------- Process / steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.on-dark .step { border-color: var(--line); }
.step:last-child { border-bottom: none; }
.step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--slate); }
.on-dark .step p { color: rgba(255,255,255,0.65); }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 4rem var(--pad);
  text-align: center;
  overflow: hidden;
  margin: 0 var(--pad);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.65); max-width: 46ch; margin: 0 auto 2rem; }
.cta-band .container { padding: 0; }
@media (min-width: 1180px) {
  .cta-band { margin: 0 auto; max-width: var(--max); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  transition: color .2s;
}
.footer-grid a:hover { color: var(--frost); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-tagline {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.on-dark .field label { color: var(--white); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.on-dark .field input, .on-dark .field textarea, .on-dark .field select {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 158px var(--pad) 80px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.page-hero p { color: rgba(255,255,255,0.65); margin-top: 1rem; max-width: 50ch; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--frost); }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--slate);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}
.legal-content ul, .legal-content ol { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.legal-content strong { color: var(--ink); }
.legal-updated {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

/* ---------- Job listings ---------- */
.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.job:hover { border-color: rgba(94,234,212,0.35); background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.job h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.3rem; }
.job .meta { color: rgba(255,255,255,0.55); font-size: 0.88rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.job .meta span::before { content: "•"; margin-right: 0.5rem; color: var(--frost); }
.job .meta span:first-child::before { content: ""; margin-right: 0; }

.apply-box {
  background: linear-gradient(135deg, rgba(94,234,212,0.12), rgba(59,130,246,0.12));
  border: 1px solid rgba(94,234,212,0.25);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 3rem;
}
.apply-box p { color: rgba(255,255,255,0.85); }
.apply-box strong { color: var(--frost); }

/* ---------- Misc ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.divider {
  height: 1px;
  background: var(--line-soft);
  margin: 0 0;
}
.on-dark .divider { background: var(--line); }

.text-frost { color: var(--frost); }

/* image frame */
.img-frame {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94,234,212,0.15), rgba(59,130,246,0.15));
  mix-blend-mode: overlay;
}

/* ============================================================
   BLOG SYSTEM
   ============================================================ */

/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(11,18,32,0.2);
  border-color: rgba(59,130,246,0.25);
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1220, #1e3a5f);
  position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.blog-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  flex: 1;
}
.blog-card p {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--slate);
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
  margin-top: auto;
}
.blog-meta .read-time { color: var(--blue); font-weight: 600; }

/* Featured post */
.blog-featured {
  background: var(--ink);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
  min-height: 400px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(11,18,32,0.4);
}
@media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; } }
.blog-featured-img {
  overflow: hidden;
  position: relative;
}
.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform .5s var(--ease), opacity .3s;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); opacity: 0.8; }
.blog-featured-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-body .blog-tag { color: var(--frost); }
.blog-featured-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.blog-featured-body p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; font-size: 0.98rem; }
.blog-featured-body .blog-meta { border-color: var(--line); color: rgba(255,255,255,0.5); }
.blog-featured-body .read-time { color: var(--frost); }

/* Filter tabs */
.blog-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  color: var(--slate);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Article page */
.article-hero {
  background: var(--ink);
  padding: 148px var(--pad) 72px;
  position: relative;
  overflow: hidden;
}
.article-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  max-width: 20ch;
  color: var(--white);
}
.article-meta-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}
.article-meta-row .blog-tag { margin-bottom: 0; }
.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 3rem;
  display: block;
}

/* Article body */
.article-body {
  max-width: 740px;
}
.article-body h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.article-body p {
  color: #374151;
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 1.3rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3rem;
}
.article-body li {
  color: #374151;
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.article-body strong { color: var(--ink); }
.article-body a { color: var(--blue); text-decoration: underline; }

.article-callout {
  background: linear-gradient(135deg, rgba(94,234,212,0.08), rgba(59,130,246,0.08));
  border-left: 4px solid var(--frost);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.article-callout p { margin-bottom: 0; color: var(--ink); font-weight: 500; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.toc-list a {
  color: var(--slate);
  font-size: 0.92rem;
  transition: color .2s;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.toc-list a:hover { color: var(--blue); }

.related-post {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.related-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.related-post-img {
  width: 60px; height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ink);
}
.related-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: color .2s;
}
.related-post:hover .related-post-title { color: var(--blue); }
.related-post-date { font-size: 0.78rem; color: var(--slate); margin-top: 0.3rem; }

/* Blog search */
.blog-search-wrap {
  position: relative;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.blog-search-wrap input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
.blog-search-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.blog-search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

/* No results */
.no-results {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--slate);
  grid-column: 1/-1;
}
.no-results.show { display: block; }

/* HOW TO ADD A BLOG POST — Guide banner */
.add-post-guide {
  background: linear-gradient(135deg, #0B1220, #1B2F4A);
  border: 1px solid rgba(94,234,212,0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  display: none; /* hidden by default — only shows in edit mode */
}
