/* ===== 1. Reset & Tokens ===== */
:root {
  --bg-base: #080D16;
  --bg-surface: #0E1624;
  --bg-overlay: #162032;
  --border-subtle: #223048;
  --text-high: #EAF2FF;
  --text-mid: #A7B6CC;
  --text-low: #6B7A94;
  --accent-cyan: #00E5FF;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --accent-purple: #7C5CFC;
  --signal-warm: #FF7A45;
  --signal-coral: #FF3D5E;
  --grad-cyan-soft: linear-gradient(120deg, rgba(0, 229, 255, 0.18), rgba(124, 92, 252, 0.22));
  --font-headline: "Road Rage", "Impact", "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", "Courier New", monospace;
  --container-w: 1280px;
  --gutter: 40px;
  --space-module: 16px;
  --radius-pill: 999px;
  --radius-card: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-slow: 0.35s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 60% at 15% -5%, rgba(124, 92, 252, 0.14), transparent),
    radial-gradient(ellipse 70% 50% at 90% 15%, rgba(0, 229, 255, 0.09), transparent),
    linear-gradient(rgba(34, 48, 72, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 48, 72, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: var(--accent-cyan); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  color: var(--text-high);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

strong { color: var(--text-high); }
code, kbd, samp, pre, .mono { font-family: var(--font-mono); }

::selection { background: rgba(0, 229, 255, 0.25); color: var(--text-high); }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-low); }

/* ===== 2. Layout Primitives ===== */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

#main-content { flex: 1 0 auto; min-height: 62vh; outline: none; }

.page-head { padding: 56px 0 8px; }
.page-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.page-lead { margin-top: 14px; max-width: 680px; font-size: 17px; color: var(--text-mid); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.breadcrumb a { color: var(--text-low); text-decoration: none; transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb-sep { color: var(--text-low); opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--text-mid); }

.section { margin-top: 72px; }
.section-head { margin-bottom: 28px; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.section-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}
.section-title { margin-top: 8px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.section-desc { margin-top: 10px; max-width: 620px; font-size: 15px; color: var(--text-mid); }
.section-foot { margin-top: 24px; }

.section-divider {
  display: block;
  height: 1px;
  margin: 72px 0 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), rgba(124, 92, 252, 0.35), transparent);
}

/* ===== 3. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--grad-cyan-soft);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
}
.btn-primary:hover {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.26), rgba(124, 92, 252, 0.32));
  color: var(--text-high);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.18);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-mid);
}
.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--text-high);
}

/* ===== 4. Shared Header ===== */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent-cyan);
  color: #061820;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 14px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--signal-warm));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.scroll-progress.is-visible { opacity: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--gutter) 0;
}

.header-inner {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: rgba(22, 32, 50, 0.9);
  border: 1px solid rgba(34, 48, 72, 0.8);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(0, 229, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #06131F;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35), inset 0 0 0 1px rgba(0, 229, 255, 0.25);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-headline); font-size: 19px; font-weight: 800; letter-spacing: 0.02em; color: var(--text-high); }
.brand-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-low); }

.nav-bar { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
}

.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.nav-list a:hover { background: rgba(0, 229, 255, 0.08); color: var(--text-high); }
.nav-list a[aria-current="page"] {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 12px rgba(0, 229, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--grad-cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.nav-cta:hover {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.28), rgba(124, 92, 252, 0.34));
  color: var(--text-high);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--bg-overlay);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.nav-toggle:hover { border-color: rgba(0, 229, 255, 0.4); }

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-high);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.nav-toggle.is-active .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 5. Shared Footer ===== */
.site-footer {
  margin-top: 96px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 100%, rgba(124, 92, 252, 0.13), transparent),
    linear-gradient(rgba(34, 48, 72, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 48, 72, 0.1) 1px, transparent 1px),
    rgba(8, 13, 22, 0.96);
  background-size: auto, 48px 48px, 48px 48px, auto;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 56px var(--gutter) 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-trust {
  max-width: 380px;
  margin: 12px 0 0;
  padding: 14px 18px;
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.08), rgba(124, 92, 252, 0.06));
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 16px 16px 0;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav-group { min-width: 0; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.footer-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.25), transparent);
}

