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

:root {
  --bg:           #0b0e0a;
  --surface:      #101310;
  --card:         #151814;
  --border:       rgba(148,188,128,0.09);
  --border-h:     rgba(148,188,128,0.26);

  /* Sage / beige-green */
  --sage:         #96bf80;
  --sage-light:   #b8d4a2;
  --sage-dim:     rgba(150,191,128,0.11);
  --sage-border:  rgba(150,191,128,0.22);

  --text:         #eceee7;
  --muted:        #76816e;
  --muted-l:      #9aaa90;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999; opacity: 0.45;
}

/* ─── NAV ─── */

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 5rem 5% 5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 58% 42%, rgba(150,191,128,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 32% 32% at 4% 88%, rgba(150,191,128,0.04) 0%, transparent 65%);
}
.hero-vline {
  position: absolute; top: 0; bottom: 0; right: 35%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.hero-inner { display: flex; gap: 5.5rem; align-items: center; width: 100%; position: relative; z-index: 1; }
.hero-content { flex: 1; animation: fadeUp 0.9s ease both; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sage-dim); border: 1px solid var(--sage-border);
  color: var(--sage); font-size: 0.69rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.37rem 1rem; border-radius: 2rem; margin-bottom: 2rem;
}
.hero-badge::before { content: '●'; font-size: 0.65rem; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.2} }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.01em; margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--sage); font-weight: 700; }

.hero-sub {
  font-size: 1rem; color: var(--muted-l);
  max-width: 450px; margin-bottom: 2.6rem; line-height: 1.85;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--sage); color: #0b0e0a;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.83rem; letter-spacing: 0.05em;
  padding: 0.85rem 2rem; border-radius: 0.25rem;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--sage-light); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--border-h); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-weight: 400;
  font-size: 0.83rem; letter-spacing: 0.06em;
  padding: 0.85rem 2rem; border-radius: 0.25rem;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--sage); color: var(--sage); transform: translateY(-2px); }

/* ─── STATS ─── */
.hero-stats {
  display: flex; flex-direction: column; gap: 1.1rem; flex-shrink: 0;
  animation: fadeUp 0.9s 0.25s ease both;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 1.35rem 2rem; border-radius: 0.4rem;
  text-align: center; min-width: 152px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--sage-border); }
.stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--sage); line-height: 1;
}
.stat-card .lbl {
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}

/* ─── SECTION COMMON ─── */
section { padding: 7rem 5%; }
.sec-label {
  font-size: 0.69rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 0.85rem;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 1.3rem;
}

/* ─── TESTIMONIAL ─── */
.testi-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.7rem 5%;
  display: flex; align-items: center; gap: 2.4rem;
}
.stars { color: var(--sage); font-size: 0.95rem; letter-spacing: 0.14em; }
.testi-text {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--text); max-width: 660px; line-height: 1.65;
}
.tdiv { width: 1px; height: 52px; background: var(--border); flex-shrink: 0; }
.testi-author { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; }

/* ─── SERVICES ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem; margin-top: 3.2rem;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 2.3rem 1.8rem; border-radius: 0.4rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--sage), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.service-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }
.s-icon { font-size: 1.65rem; margin-bottom: 1rem; }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem; font-weight: 700;
  margin-bottom: 0.6rem; color: var(--text);
}
.service-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.75; }

/* ─── PORTFOLIO ─── */
#portfolio {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.port-intro { max-width: 540px; margin-bottom: 3.2rem; }
.port-intro p { color: var(--muted-l); font-size: 0.96rem; }

.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.port-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.4rem; overflow: hidden;
  display: block; text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.port-item:hover {
  border-color: var(--border-h);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.port-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s ease, filter 0.55s ease;
  filter: brightness(0.72) saturate(0.75);
}
.port-item:hover img { transform: scale(1.08); filter: brightness(0.5) saturate(0.65); }

.port-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.3rem;
  background: linear-gradient(to top, rgba(11,14,10,0.88) 0%, transparent 55%);
}
.port-arrow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  width: 42px; height: 42px;
  background: var(--sage-dim); border: 1px solid var(--sage-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); font-size: 1rem;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
}
.port-item:hover .port-arrow { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.port-tag {
  display: inline-block;
  background: var(--sage-dim); border: 1px solid var(--sage-border);
  color: var(--sage); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.22rem 0.65rem;
  border-radius: 2rem; margin-bottom: 0.45rem; width: fit-content;
}
.port-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.3;
}
.port-sub { font-size: 0.72rem; color: var(--muted-l); margin-top: 0.18rem; }

