/*
Theme Name: Jack's Miami
Theme URI: https://jacksmiami.com
Author: Jack's Miami
Description: Downtown Miami lifestyle — condos, real estate, restaurants, and hotspots.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: jacks-miami
Tags: miami, lifestyle, blog, realestate, condos
*/

/* =============================================
   DESIGN TOKENS — Miami Neon Luxury
   ============================================= */
:root {
  --ink:          #0A0A0A;
  --ink-mid:      #111111;
  --ink-up:       #1A1A1A;
  --ink-card:     #161616;
  --teal:         #00D4C8;
  --teal-dk:      #00A89E;
  --teal-lt:      #4DEDE6;
  --coral:        #FF6B4A;
  --coral-dk:     #E5522E;
  --coral-lt:     #FF9176;
  --gold:         #D4A843;
  --gold-lt:      #E8C265;
  --cream:        #FAF8F3;
  --cream-dk:     #F0EDE5;
  --white:        #FFFFFF;
  --mist:         #8A8A8A;
  --border-dark:  rgba(255,255,255,0.08);
  --border-mid:   rgba(255,255,255,0.14);
  --border-light: rgba(0,0,0,0.09);

  --font-display: 'Syne', 'Arial Black', sans-serif;
  --font-body:    'Instrument Serif', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s var(--ease);
  --fast:       all 0.15s ease;

  --max-w:     1400px;
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --radius:    4px;
  --radius-md: 12px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink-mid);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: var(--teal-dk); text-decoration: none; transition: var(--fast); }
a:hover { color: var(--coral); }
ul, ol { list-style: none; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.8rem, 6vw, 7rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 2rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

.city-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.city-label--teal  { color: var(--teal); }
.city-label--coral { color: var(--coral); }
.city-label--gold  { color: var(--gold); }
.city-label--mist  { color: var(--mist); }
.city-label--white { color: rgba(255,255,255,0.55); }
.city-label--ink   { color: var(--ink); }

.neon-rule {
  display: block;
  height: 3px;
  width: 48px;
  background: var(--teal);
  margin: 1rem 0;
}
.neon-rule--coral  { background: var(--coral); }
.neon-rule--gold   { background: var(--gold); }
.neon-rule--center { margin-left: auto; margin-right: auto; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  transition: var(--fast);
  white-space: nowrap;
}
.tag-chip--teal  { background: rgba(0,212,200,0.12);  color: var(--teal);  border: 1px solid rgba(0,212,200,0.3); }
.tag-chip--coral { background: rgba(255,107,74,0.1);  color: var(--coral); border: 1px solid rgba(255,107,74,0.3); }
.tag-chip--gold  { background: rgba(212,168,67,0.1);  color: var(--gold);  border: 1px solid rgba(212,168,67,0.3); }
.tag-chip--ink   { background: rgba(0,0,0,0.06);      color: var(--ink);   border: 1px solid rgba(0,0,0,0.1); }
.tag-chip--white { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }

/* Marquee ticker */
.marquee-track {
  overflow: hidden;
  white-space: nowrap;
  background: var(--teal);
  padding: 0.65rem 0;
}
.marquee-inner {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
}
.marquee-inner span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.marquee-inner .dot { color: var(--coral); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.section     { padding: clamp(4rem, 8vw, 8rem) 0; }
.section--sm { padding: clamp(2.5rem, 5vw, 5rem) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-teal { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-lt); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,200,0.4); }
.btn-coral { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-coral:hover { background: var(--coral-dk); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); color: var(--ink); transform: translateY(-2px); }
.btn-outline-teal { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: var(--ink); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-up); color: var(--teal); transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-cream:hover { background: var(--white); color: var(--teal-dk); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 0.8rem; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 0.86rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.6rem; }
.btn-arrow::after { content: ' →'; display: inline-block; transition: transform 0.18s; }
.btn-arrow:hover::after { transform: translateX(5px); }

/* =============================================
   IMAGE PLACEHOLDERS
   ============================================= */
.img-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1C1C1C 0%, #0A0A0A 100%);
  position: relative;
  overflow: hidden;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 65% 35%, rgba(0,212,200,0.06) 0%, transparent 60%);
}
.img-ph-txt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  z-index: 1;
  text-align: center;
  padding: 1rem;
  line-height: 2;
}
.img-ph--light { background: linear-gradient(145deg, var(--cream-dk) 0%, var(--cream) 100%); }
.img-ph--light .img-ph-txt { color: rgba(0,0,0,0.25); }
.img-ph--teal  { background: linear-gradient(145deg, #003D3A 0%, #001F1D 100%); }

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition);
}
#site-header.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-dark), 0 8px 40px rgba(0,0,0,0.5);
}
.header-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--coral) 50%, var(--gold) 100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.logo-badge {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--ink);
  flex-shrink: 0; transition: var(--transition);
}
.site-logo:hover .logo-badge { background: var(--coral); transform: rotate(-5deg) scale(1.08); }
.logo-text { line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; display: block; }
.logo-name em { color: var(--teal); font-style: normal; }
.logo-sub { font-family: var(--font-mono); font-size: 0.48rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.28); display: block; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55);
  transition: color 0.18s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--teal); transition: width 0.22s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--teal) !important; color: var(--ink) !important; padding: 0.5rem 1.2rem; border-radius: var(--radius); font-weight: 800 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-lt) !important; color: var(--ink) !important; transform: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.mobile-nav { position: fixed; inset: 0; background: var(--ink); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transform: translateX(-100%); transition: transform 0.42s var(--ease); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.mobile-nav a:hover { color: var(--teal); }

/* =============================================
   HERO — Homepage
   ============================================= */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}
