/* =========================================================
   灵感画廊 Inspiration Gallery — 全局样式
   深色主题 · 高饱和色彩点缀 · 响应式
   ========================================================= */

:root {
  --bg: #0d0d10;
  --bg-soft: #141419;
  --bg-card: #1a1a21;
  --bg-elevated: #22222b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f0ea;
  --text-dim: #a5a1b0;
  --text-faint: #6e6a78;

  --coral: #ff5e5b;
  --amber: #ffd166;
  --teal: #06d6a0;
  --cyan: #4cc9f0;
  --purple: #9d6bff;
  --pink: #ff7ab8;

  --grad-accent: linear-gradient(135deg, #ff5e5b 0%, #ff7ab8 45%, #9d6bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 94, 91, 0.16), rgba(157, 107, 255, 0.16));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
b { font-weight: 700; }

::selection { background: rgba(255, 94, 91, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33333d; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #45454f; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(13, 13, 16, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; }

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(255, 94, 91, 0.35);
}

.brand-light .brand-mark { box-shadow: 0 6px 18px rgba(255, 94, 91, 0.25); }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav a.active { color: #fff; background: var(--grad-accent); font-weight: 500; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 28px rgba(255, 94, 91, 0.3); }
.btn-accent:hover { box-shadow: 0 14px 34px rgba(255, 94, 91, 0.42); }

.btn-ghost { border-color: var(--line); color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }

.link-more { font-size: 15px; color: var(--coral); font-weight: 500; white-space: nowrap; transition: gap 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.link-more:hover { gap: 14px; }

/* ---------------- 区块通用 ---------------- */
.section { max-width: var(--max-w); margin: 0 auto; padding: 88px clamp(20px, 4vw, 48px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.section-kicker { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; font-weight: 500; }

.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 300; line-height: 1.3; }
.section-title b {
  font-family: var(--font-display);
  font-weight: 400;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero { max-width: var(--max-w); margin: 0 auto; padding: 72px clamp(20px, 4vw, 48px) 24px; }

.page-hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 300; line-height: 1.25; }
.page-hero h1 b { font-family: var(--font-display); font-weight: 400; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero > p:not(.hero-kicker) { margin-top: 18px; color: var(--text-dim); max-width: 620px; font-size: 17px; }
.page-hero .hero-kicker { margin-top: 0; }

.page-hero-small { padding: 56px clamp(20px, 4vw, 48px) 12px; }

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.05);
}
.hero-slide.active { opacity: 1; animation: heroZoom 8s ease-out forwards; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,13,16,0.55) 0%, rgba(13,13,16,0.72) 100%);
}

.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 900px; }

.hero-kicker { color: var(--amber); letter-spacing: 4px; font-size: 13px; text-transform: uppercase; margin-bottom: 20px; }

.hero-title { font-size: clamp(42px, 8vw, 84px); font-weight: 300; line-height: 1.15; text-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.hero-title b {
  font-family: var(--font-display);
  font-weight: 400;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { margin-top: 22px; color: rgba(242, 240, 234, 0.82); font-size: 17px; line-height: 1.9; }

.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.35);
  transition: 0.25s; padding: 0;
}
.hero-dots button.active { width: 26px; border-radius: 6px; background: var(--coral); }

.hero-scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,0.6); font-size: 18px; animation: floatY 2s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------- 精选作品（首页） ---------------- */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255, 94, 91, 0.35); }

.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.06); }

.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(13, 13, 16, 0.66);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-body { padding: 18px 20px 20px; }
.card-title { font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title span { font-size: 13px; color: var(--text-faint); font-weight: 400; }
.card-meta { margin-top: 6px; font-size: 13px; color: var(--text-dim); display: flex; gap: 14px; }
.card-tagline { margin-top: 8px; font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---------------- 主题分区 ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.topic-card {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topic-card::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  opacity: 0.16; transition: opacity 0.3s, transform 0.3s;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.topic-card:hover::before { opacity: 0.3; transform: scale(1.3); }

.topic-purple::before { background: var(--purple); }
.topic-teal::before { background: var(--teal); }
.topic-coral::before { background: var(--coral); }

.topic-card > i { font-size: 30px; color: var(--text); margin-bottom: 18px; }
.topic-purple > i { color: var(--purple); }
.topic-teal > i { color: var(--teal); }
.topic-coral > i { color: var(--coral); }

.topic-card h3 { font-size: 20px; margin-bottom: 8px; }
.topic-card p { color: var(--text-dim); font-size: 14px; }

/* ---------------- 博客预览（首页） ---------------- */
.blog-preview { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }

.blog-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.blog-card.featured { grid-row: span 1; }

.blog-cover { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-cover img { transform: scale(1.05); }

.blog-card .blog-cover .blog-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--grad-accent); color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: 999px;
}

.blog-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 12.5px; color: var(--text-faint); display: flex; gap: 12px; margin-bottom: 8px; }
.blog-title { font-size: 18px; font-weight: 500; line-height: 1.5; margin-bottom: 10px; }
.blog-excerpt { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

.blog-card.featured .blog-title { font-size: 22px; }
.blog-card.featured .blog-excerpt { font-size: 15px; }

/* ---------------- CTA ---------------- */
.section-cta { padding-bottom: 110px; }
.cta-inner {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid rgba(255, 94, 91, 0.25);
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute; top: -100px; left: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 107, 255, 0.35), transparent 70%);
}
.cta-inner::after {
  content: "";
  position: absolute; bottom: -120px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 94, 91, 0.3), transparent 70%);
}
.cta-inner h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 300; line-height: 1.4; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-inner p { color: var(--text-dim); margin-bottom: 26px; position: relative; z-index: 1; }
.cta-inner .btn { position: relative; z-index: 1; }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 20px; }