/* ─── ABOUT ─── */
.about-inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 5rem; align-items: center;
}
.about-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.4rem; padding: 2.7rem 2.4rem; position: relative;
}
.about-accent {
  position: absolute; top: -1px; left: 2.4rem;
  width: 52px; height: 3px;
  background: var(--sage); border-radius: 0 0 2px 2px;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.8rem; }
.skill-tag {
  background: var(--sage-dim); border: 1px solid var(--sage-border);
  color: var(--sage); font-size: 0.71rem; letter-spacing: 0.06em;
  padding: 0.38rem 0.85rem; border-radius: 2rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.skill-tag img {
  width: 14px; height: 14px; object-fit: contain;
  flex-shrink: 0; display: block;
}
.about-text p { color: var(--muted-l); margin-bottom: 1.15rem; font-size: 0.94rem; }
.about-text p strong { color: var(--text); font-weight: 500; }

/* ─── PROCESS ─── */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 3.2rem; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 2.35rem; left: 2.5rem; right: 2.5rem; height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 10%, var(--border) 90%, transparent);
}
.step { padding: 0 2rem 2rem; }
.step-num {
  width: 4.7rem; height: 4.7rem; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--sage);
  margin-bottom: 1.3rem; position: relative; z-index: 1;
}
.step h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.83rem; color: var(--muted); line-height: 1.75; }

