/* ============================================================
   blog.css — SQUAREI Studio Journal
   Inspired by: Dezeen · ArchDaily · Foster+Partners · ZHA
   Editorial-first, image-dominant, premium architectural feel
   Mobile-first | DM Sans | Brand accent: #e65d38
   ============================================================ */

/* ── Base overrides ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body[data-section="blog"] {
  background: #ffffff;
  color: #111111;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Page wrapper ── */
.blog-wrap {
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
  overflow: visible;
}

/* ──────────────────────────────────────────
   CATEGORY FILTER BAR & INLINE GLASS SEARCH
   ──────────────────────────────────────────*/
/* ── Category filter — overlaid at TOP of hero image ── */
.blog-cats {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  /* Gradient to ensure buttons always readable over any photo */
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  padding: clamp(14px, 2vw, 22px) clamp(20px, 5vw, 80px) clamp(20px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.blog-cats-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: all;
  flex: 1;
  min-width: 0;
}
.blog-cats-scroll::-webkit-scrollbar { display: none; }

/* Glass pill buttons */
.blog-cat-btn {
  padding: 7px 16px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;          /* full pill shape */
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s,
              box-shadow 0.2s, transform 0.15s;
}

/* Hover — clearly more glass, brighter */
.blog-cat-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* Active — solid white pill with orange text = maximum contrast */
.blog-cat-btn.active {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,1);
  color: #e65d38;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.blog-cat-btn.active:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ── Inline Glass Search Pill (Top Right, matching category button design & size) ── */
.blog-search-wrap {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  flex-shrink: 0;
  width: 210px;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.blog-search-wrap:hover,
.blog-search-wrap:focus-within {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.blog-search-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}

.blog-search-input {
  flex: 1;
  padding: 0;
  border: none;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  outline: none;
  min-width: 0;
}
.blog-search-input::placeholder { color: rgba(255,255,255,0.6); }

.blog-search-btn {
  padding: 5px 12px;
  background: #e65d38;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.blog-search-btn:hover { background: #d04e2a; }

/* ── Google-style Auto-suggest Dropdown ── */
.blog-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 8px 0;
  display: none;
  z-index: 1000;
  overflow: hidden;
  box-sizing: border-box;
  text-transform: none;
}

.blog-search-suggest.open {
  display: block;
  animation: suggestFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes suggestFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggest-header {
  padding: 6px 14px 6px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.suggest-item:hover,
.suggest-item.active-item {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #e65d38;
}

.suggest-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.suggest-info {
  flex: 1;
  min-width: 0;
}

.suggest-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-title mark {
  background: transparent;
  color: #e65d38;
  font-weight: 700;
}

.suggest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.suggest-cat {
  color: #e65d38;
  font-weight: 700;
}

.suggest-footer {
  padding: 8px 14px;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}
.suggest-footer:hover {
  color: #fff;
}
.suggest-footer span {
  color: #e65d38;
}

/* ── Hero section — position:relative anchors top glass bar ── */
.blog-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* ──────────────────────────────────────────
   3-POST AUTO-CHANGING HERO SLIDER
   ──────────────────────────────────────────*/
.blog-hero-slider {
  position: relative;
  width: 100%;
  height: clamp(440px, 60vw, 760px);
  background: #111;
  overflow: hidden;
}

.blog-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  z-index: 1;
}

.blog-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image container & Smooth Fit */
.blog-hero-slide .blog-hero-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.blog-hero-slide .blog-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.05);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.7);
}

.blog-hero-slide.active .blog-hero-img-wrap img {
  transform: scale(1.0);
}

.blog-hero-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #444;
}

/* Text overlay — bottom-left */
.blog-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
  pointer-events: none;
}
.blog-hero-overlay * {
  pointer-events: auto;
}

.blog-hero-cat {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e65d38;
  background: rgba(230,93,56,0.15);
  border: 1px solid rgba(230,93,56,0.4);
  padding: 3px 10px;
  margin-bottom: 14px;
}
.blog-hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
  max-width: 740px;
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.blog-hero-meta-div {
  width: 1px; height: 10px;
  background: rgba(255,255,255,0.25);
}
.blog-hero-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: gap 0.25s;
}
.blog-hero-slide:hover .blog-hero-read { gap: 14px; }
.blog-hero-arrow { display: inline-block; transition: transform 0.25s; }
.blog-hero-slide:hover .blog-hero-arrow { transform: translateX(4px); }