.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px) 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }

.footer-brand p { margin-top: 14px; color: var(--text-dim); font-size: 14px; max-width: 260px; }

.footer-links h4 { font-size: 13px; letter-spacing: 2px; color: var(--text-faint); margin-bottom: 16px; font-weight: 500; }
.footer-links a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--coral); padding-left: 6px; }

.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 20px clamp(20px, 4vw, 48px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); }
.footer-tip i { color: var(--coral); }

/* ---------------- 画廊筛选 ---------------- */
.filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 12px; color: var(--text-faint); letter-spacing: 1px; }

.filter-group select {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 36px 9px 14px;
  border-radius: 10px;
  min-width: 132px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a5a1b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.filter-group select:focus { outline: none; border-color: var(--coral); }

.filter-sort { margin-left: auto; }

.btn-reset { padding: 9px 18px; font-size: 14px; }

.result-count { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.result-count b { color: var(--coral); }

/* ---------------- 瀑布流 ---------------- */
.masonry { columns: 3; column-gap: 26px; }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 26px;
}

.masonry-item .card-media { aspect-ratio: auto; }
.masonry-item .card-media img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state i { font-size: 40px; color: var(--text-faint); margin-bottom: 14px; display: block; }
.empty-state p { margin-bottom: 20px; }

/* ---------------- 作品详情 ---------------- */
.work-detail { max-width: var(--max-w); margin: 0 auto; padding: 48px clamp(20px, 4vw, 48px) 90px; }

.work-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; margin-bottom: 28px; transition: color 0.2s, gap 0.2s; }
.work-back:hover { color: var(--coral); gap: 12px; }

.work-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.work-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.work-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.work-figure figcaption { padding: 14px 18px; font-size: 13px; color: var(--text-faint); border-top: 1px solid var(--line); }

.work-info { padding-top: 6px; }

.work-info .work-tag { display: inline-block; background: var(--grad-accent); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }

.work-info h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 300; line-height: 1.25; margin-bottom: 8px; }
.work-info .work-tagline { font-size: 17px; color: var(--text-dim); margin-bottom: 24px; }

.work-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.work-meta div { text-align: center; }
.work-meta dt { font-size: 12px; color: var(--text-faint); letter-spacing: 1px; }
.work-meta dd { font-size: 15px; margin-top: 4px; font-weight: 500; }

.work-info h2 { font-size: 18px; margin: 28px 0 12px; color: var(--amber); }
.work-info h2 i { margin-right: 8px; }
.work-info p { color: var(--text-dim); line-height: 1.9; }

.work-source, .work-tech {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.work-source strong, .work-tech strong { color: var(--text); }

.work-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.btn-fav { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-dim); }
.btn-fav.faved { color: var(--coral); border-color: rgba(255, 94, 91, 0.5); background: rgba(255, 94, 91, 0.1); }
.btn-fav i { transition: transform 0.2s; }
.btn-fav.faved i { transform: scale(1.15); }

.work-related { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 90px; }
.work-related .section-head { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------------- 博客列表页 ---------------- */
.section-blog-list { padding-top: 40px; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-tags button {
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--text-dim); font-size: 14px;
  transition: 0.2s;
}
.blog-tags button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.blog-tags button.active { background: var(--grad-accent); color: #fff; border-color: transparent; }

.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.blog-list .blog-card .blog-cover { aspect-ratio: 16 / 9; }

.post-article { max-width: 760px; margin: 0 auto; }

.post-article .post-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); }
.post-article .post-cover img { aspect-ratio: 16 / 9; object-fit: cover; }

.post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; margin-bottom: 24px; transition: color 0.2s, gap 0.2s; }
.post-back:hover { color: var(--coral); gap: 12px; }

.post-article h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 300; line-height: 1.35; margin-bottom: 14px; }
.post-article .post-meta { color: var(--text-faint); font-size: 14px; margin-bottom: 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.post-article .post-meta .tag { color: var(--coral); }

.post-article p { color: var(--text-dim); line-height: 2; margin-bottom: 22px; font-size: 16px; }
.post-article p:first-of-type { font-size: 18px; color: rgba(242, 240, 234, 0.85); }

/* ---------------- 关于页 ---------------- */
.section-values { padding-top: 40px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  padding: 34px 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s;
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(157, 107, 255, 0.4); }
.value-card > i { font-size: 30px; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.85; }

.section-story { padding-bottom: 20px; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-text .section-title { margin-bottom: 20px; }
.story-text p { color: var(--text-dim); margin-bottom: 16px; }

.story-visual { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background-size: cover; background-position: center; border: 1px solid var(--line); box-shadow: var(--shadow); }

.section-join { padding-top: 40px; }

/* ---------------- 收藏提示 ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated); color: var(--text);
  padding: 12px 24px; border-radius: 999px;
  border: 1px solid rgba(255, 94, 91, 0.4);
  box-shadow: var(--shadow);
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--coral); margin-right: 8px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .masonry { columns: 2; }
  .topic-grid, .value-grid { grid-template-columns: 1fr; }
  .blog-preview { grid-template-columns: 1fr 1fr; }
  .blog-preview .blog-card:first-child { grid-column: span 2; }
  .blog-list { grid-template-columns: 1fr; }
  .work-layout { grid-template-columns: 1fr; gap: 32px; }
  .work-figure { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner { grid-template-columns: 1fr; }
  .filter-sort { margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(13, 13, 16, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: 0.25s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 18px; border-radius: 12px; }

  .masonry { columns: 1; }
  .blog-preview { grid-template-columns: 1fr; }
  .blog-preview .blog-card:first-child { grid-column: span 1; }
  .related-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .work-meta { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group select { width: 100%; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
}