/* ─── CTA ─── */
.cta-sec {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center; position: relative; overflow: hidden;
}
.cta-sec::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 480px; height: 360px;
  background: radial-gradient(ellipse, rgba(150,191,128,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-sec h2 {
  max-width: 620px; margin: 0 auto 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  word-break: break-word; hyphens: auto;
}
.cta-sec > p { color: var(--muted-l); max-width: 450px; margin: 0 auto 2.4rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  padding: 2.1rem 5%;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.77rem; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--sage); }
.foot-links { display: flex; gap: 1.8rem; }

/* ─── SMOOTH SCROLL ─── */
html { scroll-behavior: smooth; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(150,191,128,0); }
  50%       { box-shadow: 0 0 18px 2px rgba(150,191,128,0.12); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Scroll reveal base — visible by default, JS adds animate-ready */
.reveal {
  opacity: 1; transform: none;
  transition: opacity 0.72s cubic-bezier(0.22,1,0.36,1),
              transform 0.72s cubic-bezier(0.22,1,0.36,1);
}
.reveal.animate-ready          { opacity: 0; transform: translateY(28px); }
.reveal.animate-ready.from-left  { transform: translateX(-30px); }
.reveal.animate-ready.from-right { transform: translateX(30px); }
.reveal.animate-ready.scale-in   { transform: scale(0.93); }
.reveal.animate-ready.visible  { opacity: 1; transform: none !important; }

/* Stat card float on hero load */
.hero-stats .stat-card:nth-child(1) { animation: countUp 0.8s 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.hero-stats .stat-card:nth-child(2) { animation: countUp 0.8s 0.68s cubic-bezier(0.22,1,0.36,1) both; }
.hero-stats .stat-card:nth-child(3) { animation: countUp 0.8s 0.86s cubic-bezier(0.22,1,0.36,1) both; }

/* Gentle float on stat cards */
.stat-card:hover { animation: floatY 2.4s ease-in-out infinite; }

/* Hero badge pulse ring */
.hero-badge {
  position: relative;
}
.hero-badge::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 2rem;
  border: 1px solid rgba(150,191,128,0.18);
  animation: borderGlow 3s ease-in-out infinite;
  pointer-events: none;
}


/* Shimmer effect on primary buttons */
.btn-primary {
  background-size: 200% auto;
  background-image: linear-gradient(120deg, var(--sage) 0%, var(--sage-light) 50%, var(--sage) 100%);
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(150,191,128,0.22);
}

/* Button outline glow */
.btn-outline:hover {
  box-shadow: 0 0 0 1px var(--sage), 0 8px 20px rgba(150,191,128,0.1);
  transform: translateY(-3px);
}

/* Service card icon bounce on hover */
.service-card:hover .s-icon {
  display: inline-block;
  animation: floatY 1.4s ease-in-out infinite;
}

/* Portfolio item subtle zoom cursor */
.port-item { cursor: pointer; }

/* Step number ring glow */
.step:hover .step-num {
  border-color: var(--sage-border);
  box-shadow: 0 0 0 4px rgba(150,191,128,0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Skill tag hover */
.skill-tag {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.skill-tag:hover {
  background: rgba(150,191,128,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150,191,128,0.12);
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(to right, var(--sage), var(--sage-light));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── BLOB CURSOR (inspired by harshjsx.dev) ─── */
#cursor-blob {
  position: fixed; top: 0; left: 0; z-index: 298;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,191,128,0.13) 0%, rgba(150,191,128,0.04) 50%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.3s ease;
  will-change: transform;
}
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: transform;
  box-shadow: 0 0 10px rgba(150,191,128,0.6);
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 299;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(150,191,128,0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.25s cubic-bezier(0.22,1,0.36,1),
              height 0.25s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s ease, opacity 0.2s ease;
  backdrop-filter: blur(0px);
}
body.cursor-hover #cursor-dot  { width: 12px; height: 12px; background: var(--sage-light); box-shadow: 0 0 18px rgba(150,191,128,0.8); }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: rgba(150,191,128,0.35); }
body.cursor-hover #cursor-blob { width: 480px; height: 480px; }
body.cursor-clicking #cursor-dot  { width: 5px; height: 5px; }
body.cursor-clicking #cursor-ring { width: 28px; height: 28px; }

@media (pointer: coarse) {
  #cursor-dot, #cursor-ring, #cursor-blob { display: none; }
}

/* ═══════════════════════
   MOBILE RESPONSIVE
═══════════════════════ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .port-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding: 5rem 5% 4rem; }
  .hero-inner { flex-direction: column; gap: 2.8rem; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
  .stat-card { flex: 1; min-width: 110px; }
  .hero-vline { display: none; }

  .testi-strip { flex-direction: column; text-align: center; gap: 1.3rem; }
  .tdiv { width: 52px; height: 1px; }

  .services-grid { grid-template-columns: 1fr; }

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

  .about-inner { grid-template-columns: 1fr; gap: 3rem; }

  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }

  footer { flex-direction: column; gap: 1.2rem; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 500px) {
  body { font-size: 1.05rem; line-height: 1.78; }
  h1 { font-size: 2.15rem; }
  .port-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .process-steps { grid-template-columns: 1fr; }
  section { padding: 5rem 5%; }
  .hero-stats { gap: 0.75rem; }
}


/* ════════════════════════════════════════════
 BLOG STYLES
════════════════════════════════════════════ */

/* ─── BLOG HERO ─── */
.blog-hero, .post-hero {
padding: 5rem 5% 4rem;
background: var(--bg);
position: relative; overflow: hidden;
border-bottom: 1px solid var(--border);
}
.blog-hero-bg {
position: absolute; inset: 0;
background:
  radial-gradient(ellipse 60% 50% at 30% 50%, rgba(150,191,128,0.06) 0%, transparent 70%),
  radial-gradient(ellipse 30% 40% at 90% 20%, rgba(150,191,128,0.04) 0%, transparent 65%);
pointer-events: none;
}
.blog-hero-inner, .post-hero-inner { max-width: 760px; position: relative; z-index: 1; }
.blog-back {
display: inline-flex; align-items: center; gap: 0.4rem;
color: var(--muted); text-decoration: none;
font-size: 0.78rem; letter-spacing: 0.08em;
margin-bottom: 2rem; display: block; transition: color 0.2s;
}
.blog-back:hover { color: var(--sage); }
.blog-hero-title {
font-family: 'Playfair Display', serif;
font-size: clamp(2.6rem, 5.5vw, 4.8rem);
font-weight: 900; line-height: 1.08;
letter-spacing: -0.01em; margin-bottom: 1.2rem; margin-top: 0.5rem;
}
.blog-hero-title em { font-style: italic; color: var(--sage); }
.blog-hero-sub { color: var(--muted-l); font-size: 1rem; max-width: 520px; line-height: 1.8; }

/* ─── BLOG MAIN ─── */
.blog-main { padding: 5rem 5%; }
.blog-container { max-width: 1200px; margin: 0 auto; }

/* ─── BLOG GRID ─── */
.blog-grid {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: 1.5rem; margin-bottom: 4rem;
}
.blog-card--featured {
grid-column: 1 / -1; display: grid;
grid-template-columns: 1.2fr 1fr; gap: 0;
}
.blog-card--featured .blog-card-img-wrap { border-radius: 0.4rem 0 0 0.4rem; height: 100%; }
.blog-card--featured .blog-card-body { padding: 2.8rem; border-radius: 0 0.4rem 0.4rem 0; border-left: none; }
.blog-card--featured .blog-card-title { font-size: 1.7rem; }
.blog-card--featured .blog-card-excerpt { font-size: 0.97rem; max-width: 420px; }

/* ─── BLOG CARD ─── */
.blog-card {
background: var(--card); border: 1px solid var(--border);
border-radius: 0.4rem; overflow: hidden;
display: flex; flex-direction: column;
transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
border-color: var(--border-h); transform: translateY(-5px);
box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.blog-card-img-wrap { display: block; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.blog-card--featured .blog-card-img-wrap { aspect-ratio: unset; }
.blog-card-img {
width: 100%; height: 100%; object-fit: cover; display: block;
transition: transform 0.55s ease, filter 0.4s ease;
filter: brightness(0.8) saturate(0.85);
}
.blog-card:hover .blog-card-img { transform: scale(1.05); filter: brightness(0.65) saturate(0.75); }
.blog-card-img-overlay {
position: absolute; inset: 0;
background: linear-gradient(to top, rgba(11,14,10,0.5) 0%, transparent 60%);
}
.blog-card-img-placeholder {
background: var(--surface); display: flex; align-items: center;
justify-content: center; font-size: 2.5rem; text-decoration: none; aspect-ratio: 16/9;
}
.blog-card-body {
padding: 1.8rem; display: flex; flex-direction: column; flex: 1;
border-top: 1px solid var(--border);
}
.blog-card--featured .blog-card-body { border-top: none; }
.blog-card-meta {
display: flex; align-items: center; gap: 0.75rem;
flex-wrap: wrap; margin-bottom: 0.9rem;
}
.blog-card-cat {
background: var(--sage-dim); border: 1px solid var(--sage-border);
color: var(--sage); font-size: 0.64rem; letter-spacing: 0.12em;
text-transform: uppercase; padding: 0.22rem 0.65rem; border-radius: 2rem;
}
.blog-card-date, .blog-card-read { font-size: 0.73rem; color: var(--muted); letter-spacing: 0.04em; }
.blog-card-date::before { content: '·'; margin-right: 0.75rem; color: var(--border-h); }
.blog-card-title {
font-family: 'Playfair Display', serif;
font-size: 1.15rem; font-weight: 700; line-height: 1.3;
margin-bottom: 0.75rem; color: var(--text);
}
.blog-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: var(--sage); }
.blog-card-excerpt { font-size: 0.87rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.4rem; flex: 1; }
.blog-card-link {
display: inline-flex; align-items: center; gap: 0.4rem;
color: var(--sage); font-size: 0.8rem; font-weight: 500;
letter-spacing: 0.06em; text-decoration: none;
transition: gap 0.2s, color 0.2s; margin-top: auto;
}
.blog-card-link:hover { gap: 0.7rem; color: var(--sage-light); }

/* ─── BLOG NAV ─── */
.blog-nav { border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 1rem; }
.blog-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.blog-nav-prev a, .blog-nav-next a, .blog-nav-all {
color: var(--muted-l); text-decoration: none;
font-size: 0.83rem; letter-spacing: 0.06em;
padding: 0.65rem 1.3rem; border: 1px solid var(--border);
border-radius: 0.25rem; display: inline-block;
transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.blog-nav-prev a:hover, .blog-nav-next a:hover, .blog-nav-all:hover {
color: var(--sage); border-color: var(--sage-border); transform: translateY(-2px);
}
.blog-nav-disabled { color: var(--muted); font-size: 0.83rem; letter-spacing: 0.06em; opacity: 0.4; padding: 0.65rem 1.3rem; }
.blog-nav-pages .page-numbers { list-style: none; display: flex; gap: 0.5rem; align-items: center; }
.blog-nav-pages .page-numbers li a,
.blog-nav-pages .page-numbers li span {
color: var(--muted-l); text-decoration: none; font-size: 0.83rem;
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
border: 1px solid var(--border); border-radius: 0.25rem;
transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.blog-nav-pages .page-numbers li a:hover { color: var(--sage); border-color: var(--sage-border); }
.blog-nav-pages .page-numbers li span.current {
background: var(--sage-dim); border-color: var(--sage-border); color: var(--sage); font-weight: 600;
}

/* ─── NO POSTS ─── */
.blog-empty { text-align: center; padding: 6rem 2rem; }
.blog-empty-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.blog-empty h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.blog-empty p { color: var(--muted-l); max-width: 400px; margin: 0 auto 2rem; }

/* ─── SINGLE POST ─── */
.post-hero { padding-bottom: 0; border-bottom: none; }
.post-hero-inner { max-width: 760px; }
.post-meta-top { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.2rem; margin-top: 1.5rem; }
.post-title {
font-family: 'Playfair Display', serif;
font-size: clamp(2rem, 4.5vw, 3.6rem);
font-weight: 900; line-height: 1.1;
letter-spacing: -0.01em; margin-bottom: 2rem;
}
.post-hero-img { margin: 0 -5% 0; max-height: 480px; overflow: hidden; }
.post-thumb { width: 100%; height: 480px; object-fit: cover; display: block; filter: brightness(0.85) saturate(0.9); }
.post-main { padding: 4rem 5%; }
.post-container { max-width: 760px; margin: 0 auto; }
.post-content { color: var(--text); font-size: 1.02rem; line-height: 1.85; }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; margin: 2.8rem 0 1rem; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.8rem; }
.post-content p { margin-bottom: 1.4rem; color: var(--muted-l); }
.post-content strong { color: var(--text); font-weight: 500; }
.post-content a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--sage-light); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; color: var(--muted-l); }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
border-left: 3px solid var(--sage); margin: 2rem 0; padding: 1rem 1.5rem;
background: var(--sage-dim); border-radius: 0 0.3rem 0.3rem 0;
font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; color: var(--text);
}
.post-content img { width: 100%; border-radius: 0.4rem; margin: 1.5rem 0; border: 1px solid var(--border); }
.post-content code {
background: var(--card); border: 1px solid var(--border);
color: var(--sage); padding: 0.15rem 0.45rem; border-radius: 0.2rem; font-size: 0.88em;
}
.post-content pre {
background: var(--card); border: 1px solid var(--border);
padding: 1.5rem; border-radius: 0.4rem; overflow-x: auto; margin-bottom: 1.4rem;
}
.post-content pre code { background: none; border: none; padding: 0; color: var(--muted-l); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--border); }
.post-nav { margin-top: 3rem; }
.blog-nav-all { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── AUTHOR STRIP ─── */
.author-strip { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 5%; }
.author-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.author-avatar {
width: 56px; height: 56px; border-radius: 50%;
background: var(--sage-dim); border: 1px solid var(--sage-border);
color: var(--sage); font-family: 'Playfair Display', serif;
font-size: 1.4rem; font-weight: 700;
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.author-bio { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.blog-cta-strip { padding: 5rem 5%; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
.blog-grid { grid-template-columns: 1fr 1fr; }
.blog-card--featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
.blog-card--featured .blog-card-img-wrap { border-radius: 0.4rem 0.4rem 0 0; aspect-ratio: 16/9; }
.blog-card--featured .blog-card-body { border-radius: 0 0 0.4rem 0.4rem; border-top: 1px solid var(--border); padding: 1.8rem; }
}
@media (max-width: 600px) {
.blog-grid { grid-template-columns: 1fr; }
.blog-nav-inner { flex-direction: column; align-items: stretch; text-align: center; }
.blog-nav-pages { display: none; }
.author-inner { flex-direction: column; text-align: center; }
}


/* ════════════════════════════════════════════
   NEW FEATURES — Contact Form, Ticker, Back to Top,
   Reading Progress, Related Posts, Exit Popup
════════════════════════════════════════════ */

/* ─── SOCIAL PROOF TICKER ─── */
.ticker-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 5%;
  overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 1.8rem; flex-wrap: wrap;
}
.ticker-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--muted-l); letter-spacing: 0.04em;
}
.ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 6px rgba(150,191,128,0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.ticker-count {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--sage);
}
.ticker-divider {
  color: var(--border-h); font-size: 1.2rem; line-height: 1;
}
@media (max-width: 600px) {
  .ticker-inner { gap: 1rem; }
  .ticker-divider { display: none; }
  .ticker-item { font-size: 0.73rem; }
}

/* ─── CTA SECTION — 2-COLUMN WITH FORM ─── */
.cta-sec { padding: 7rem 5%; }
.cta-sec-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
  max-width: 1100px; margin: 0 auto;
}
.cta-left .sec-label { margin-bottom: 0.8rem; }
.cta-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 1.2rem;
}
.cta-left p { color: var(--muted-l); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.cta-trust {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-top: 0.5rem;
}
.cta-trust span {
  font-size: 0.8rem; color: var(--sage);
  letter-spacing: 0.04em;
  background: var(--sage-dim);
  border: 1px solid var(--sage-border);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  width: fit-content;
}

/* ─── CONTACT FORM ─── */
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2.4rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cf-field { display: flex; flex-direction: column; gap: 0.45rem; }
.cf-field label {
  font-size: 0.73rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--muted); }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--sage-border);
  box-shadow: 0 0 0 3px rgba(150,191,128,0.08);
}
.cf-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2376816e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.cf-field select option { background: var(--card); }
.cf-field textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.cf-submit { width: 100%; justify-content: center; padding: 1rem; font-size: 0.88rem; border: none; cursor: pointer; }
.cf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.cf-success { color: var(--sage); font-size: 0.84rem; text-align: center; margin-top: 0.5rem; }
.cf-error { color: #e07070; font-size: 0.84rem; text-align: center; margin-top: 0.5rem; }

@media (max-width: 900px) {
  .cta-sec-inner { grid-template-columns: 1fr; gap: 3rem; }
  .cf-row { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .contact-form-wrap { padding: 1.6rem; }
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
  width: 44px; height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted-l);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
#back-to-top:hover {
  border-color: var(--sage-border); color: var(--sage);
  box-shadow: 0 0 16px rgba(150,191,128,0.2);
}

/* ─── READING PROGRESS BAR ─── */
#reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200;
  background: rgba(150,191,128,0.1);
  pointer-events: none;
}
#reading-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--sage), var(--sage-light));
  transition: width 0.1s linear;
}