/* Slide progress indicator dots */
.blog-hero-dots {
  position: absolute;
  bottom: clamp(24px, 4vw, 44px);
  right: clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: all;
}

.blog-hero-dot {
  width: 24px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s, transform 0.2s;
}

.blog-hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scaleY(1.3);
}

.blog-hero-dot.active {
  width: 44px;
  background: #e65d38;
  box-shadow: 0 2px 10px rgba(230, 93, 56, 0.5);
}

/* No hero state */
.blog-hero-empty {
  height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px dashed #e0e0e0;
  color: #ccc; text-align: center;
  gap: 10px;
}
.blog-hero-empty span { font-size: 2.5rem; }
.blog-hero-empty p { font-size: 0.8rem; color: #aaa; }

/* ──────────────────────────────────────────
   SECTION DIVIDER
   ──────────────────────────────────────────*/
.blog-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 60px) clamp(20px, 5vw, 80px) 20px;
}
.blog-section-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-section-label::after {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: #ddd;
}
.blog-section-count {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #ccc;
}

/* ──────────────────────────────────────────
   BLOG GRID
   3-col desktop, 2-col tablet, 1-col mobile
   Sharp cards — no radius, image-first
   ──────────────────────────────────────────*/
.blog-grid-wrap {
  padding: 0 clamp(20px, 5vw, 80px) clamp(60px, 8vw, 120px);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e8e8e8; /* gap lines via background on grid */
}

.blog-card {
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.2s;
}
.blog-card:hover { background: #fafafa; }

/* Card image */
.blog-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #d0d0d0;
  background: #f5f5f5;
}

/* Card category pill */
.blog-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: #e65d38;
  padding: 3px 9px;
}

/* Card body */
.blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 2px solid transparent;
  transition: border-color 0.2s;
}
.blog-card:hover .blog-card-body { border-top-color: #e65d38; }

.blog-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #111;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: #e65d38; }

.blog-card-excerpt {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbb;
}
.blog-card-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #ddd;
}
.blog-card-readlink {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.2s;
}
.blog-card:hover .blog-card-readlink {
  color: #e65d38;
  gap: 9px;
}