/* Decorative glow blobs — using child divs not pseudo-elements to avoid z-index fights */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 { top: -15%; right: -8%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,212,200,0.08) 0%, transparent 65%); }
.hero-glow-2 { bottom: -15%; left: 3%; width: 450px; height: 450px; background: radial-gradient(circle, rgba(255,107,74,0.06) 0%, transparent 60%); }

/* Ghost "305" — decorative, behind content */
.hero-city-code {
  position: absolute;
  bottom: -3rem;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,212,200,0.08);
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-inner > * { min-width: 0; }

.hero-tag { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.hero-tag-dot {
  width: 8px; height: 8px; background: var(--teal); border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,212,200,0.8); animation: pulse-teal 2.2s ease-in-out infinite;
}
@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 0 6px rgba(0,212,200,0.5); }
  50%       { box-shadow: 0 0 18px rgba(0,212,200,0.95); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 800; color: var(--white);
  line-height: 0.97; letter-spacing: -0.04em; margin-bottom: 1.5rem;
}
.hero-title .line-teal { display: block; color: var(--teal); }
.hero-title .line-sub  {
  display: block; font-family: var(--font-body); font-style: italic;
  font-weight: 400; font-size: 0.52em; color: rgba(255,255,255,0.45);
  letter-spacing: 0; margin-top: 0.65rem; line-height: 1.45;
}

.hero-desc { font-family: var(--font-body); font-style: italic; font-size: 1.08rem; color: rgba(255,255,255,0.48); line-height: 1.78; max-width: 460px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-dark); flex-wrap: wrap; }
.hero-stat  { flex-shrink: 0; }
.hero-stat-val { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--white); line-height: 1; display: block; letter-spacing: -0.03em; }
.hero-stat-val em { color: var(--teal); font-style: normal; }
.hero-stat-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; margin-top: 0.3rem; }

/* Photo mosaic — right column, fixed row heights */
.hero-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 0.75rem;
}
.hero-mosaic > * { min-width: 0; min-height: 0; }
.mosaic-main { grid-row: 1 / 3; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.mosaic-main .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; }
.mosaic-top  { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.mosaic-top .img-ph  { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; }
.mosaic-bot  { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.mosaic-bot .img-ph  { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; }
.mosaic-bot-badge {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(0,212,200,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--ink);
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse at bottom right, rgba(0,212,200,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold), transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1         { color: var(--white); margin-bottom: 1rem; }
.page-hero .hero-sub  { color: rgba(255,255,255,0.5); max-width: 600px; font-style: italic; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); display: block; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.35; }

/* =============================================
   FEATURED HERO POST CARD
   KEY: position: relative + flex-column for absolute children
   ============================================= */
.post-hero-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;      /* CRITICAL */
  background: var(--ink-card);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  text-decoration: none;
}
.post-hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.post-hero-card-img .img-ph { width: 100%; height: 100%; min-height: unset; }
.post-hero-overlay {
  position: absolute;
  inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.15) 100%);
}
.post-hero-body {
  position: relative; z-index: 2;       /* relative, not absolute — avoids all the centering issues */
  padding: 2.5rem 3rem;
  margin-top: auto;                      /* pushes body to bottom when card is taller */
  max-width: 640px;
}
.post-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.6rem);
  font-weight: 800; color: var(--white);
  line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 1rem;
}

/* =============================================
   STANDARD POST CARDS
   KEY: position: relative — prevents ::after escaping
   ============================================= */