/* ─── RELATED POSTS ─── */
.related-posts {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 5rem 5%;
}
.related-inner { max-width: 760px; margin: 0 auto; }
.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 2.5rem; margin-top: 0.5rem;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.related-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.4rem; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.related-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.related-card-img {
  aspect-ratio: 16/9; overflow: hidden;
}
.related-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease, filter 0.3s;
  filter: brightness(0.8) saturate(0.85);
}
.related-card:hover .related-card-img img {
  transform: scale(1.06); filter: brightness(0.65);
}
.related-card-placeholder {
  background: var(--surface); display: flex;
  align-items: center; justify-content: center; font-size: 1.8rem;
}
.related-card-body { padding: 1.2rem; flex: 1; }
.related-card-cat {
  display: inline-block;
  background: var(--sage-dim); border: 1px solid var(--sage-border);
  color: var(--sage); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.18rem 0.55rem;
  border-radius: 2rem; margin-bottom: 0.6rem;
}
.related-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.5rem; color: var(--text);
  transition: color 0.2s;
}
.related-card:hover h3 { color: var(--sage); }
.related-card-date {
  font-size: 0.7rem; color: var(--muted);
}
@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ─── EXIT INTENT POPUP ─── */
.exit-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  animation: fadeInOverlay 0.3s ease;
}
@keyframes fadeInOverlay { from{opacity:0} to{opacity:1} }

