/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #0b0c0e;
  color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.font-playfair { font-family: 'Playfair Display', serif; }

:root {
  --bg: #0b0c0e;
  --ink: #f3f4f6;
  --muted: #97a0ab;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.18);
  --panel: #131519;
  --card: #1b1e24;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f97316;
  --radius: 18px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary {
  background: #ffffff;
  color: #0b0c0e;
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255,255,255,0.18); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn-accent:hover { box-shadow: 0 10px 30px rgba(139,92,246,0.35); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { background: var(--panel); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(11,12,14,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo { display: flex; align-items: center; gap: 6px; color: #fff; }
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; }

.nav-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: none;
  align-items: center; gap: 2px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px;
}
@media (min-width: 900px) { .nav-pill { display: flex; } }
.nav-pill a {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-pill a:hover, .nav-pill a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 26px; background: none; border: none; padding: 6px;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span { display: block; width: 100%; height: 2px; background: #fff; transition: all 0.3s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,11,13,0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { color: #fff; font-size: 26px; font-weight: 500; }

/* ---------- Hero (spotlight reveal) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: #0b0c0e;
}
.hero-base, .hero-reveal {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-base { z-index: 1; }
.hero-reveal { z-index: 3; pointer-events: none; }
.hero-base.hero-zoom { animation: heroZoom 2.4s cubic-bezier(0.16,1,0.3,1) forwards; }

.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 20;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 130px 20px 0;
}
.hero-content h1 {
  color: #fff; margin: 0; line-height: 0.98;
}
.hero-line1 {
  display: block; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(40px, 8vw, 92px); letter-spacing: -0.04em;
}
.hero-line2 {
  display: block; font-weight: 600; margin-top: -4px;
  font-size: clamp(40px, 8vw, 92px); letter-spacing: -0.05em;
}
.hero-sub {
  color: rgba(255,255,255,0.75); max-width: 480px; margin: 22px auto 0;
  font-size: 16px; line-height: 1.6;
}

.hero-anim { opacity: 0; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(0.16,1,0.3,1); }
.hero-reveal-anim { animation-name: heroReveal; animation-duration: 1.1s; }
.hero-fade { animation-name: heroFadeUp; animation-duration: 1s; }

@keyframes heroReveal { 0% { opacity: 0; transform: translateY(28px); filter: blur(12px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes heroFadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { 0% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-anim, .hero-zoom { animation: none; opacity: 1; } }

.hero-block-left, .hero-block-right {
  position: absolute; z-index: 20; bottom: 44px; max-width: 250px;
}
.hero-block-left { left: 40px; display: none; }
.hero-block-right { right: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 640px) { .hero-block-left { display: block; } }
@media (max-width: 639px) {
  .hero-block-right { left: 20px; right: 20px; max-width: none; bottom: 28px; }
}
.hero-block-left p, .hero-block-right p { color: rgba(255,255,255,0.78); font-size: 13.5px; line-height: 1.6; margin: 0; }

.hero-scroll-cue {
  position: absolute; z-index: 20; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
@media (max-width: 639px) { .hero-scroll-cue { display: none; } }
.hero-scroll-cue::after {
  content: ''; width: 1px; height: 26px; background: rgba(255,255,255,0.4);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0%,100% { transform: scaleY(1); opacity: 0.4; } 50% { transform: scaleY(0.4); opacity: 1; } }

/* ---------- Section scaffolding ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Form fields ---------- */
.field-input {
  width: 100%; padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { outline: none; border-color: var(--line-2); }

/* ---------- Pillar pills ---------- */
.pillar-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pillar-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.pillar-pill:hover { border-color: var(--line-2); background: var(--panel); }
.pillar-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(139,92,246,0.28);
}
.pillar-pill .pip { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Post cards / grid ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(0,0,0,0.45); border-color: var(--line-2); }
.post-card-media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #16181c;
}
.badge-pillar {
  display: inline-flex; width: fit-content;
  background: var(--panel); padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
}
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.post-card h3 { margin: 0; font-size: 20px; line-height: 1.32; letter-spacing: -0.02em; }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.post-card-link { margin-top: 6px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.post-card-link svg { transition: transform 0.25s ease; }
.post-card:hover .post-card-link svg { transform: translateX(4px); }

.featured-post {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--card);
  margin-bottom: 48px;
}
@media (min-width: 860px) { .featured-post { grid-template-columns: 1.1fr 1fr; } }
.featured-post-media { aspect-ratio: 16/10; overflow: hidden; background: var(--card); }
.featured-post-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-body { padding: 34px 34px 34px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-post-body h2 { font-size: clamp(24px,3vw,32px); margin: 0; letter-spacing: -0.03em; line-height: 1.2; }
.featured-post-body p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); color: var(--ink);
}
.pagination a:hover { background: var(--panel); }
.pagination .current { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }

/* ---------- Newsletter ---------- */
.newsletter {
  border-radius: 28px;
  background: linear-gradient(135deg, #0b0c0e, #1b1030 60%, #06232a);
  color: #fff; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: -40%; opacity: 0.5;
  background: radial-gradient(circle at 20% 20%, rgba(167,139,250,0.35), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(34,211,238,0.3), transparent 45%);
  pointer-events: none;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(26px,3.4vw,38px); margin: 0 0 10px; letter-spacing: -0.03em; }
.newsletter p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 28px; font-size: 15.5px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.55); }
.newsletter-success { color: #6ee7b7; font-size: 14px; margin-top: 14px; }
.newsletter-error { color: #fca5a5; font-size: 14px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 34px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--muted);
}
.footer-bottom a { font-weight: 600; color: var(--ink); }

/* ---------- Single post ---------- */
.post-hero-media { width: 100%; aspect-ratio: 16/9; max-height: 560px; overflow: hidden; background: var(--card); }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.post-header { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; text-align: center; }
.post-header .post-card-tag { position: static; display: inline-flex; margin-bottom: 18px; background: var(--panel); }
.post-header h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 18px; }
.post-header .post-card-meta { justify-content: center; }
.post-breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.post-breadcrumb a { color: var(--muted); }
.post-breadcrumb a:hover { color: var(--ink); }
.post-byline { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.post-byline strong { color: var(--ink); }

.post-body {
  max-width: 720px; margin: 40px auto 0; padding: 0 24px 80px;
  font-size: 18px; line-height: 1.8; color: var(--ink);
}
.post-body h2 { font-size: 26px; margin: 42px 0 16px; letter-spacing: -0.02em; }
.post-body h3 { font-size: 21px; margin: 32px 0 14px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 26px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body img { border-radius: 14px; margin: 28px 0; }
.post-body blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 14px 14px 0; font-style: italic; color: var(--muted);
}
.post-body code { background: var(--panel); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.post-tag { background: var(--panel); color: var(--muted); font-size: 13px; padding: 6px 13px; border-radius: 999px; }

.share-row { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.share-row button {
  display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.share-row button:hover { background: var(--card); }

.related-section { background: var(--panel); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
::selection { background: rgba(139,92,246,0.4); color: #fff; }

@media (max-width: 599px) {
  .section { padding: 60px 0; }
}