.post-card {
  background: var(--ink-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;   /* CRITICAL — was missing in v1 */
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transform: translateY(-4px);
  border-color: rgba(0,212,200,0.2);
}
.post-card__img { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; background: var(--ink); }
.post-card__img .img-ph { min-height: unset; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__img .img-ph { transform: scale(1.05); }
.post-card__body   { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat    { margin-bottom: 0.65rem; }
.post-card__title  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 0.55rem; flex: 1; transition: color 0.18s; letter-spacing: -0.01em; }
.post-card:hover .post-card__title { color: var(--teal); }
.post-card__excerpt { font-family: var(--font-body); font-style: italic; font-size: 0.87rem; color: rgba(255,255,255,0.4); line-height: 1.65; margin-bottom: 1rem; }
.post-card__meta { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.28); text-transform: uppercase; display: flex; align-items: center; gap: 0.65rem; padding-top: 0.85rem; border-top: 1px solid var(--border-dark); margin-top: auto; }

/* =============================================
   HORIZONTAL SCROLL STRIP
   ============================================= */
.post-strip { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.post-strip::-webkit-scrollbar { display: none; }
.post-strip-item { min-width: 300px; flex-shrink: 0; scroll-snap-align: start; }

/* =============================================
   NEIGHBORHOOD CARDS
   KEY: position: relative, img fills via absolute inset
   ============================================= */
.neighborhood-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;    /* CRITICAL */
  display: block;
  background: var(--ink-card);
  min-height: 280px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.neighborhood-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.neighborhood-card .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; transition: transform 0.5s var(--ease); }
.neighborhood-card:hover .img-ph { transform: scale(1.05); }
.neighborhood-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.25) 55%, transparent 100%);
}
.neighborhood-card:hover .neighborhood-overlay { background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(0,212,200,0.07) 55%, transparent 100%); }
.neighborhood-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 2; }
.neighborhood-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.neighborhood-count { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }

/* =============================================
   CATEGORY CARDS — dark strip
   ============================================= */
.cat-card {
  padding: 1.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  text-decoration: none; display: block;
  transition: var(--transition); position: relative; overflow: hidden;
}
.cat-card:hover { background: rgba(255,255,255,0.055); border-color: var(--border-mid); transform: translateY(-3px); }
.cat-card-icon  { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; line-height: 1; }
.cat-card-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: var(--white); margin-bottom: 0.4rem; letter-spacing: -0.01em; display: block; }
.cat-card-desc  { font-family: var(--font-body); font-style: italic; font-size: 0.84rem; color: rgba(255,255,255,0.35); line-height: 1.55; }
.cat-card-bar   { position: absolute; top: 0; left: 0; right: 0; height: 3px; }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: var(--ink);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  position: relative; overflow: hidden;
}
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(0,212,200,0.04) 0%, transparent 65%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.stat-item { padding: 3rem 2rem; text-align: center; border-right: 1px solid var(--border-dark); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 5rem); font-weight: 800; color: var(--white); line-height: 1; display: block; letter-spacing: -0.04em; }
.stat-val em { color: var(--teal); font-style: normal; }
.stat-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.3); display: block; margin-top: 0.5rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { background: var(--ink); border-top: 1px solid var(--border-dark); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -40%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,200,0.06) 0%, transparent 65%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,0.45); margin-top: 0.5rem; font-style: italic; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form { background: var(--ink-card); border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: 2.5rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-display); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  background: rgba(255,255,255,0.04); color: var(--white);
  padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.22); font-style: italic; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,200,0.1); }
.form-group textarea { height: 130px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300D4C8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-color: rgba(255,255,255,0.04); padding-right: 2.5rem; color: rgba(255,255,255,0.7); cursor: pointer; }
.form-group select option { background: #1A1A1A; color: var(--white); }

/* =============================================
   SINGLE POST
   ============================================= */
.post-content { font-size: 1.05rem; line-height: 1.88; color: var(--ink-mid); }
.post-content h2 { font-size: 1.8rem; margin: 2.5rem 0 0.9rem; }
.post-content h3 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
.post-content p  { margin-bottom: 1.3em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em 1.5rem; list-style: disc; }
.post-content li { margin-bottom: 0.4em; line-height: 1.75; }
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content a  { color: var(--teal-dk); border-bottom: 1px solid rgba(0,168,158,0.3); }
.post-content a:hover { color: var(--coral-dk); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--ink-mid); border-top: 1px solid var(--border-dark); padding: 5rem 0 0; position: relative; }
#site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold), transparent 80%); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3.5rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border-dark); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.3); line-height: 1.75; margin-top: 1rem; max-width: 260px; font-style: italic; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.28); transition: color 0.18s; font-family: var(--font-body); font-style: italic; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.68rem; color: rgba(255,255,255,0.18); margin: 0; font-family: var(--font-mono); letter-spacing: 0.12em; }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.09s; }
.fade-up:nth-child(3) { transition-delay: 0.18s; }
.fade-up:nth-child(4) { transition-delay: 0.27s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-mosaic, .hero-city-code { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row   { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner  { flex-direction: column; align-items: flex-start; }
  .post-hero-body { padding: 1.5rem; }
}