.exit-popup-box {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 501;
  background: var(--card);
  border: 1px solid var(--border-h);
  border-radius: 0.6rem;
  padding: 3rem 2.8rem;
  max-width: 500px; width: 90%;
  text-align: center;
  animation: popupIn 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
@keyframes popupIn {
  from { opacity:0; transform: translate(-50%,-46%) scale(0.95); }
  to   { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.exit-popup-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--muted); font-size: 1rem; cursor: pointer;
  padding: 0.3rem 0.5rem; border-radius: 0.2rem;
  transition: color 0.2s;
}
.exit-popup-close:hover { color: var(--text); }
.exit-popup-badge {
  display: inline-block;
  background: var(--sage-dim); border: 1px solid var(--sage-border);
  color: var(--sage); font-size: 0.65rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.3rem 0.9rem;
  border-radius: 2rem; margin-bottom: 1.2rem;
}
.exit-popup-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  margin-bottom: 0.9rem; line-height: 1.2;
}
.exit-popup-box p {
  color: var(--muted-l); font-size: 0.9rem;
  line-height: 1.75; margin-bottom: 1.8rem;
}
.exit-popup-stats {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.exit-popup-stats div {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.exit-popup-stats strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--sage);
}
.exit-popup-stats span {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em;
}
.exit-popup-cta {
  display: block; width: 100%;
  text-align: center; padding: 1rem;
  font-size: 0.9rem; margin-bottom: 1rem;
}
.exit-popup-dismiss {
  background: none; border: none;
  color: var(--muted); font-size: 0.75rem;
  cursor: pointer; letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}
