/* Case-study pages: matches the Framer site's look */

:root {
  --navy: #044066;
  --blue: #22a4f6;
  --ink-80: rgba(21, 24, 29, 0.8);
  --ink-40: rgba(21, 24, 29, 0.4);
  --tint: rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-white: 0 2px 4px rgba(0, 0, 0, 0.07), 0 0 0 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 9px 19px rgba(0, 0, 0, 0.03), 0 35px 35px rgba(0, 0, 0, 0.02), 0 79px 47px rgba(0, 0, 0, 0.02);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: "Geom", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.hand { font-family: "Gveret Levin", cursive; font-weight: 400; color: var(--blue); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* Nav */
.nav { position: fixed; top: 16px; left: 50%; z-index: 50; width: min(1080px, 100% - 32px); transform: translateX(-50%); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 12px 0 16px; border-radius: 999px;
  background: rgba(247, 247, 247, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 8px; font-family: "Inter", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: #000; }
.brand b { font-weight: inherit; }
.brand span { color: var(--blue); }
.nav-links { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-80); transition: background-color 0.25s var(--ease); }
.nav-links a:hover { background: rgba(0, 0, 0, 0.05); }
.btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  font-weight: 500; font-size: 16px; transition: transform 0.4s var(--spring), background-color 0.3s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-light { background: #fff; color: var(--ink-80); box-shadow: var(--shadow-white); }

/* Article */
.post { width: min(800px, 100% - 32px); margin: 0 auto; padding: 140px 0 80px; }
.post-head { text-align: center; animation: rise 0.9s var(--ease) both; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(9, 154, 245, 0.05); color: #21a4f6; font-size: 15px; font-weight: 500; line-height: 20px; }
.post-head h1 { max-width: 600px; margin: 16px auto 0; font-size: 44px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.post-head time { display: block; margin-top: 14px; color: #999; }
.post-banner { width: 100%; aspect-ratio: 800 / 448; object-fit: cover; margin-top: 40px; border-radius: 24px; animation: rise 1s 0.15s var(--ease) both; }
.draft-note { margin: 0 0 24px; padding: 10px 16px; border-radius: 14px; background: #fff7e6; color: #8a5a00; font-size: 14px; text-align: center; }

.prose { margin-top: 40px; color: #666; animation: rise 1s 0.25s var(--ease) both; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #000; font-weight: 700; }
.prose h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.04em; margin: 40px 0 0; }
.prose h2 { font-size: 30px; line-height: 1.4; letter-spacing: -0.04em; margin: 40px 0 0; }
.prose h3 { font-size: 26px; line-height: 1.4; letter-spacing: -0.04em; margin: 40px 0 0; }
.prose h4 { font-size: 20px; margin: 32px 0 0; }
.prose p { margin: 20px 0 0; letter-spacing: -0.02em; }
.prose strong { color: #444; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 24px 0 0; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li p { margin: 0; }
.prose img, .prose video { margin: 32px auto 0; border-radius: 16px; max-width: 100%; height: auto; }
.prose blockquote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--navy); font-size: 18px; }
.prose pre { margin: 24px 0 0; padding: 16px 20px; border-radius: 14px; background: #0f1b26; color: #e6f1fa; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; }
.prose :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: rgba(34, 164, 246, 0.08); color: var(--navy); }
.prose hr { margin: 40px 0 0; border: 0; border-top: 1px solid #eee; }
.prose .embed { position: relative; margin: 32px 0 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose table { width: 100%; margin: 28px 0 0; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid #eee; text-align: left; vertical-align: top; }
.prose th { background: #fafafa; color: #000; font-weight: 600; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.post-nav a { display: block; padding: 18px 20px; border-radius: 24px; background: var(--tint); transition: background-color 0.3s, transform 0.4s var(--spring); }
.post-nav a:hover { background: rgba(34, 164, 246, 0.08); transform: translateY(-3px); }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--ink-40); font-size: 13px; }
.post-nav span { font-weight: 500; }

/* Listing */
.blog-head { padding: 160px 0 48px; text-align: center; animation: rise 0.9s var(--ease) both; }
.blog-head h1 { margin: 0; font-size: 60px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.blog-head p { max-width: 440px; margin: 20px auto 0; color: rgba(4, 64, 102, 0.6); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters a { padding: 6px 14px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 500; color: var(--ink-80); transition: background-color 0.25s; }
.filters a:hover { background: rgba(0, 0, 0, 0.07); }
.filters a.on { background: var(--blue); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 80px; }
.post-card {
  display: block; padding: 4px 4px 20px; border-radius: 32px; background: #fff;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  animation: rise 0.9s var(--ease) both;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(4, 64, 102, 0.1), 0 0 0 1px rgba(34, 164, 246, 0.15); }
.post-card-img { overflow: hidden; border-radius: 28px; aspect-ratio: 339 / 188; background: #f3f6f9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.chip { display: inline-block; margin: 18px 0 0 12px; padding: 2px 6px; border: 1px solid #077bc4; border-radius: 6px; font-size: 13px; font-weight: 500; color: #077bc4; }
.post-card h3 { margin: 14px 0 0; padding: 0 12px; font-size: 20px; font-weight: 500; line-height: 1.4; }
.post-card small { display: block; margin-top: 12px; padding: 0 12px; font-family: "Inter", sans-serif; font-size: 12px; color: #b3b3b3; }
.empty { padding: 40px 0 120px; text-align: center; color: var(--ink-40); }

/* Footer */
.footer { padding: 40px 0 24px; }
.footer-card { padding: 4px 4px 24px; border-radius: 35px; background: var(--tint); }
.footer-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; border-radius: 32px; background: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.1); color: #fff; transition: background-color 0.3s, transform 0.35s var(--spring); }
.socials a:hover { background: var(--blue); transform: translateY(-3px); }
.socials svg { width: 13px; height: 13px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 20px 0; }
.footer-bottom p { max-width: 300px; margin: 0; font-size: 14px; color: var(--ink-80); }
.footer-links { display: flex; gap: 32px; font-size: 14px; color: var(--ink-80); }
.footer-links a:hover { color: var(--blue); }
.copyright { margin: 20px 0 0; text-align: center; font-size: 12px; color: var(--ink-40); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 600px) {
  .post { padding-top: 112px; }
  .post-head h1 { font-size: 32px; }
  .blog-head { padding-top: 120px; }
  .blog-head h1 { font-size: 40px; }
  .prose h1 { font-size: 30px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 21px; }
  .post-grid, .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .footer-links { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