/* Skeleton loaders */
.blog-card-skel {
  background: #fff;
  overflow: hidden;
}
.skel-img {
  height: 220px;
  background: linear-gradient(90deg, #f4f4f4 25%, #e8e8e8 50%, #f4f4f4 75%);
  background-size: 400% 100%;
  animation: skel-anim 1.5s ease-in-out infinite;
}
.skel-body { padding: 22px; }
.skel-line {
  height: 12px;
  border-radius: 2px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, #f4f4f4 25%, #e8e8e8 50%, #f4f4f4 75%);
  background-size: 400% 100%;
  animation: skel-anim 1.5s ease-in-out infinite;
}
.skel-line.w100 { width: 100%; }
.skel-line.w80  { width: 80%; }
.skel-line.w55  { width: 55%; }
@keyframes skel-anim {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

/* Empty state */
.blog-empty {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  color: #bbb;
}
.blog-empty .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.blog-empty h3 { font-size: 0.9rem; color: #888; margin-bottom: 6px; font-weight: 600; }
.blog-empty p  { font-size: 0.78rem; color: #bbb; line-height: 1.7; }

/* Load more */
.blog-more {
  padding: 32px clamp(20px, 5vw, 80px) 0;
  text-align: center;
}
.blog-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1px solid #ddd;
  background: transparent;
  color: #555;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.blog-more-btn:hover { border-color: #111; color: #111; }

/* ──────────────────────────────────────────
   ARTICLE READER OVERLAY
   Centered editorial column — like The Guardian / Dezeen articles
   ──────────────────────────────────────────*/

/* Reading progress bar */
.reader-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: #e65d38;
  z-index: 100010;
  transition: width 0.1s linear;
  pointer-events: none;
}

.blog-reader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100001;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.blog-reader.open { transform: translateY(0); }
body.reader-open { overflow: hidden; }

/* Close button */
.reader-close {
  position: fixed;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #111;
  font-size: 1rem;
  cursor: pointer;
  z-index: 100002;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.reader-close:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Reader layout */
.reader-body {
  min-height: 100vh;
}

/* Full-width hero image */
.reader-hero {
  width: 100%;
  height: clamp(280px, 50vw, 580px);
  overflow: hidden;
  background: #111;
  position: relative;
}
.reader-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.reader-hero-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  font-size: 6rem; color: #333;
}

/* Article column */
.reader-col {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 48px) clamp(60px, 8vw, 100px);
}

.reader-kicker {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e65d38;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.reader-kicker::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: #e65d38;
}

.reader-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #111;
  margin-bottom: 20px;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #efefef;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}
.reader-meta-sep {
  width: 1px; height: 10px;
  background: #e0e0e0;
}

/* Article typography — editorial standard */
.reader-content {
  font-size: 1.02rem;
  line-height: 1.88;
  color: #2a2a2a;
  font-weight: 300;
}
.reader-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid #efefef;
  line-height: 1.2;
}
.reader-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 32px 0 10px;
  line-height: 1.3;
}
.reader-content p { margin-bottom: 22px; }
.reader-content ul,
.reader-content ol {
  margin: 0 0 22px 24px;
}
.reader-content li { margin-bottom: 8px; line-height: 1.75; }
.reader-content blockquote {
  border-left: 3px solid #e65d38;
  padding: 16px 24px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.08rem;
  color: #555;
  line-height: 1.7;
  background: #fafafa;
}
.reader-content a {
  color: #e65d38;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.reader-content a:hover { opacity: 0.7; }
.reader-content strong { font-weight: 700; color: #111; }

/* Tags */
.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #efefef;
}
.reader-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid #e0e0e0;
  color: #888;
  transition: all 0.2s;
  cursor: default;
}
.reader-tag:hover { border-color: #111; color: #111; }

/* Reader Bottom Read-More & Share Section (Matches Screenshot) */
.reader-read-more-box {
  font-size: 1rem;
  color: #475569;
  margin-top: 32px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.reader-read-more-link {
  color: #e65d38;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s;
}
.reader-read-more-link:hover {
  color: #c94b28;
}

.reader-share-section {
  margin-top: 28px;
  margin-bottom: 28px;
}
.reader-share-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
}
.reader-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reader-social-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reader-social-pill:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.reader-share-main-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff5f2;
  border: 1px solid #fcdad1;
  border-radius: 8px;
  color: #e65d38;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.reader-share-main-pill:hover {
  background: #ffebe4;
  border-color: #e65d38;
  transform: translateY(-2px);
}
.reader-bottom-hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Related posts */
.reader-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #111;
}
.reader-related-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 20px;
}
.reader-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.reader-rel-card {
  cursor: pointer;
  padding: 18px;
  border: 1px solid #efefef;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.reader-rel-card:hover { border-color: #111; }
.reader-rel-cat {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e65d38;
}
.reader-rel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  transition: color 0.2s;
}
.reader-rel-card:hover .reader-rel-title { color: #e65d38; }

/* ──────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   Cards slide up on scroll like ArchDaily
   ──────────────────────────────────────────*/
.blog-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.blog-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid cards */
.blog-reveal:nth-child(2) { transition-delay: 0.08s; }
.blog-reveal:nth-child(3) { transition-delay: 0.16s; }
.blog-reveal:nth-child(4) { transition-delay: 0.06s; }
.blog-reveal:nth-child(5) { transition-delay: 0.12s; }
.blog-reveal:nth-child(6) { transition-delay: 0.18s; }

/* ──────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────*/

/* Tablet 768px+ */
@media (min-width: 768px) {
  .blog-masthead {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: end;
  }
  .blog-masthead-headline { grid-column: 1 / -1; }
  .blog-masthead-sub { grid-column: 1 / -1; }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reader-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop 960px+ */
@media (min-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reader-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Large 1200px+ */
@media (min-width: 1200px) {
  .blog-card-img { height: 260px; }
}

/* Mobile max 640px */
@media (max-width: 640px) {
  .blog-cats {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }
  .blog-search-wrap {
    width: 100%;
  }
  .blog-hero { padding: 0; }
  .blog-section-bar { padding: 24px 16px 16px; }
  .blog-grid-wrap { padding: 0 16px 56px; }
  .blog-more { padding: 24px 16px 0; }
  .reader-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}