.exit-popup-dismiss:hover { color: var(--muted-l); }

/* ════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE FIXES
════════════════════════════════════════════ */

/* ── 1024px — large tablets ── */
@media (max-width: 1024px) {
  .cta-sec-inner { gap: 3.5rem; }
}

/* ── 860px — tablets ── */
@media (max-width: 860px) {
  /* Exit popup */
  .exit-popup-box { padding: 2.4rem 2rem; }
  .exit-popup-box h2 { font-size: 1.4rem; }
  .exit-popup-stats { gap: 1.4rem; }

  /* Back to top — smaller on tablet */
  #back-to-top { width: 40px; height: 40px; font-size: 1rem; }

  /* CTA trust signals stack */
  .cta-trust { gap: 0.4rem; }
}

/* ── 768px — small tablets / large phones ── */
@media (max-width: 768px) {
  /* Post hero padding */
  .post-hero { padding: 4rem 5% 0; }
  .post-hero-inner { max-width: 100%; }
  .post-title { font-size: clamp(1.7rem, 6vw, 2.8rem); }

  /* Blog hero */
  .blog-hero { padding: 4rem 5% 3rem; }
  .blog-hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  /* Author strip */
  .author-inner { flex-direction: column; text-align: center; gap: 1.2rem; }
  .author-inner .btn-primary { align-self: center; }

  /* Related posts — 2 col on tablet */
  .related-inner { max-width: 100%; }
}