.footer-links { display: grid; gap: 2px; }
.footer-links a {
  display: inline-block;
  padding: 7px 0;
  color: var(--text-mid);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.footer-links a:hover { color: var(--accent-cyan); transform: translateX(4px); }
.footer-links a[aria-current="page"] { color: var(--accent-cyan); }

.footer-contact {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--text-low);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
}

/* ===== 6. Bento Grid ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-module);
}

.bento-item {
  position: relative;
  grid-column: span 4;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.015), transparent 40%), var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-slow), box-shadow var(--dur-slow);
}
.bento-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 85% -10%, rgba(0, 229, 255, 0.09), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow);
}
.bento-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 229, 255, 0.06);
}
.bento-item:hover::before { opacity: 1; }

.bento-item--span3 { grid-column: span 3; }
.bento-item--span4 { grid-column: span 4; }
.bento-item--span5 { grid-column: span 5; }
.bento-item--span6 { grid-column: span 6; }
.bento-item--span7 { grid-column: span 7; }
.bento-item--span8 { grid-column: span 8; }
.bento-item--span12 { grid-column: span 12; }
.bento-item--hero { grid-column: span 8; min-height: 340px; }
.bento-item--row2 { min-height: 260px; }
.bento-item--row3 { min-height: 340px; }
.bento-item--row4 { min-height: 420px; }

.bento-item--cut::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-style: solid;
  border-width: 0 0 34px 34px;
  border-color: transparent transparent var(--bg-base) transparent;
  opacity: 0.55;
  pointer-events: none;
}

/* ===== 7. Cards & Image Frames ===== */
.card {
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.015), transparent 45%), var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-slow), box-shadow var(--dur-slow);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 229, 255, 0.04);
}

.card-cover { border-bottom: 1px solid var(--border-subtle); }
.card-body { padding: 22px 24px 24px; }
.card-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: 0; }
.card-meta {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
}
.card-text { font-size: 15px; line-height: 1.65; color: var(--text-mid); }
.card-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.card-link { position: relative; z-index: 1; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent-cyan); }
.card-link:hover { text-decoration: underline; text-decoration-color: rgba(0, 229, 255, 0.5); }

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 25% 0%, rgba(124, 92, 252, 0.16), transparent 50%),
    linear-gradient(145deg, var(--bg-overlay), #0A111C);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 20%, rgba(0, 229, 255, 0.13), transparent 55%);
  pointer-events: none;
}
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.img-frame:hover img { transform: scale(1.03); }
.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }

/* ===== 8. Data Display ===== */
.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.data-chip--warm {
  background: rgba(255, 122, 69, 0.08);
  border-color: rgba(255, 122, 69, 0.25);
  color: var(--signal-warm);
}

.data-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-high);
  letter-spacing: -0.02em;
}
.data-num--accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.data-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.08);
}
.data-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--bar-w, 65%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

/* ===== 9. Filter Bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.filter-btn {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.filter-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-high); }
.filter-btn[aria-pressed="true"] {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.32);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.08);
}

/* ===== 10. Utilities & Motion ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.text-gradient {
  background: linear-gradient(100deg, var(--accent-cyan), #7C5CFC 55%, var(--signal-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.is-enter { animation: riseIn var(--dur-slow) var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* ===== 11. Responsive ===== */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .nav-list a { padding: 8px 11px; font-size: 13px; }
  .bento-item--span5,
  .bento-item--span7,
  .bento-item--span8 { grid-column: span 6; }
  .bento-item--hero { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .site-header { padding: 10px 16px 0; }
  .header-inner { gap: 8px; padding: 6px 6px 6px 12px; }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-bar {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(14, 22, 36, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s;
  }
  .nav-bar[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-list a {
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    border-radius: 14px;
  }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .page-head { padding-top: 36px; }
  .section { margin-top: 48px; }

  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .bento-item,
  [class*="bento-item--span"] { grid-column: span 4; }
  .bento-item--hero { grid-column: 1 / -1; min-height: 300px; }
  .bento-item--row3,
  .bento-item--row4 { min-height: 260px; }
}

@media (max-width: 560px) {
  .filter-bar { border-radius: 20px; gap: 4px; padding: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 13px; }
  .footer-inner { padding: 40px 16px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item,
  [class*="bento-item--span"] { grid-column: 1 / -1; }
}