/* ── 500px — phones ── */
@media (max-width: 500px) {
  /* Portfolio — 1 column on small phones (was 2, too tight) */
  .port-grid { grid-template-columns: 1fr !important; gap: 1rem; }

  /* CTA section stacked */
  .cta-left h2 { font-size: 1.6rem; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn-primary,
  .cta-btns .btn-outline { text-align: center; width: 100%; }

  /* Contact form */
  .contact-form-wrap { padding: 1.4rem; }
  .cf-field input,
  .cf-field select,
  .cf-field textarea { font-size: 1rem; padding: 0.7rem 0.9rem; }

  /* Ticker — single column stacked */
  .ticker-inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; padding: 0 2%; }
  .ticker-divider { display: none; }

  /* Exit popup — full width bottom sheet feel */
  .exit-popup-box {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    max-width: 100%; width: 100%;
    border-radius: 1rem 1rem 0 0;
    padding: 2rem 1.6rem 2.5rem;
    animation: popupSlideUp 0.4s cubic-bezier(0.22,1,0.36,1);
  }
  @keyframes popupSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .exit-popup-box h2 { font-size: 1.3rem; }
  .exit-popup-stats { gap: 1rem; }

  /* Back to top — move up slightly so it clears mobile browser bar */
  #back-to-top { bottom: 1.5rem; right: 1.2rem; }

  /* Related posts */
  .related-grid { grid-template-columns: 1fr; }
  .related-title { font-size: 1.3rem; }

  /* Post content padding */
  .post-main { padding: 3rem 5%; }
  .post-content { font-size: 1rem; }

  /* Blog nav stacked */
  .blog-nav-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 0.75rem; }
  .blog-nav-all { text-align: center; }

  /* Process steps */
  .step { text-align: left; }

  /* Sections tighter on mobile */
  .related-posts { padding: 4rem 5%; }
  .author-strip   { padding: 2.5rem 5%; }
}

/* ── 380px — very small phones (iPhone SE etc.) ── */
@media (max-width: 380px) {
  .hero-badge { font-size: 0.6rem; padding: 0.3rem 0.75rem; }
  .stat-card { padding: 1rem 1.2rem; }
  .stat-card .num { font-size: 1.6rem; }
  .exit-popup-stats { flex-direction: column; align-items: center; gap: 0.75rem; }
  .contact-form-wrap { padding: 1.2rem; }
  h1 { font-size: 2rem; }
}
