/* ==========================================================
   SPICA AGROBOTS — SHARED STATIC SITE STYLESHEET
   Used by: contact.html, uv-rover.html, solutions.html,
            about.html, research.html
   ========================================================== */

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --background: #ffffff;
  --foreground: #17181a;
  --muted-foreground: #6b6f76;
  --card: #f7f6f3;
  --secondary: #f3f2ee;
  --border: #e4e2dc;
  --input: #d9d7d0;
  --primary: #17181a;
  --primary-foreground: #ffffff;
  --accent: #d9481f;
  --accent-foreground: #ffffff;
  --uv: #7c5cff;

  --deep: #141414;
  --deep-foreground: #f3f2ee;
  --deep-border: #2b2b2b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
input, textarea, select, button { font-family: inherit; }
img { max-width: 100%; display: block; }

.wrap { display: flex; min-height: 100dvh; flex-direction: column; }
.container { margin: 0 auto; width: 100%; max-width: 1240px; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.mono-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  overflow: visible;
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px;
}
@media (min-width: 1024px) { .header-inner { height: 72px; } }

.logo { display: flex; align-items: center; gap: 10px; max-width: 30%; overflow: hidden; }
.logo-mark { width: auto; display: block; flex-shrink: 0; object-fit: contain; }
.logo-mark-header { height: 40px !important; max-height: 40px !important; width: auto !important; }
@media (min-width: 1024px) { .logo-mark-header { height: 44px !important; max-height: 44px !important; } }
.logo-mark-footer { height: 56px !important; max-height: 56px !important; width: auto !important; }

nav.main-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { nav.main-nav { display: flex; } }
nav.main-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--foreground); }
nav.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.main-nav a:hover::after, nav.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-header {
  display: none; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding: 0 20px;
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.75rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease;
}
@media (min-width: 640px) { .btn-header { display: inline-flex; } }
.btn-header:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 44px; min-height: 44px;
  border: 1px solid var(--input); background: var(--background);
  cursor: pointer; transition: background-color 0.2s ease;
}
.menu-toggle:hover { background: var(--secondary); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 22px; height: 22px; color: var(--foreground); }

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: absolute; top: calc(100% + 1px); right: 0; left: 0;
  background: var(--background); border: 1px solid var(--border); border-top: none;
  display: none; flex-direction: column; padding: 8px 0;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
  max-height: calc(100vh - 64px); overflow-y: auto;
  width: 100%; box-sizing: border-box;
}
.mobile-nav.open { display: flex; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav-link {
  display: block;
}
.mobile-nav a.mobile-nav-link {
  padding: 12px 24px !important;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav a[aria-current="page"] { color: var(--foreground); background: var(--secondary); }

/* ---------- Hero ---------- */
.hero, .section, .section-dark {
  position: relative; overflow: hidden;
  padding: 80px 0;
}
@media (min-width: 1024px) { .hero, .section, .section-dark { padding: 112px 0; } }

.hero { border-bottom: 1px solid var(--border); background: var(--background); }
.section { border-top: 1px solid var(--border); background: var(--secondary); color: var(--foreground); }
.section.alt { background: var(--background); }
.section-dark { border-top: 1px solid var(--deep-border); background: var(--deep); color: var(--deep-foreground); }

.grid-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.grid-bg-deep {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.grid-bg::after {
  content: ""; position: absolute; left: 0; right: 0; height: 220px;
  background: linear-gradient(180deg, transparent, var(--accent) 45%, transparent);
  opacity: 0.08; animation: spica-scan 7s linear infinite;
}
@keyframes spica-scan { 0% { transform: translateY(-220px); } 100% { transform: translateY(120%); } }

.hero-inner, .section-inner { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted-foreground);
  padding: 6px 12px;
}
.pill.on-dark { border-color: var(--deep-border); background: rgba(255,255,255,0.04); color: rgba(243,242,238,0.8); }
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

h1 {
  margin: 20px 0 0; max-width: 56rem;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; line-height: 1.08;
}
@media (min-width: 640px) { h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { h1 { font-size: 3.8rem; } }

.gradient-text {
  background: radial-gradient(circle at 30% 30%, #fe7b02, #fe3f21 40%, #f858bc 65%, #575ecf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.lede {
  margin: 24px 0 0; max-width: 56rem;
  font-size: 1rem; line-height: 1.7; color: var(--muted-foreground);
}
@media (min-width: 640px) { .lede { font-size: 1.125rem; } }
.section-dark .lede { color: rgba(243,242,238,0.7); }

h2 {
  font-family: var(--font-display); font-weight: 600; margin: 20px 0 0;
  font-size: 1.8rem; line-height: 1.1;
}
@media (min-width: 640px) { h2 { font-size: 2.2rem; } }
@media (min-width: 1024px) { h2 { font-size: 2.7rem; } }
h2.small { font-size: 1.5rem; }

.step-label { display: flex; align-items: center; gap: 12px; color: var(--muted-foreground); }
.section-dark .step-label { color: rgba(243,242,238,0.6); }
.step-num {
  background: radial-gradient(circle at 30% 30%, #fe7b02, #fe3f21 40%, #f858bc 65%, #575ecf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step-rule { height: 1px; width: 32px; background: var(--border); }
.section-dark .step-rule { background: var(--deep-border); }

.max-w { max-width: 48rem; }

/* ---------- Grids / layout ---------- */
.grid-2 { display: grid; gap: 40px; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 80px; } }
.grid-2.uneven-a { }
@media (min-width: 1024px) { .grid-2.uneven-a { grid-template-columns: 1fr 1.25fr; } }
@media (min-width: 1024px) { .grid-2.uneven-b { grid-template-columns: 1.05fr 1fr; } }

.card-row { display: grid; gap: 4px; margin-top: 56px; }
@media (min-width: 768px) { .card-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .card-row.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-row.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .card-row.cols-5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  height: 100%; background: var(--card); border: 1px solid var(--border); padding: 28px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.card .num { color: var(--accent); }
.card h3 { margin: 16px 0 0; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 10px 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--muted-foreground); }

.card.on-dark { background: rgba(255,255,255,0.03); border: none; }
.card.current { background: color-mix(in srgb, var(--accent) 8%, var(--background)); }
.card.current-bar { border-top: 3px solid var(--accent); }
.card.plain-bar { border-top: 3px solid var(--border); }

/* ---------- Definition list ---------- */
.stat-dl { border: 1px solid var(--border); }
.stat-dl.on-dark { border-color: var(--deep-border); }
.stat-dl > div {
  display: grid; gap: 4px; padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.stat-dl.on-dark > div { border-bottom-color: var(--deep-border); }
.stat-dl > div:last-child { border-bottom: none; }
@media (min-width: 640px) { .stat-dl > div { grid-template-columns: minmax(0,14rem) 1fr; gap: 24px; } }
.stat-dl dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); padding-top: 2px; }
.stat-dl.on-dark dt { color: rgba(243,242,238,0.55); }
.stat-dl dd { margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* ---------- Figures ---------- */
figure.framed { border: 1px solid var(--border); }
figure.framed figcaption {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-top: 1px solid var(--border); background: var(--background);
  padding: 14px 20px; color: var(--muted-foreground);
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 28px;
  font-size: 0.875rem; font-weight: 500; border: none; cursor: pointer;
  white-space: nowrap !important; line-height: 1; flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 400px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 90%, transparent); transform: translateY(-2px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-outline-dark { border: 1px solid var(--deep-border); background: transparent; color: var(--deep-foreground); }
.btn-outline-dark:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--background);
  padding: 12px 16px; margin-top: 32px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Timeline / ordered list ---------- */
.timeline { border: 1px solid var(--border); }
.timeline > li { border-bottom: 1px solid var(--border); }
.timeline > li:last-child { border-bottom: none; }
.timeline .inner { background: var(--background); padding: 28px; }
.timeline .stage { color: var(--accent); }
.timeline h3 { margin: 16px 0 0; font-size: 1.15rem; font-weight: 600; }
.timeline p { margin: 12px 0 0; line-height: 1.6; color: var(--muted-foreground); }

.phase-list > li { border: 1px dashed var(--border); padding: 24px; margin-top: 12px; background: transparent; }
.phase-list > li:first-child { margin-top: 0; }
.phase-list > li.active { border: 1px solid color-mix(in srgb, var(--uv) 40%, transparent); background: color-mix(in srgb, var(--uv) 5%, transparent); }
.phase-list p.eyebrow { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-foreground); }
.phase-list h3 { margin: 12px 0 0; font-size: 1.05rem; font-weight: 600; }
.phase-list p.body { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--muted-foreground); }

.phase-row { display: grid; gap: 1px; margin-top: 56px; border: 1px solid var(--deep-border); }
@media (min-width: 768px) { .phase-row { grid-template-columns: repeat(3, 1fr); } }
.phase-row .phase { height: 100%; background: rgba(255,255,255,0.03); padding: 28px; }
.phase-row .phase p.eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: 0.7rem; }
.phase-row .phase h3 { margin: 16px 0 0; font-size: 1.05rem; font-weight: 600; }
.phase-row .phase p.body { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.6; color: rgba(243,242,238,0.7); }

/* ---------- Stage strip (uv-rover, 5 steps) ---------- */
.stage-strip { display: grid; gap: 1px; border: 1px solid var(--border); margin-top: 56px; }
@media (min-width: 768px) { .stage-strip { grid-template-columns: repeat(5, 1fr); } }
.stage-strip > div { background: var(--card); padding: 24px; }
.stage-strip .bar { display: block; height: 4px; width: 100%; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.stage-strip .current .bar { background: var(--accent); }
.stage-strip .current { background: color-mix(in srgb, var(--accent) 8%, var(--background)); }
.stage-strip .num { margin-top: 20px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-foreground); }
.stage-strip h3 { margin: 8px 0 0; font-size: 1rem; font-weight: 600; }
.stage-strip p { margin: 8px 0 0; font-size: 0.85rem; line-height: 1.6; color: var(--muted-foreground); }
.stage-strip .current-tag { margin-top: 16px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); }

/* ---------- Team cards ---------- */
.team-grid { display: grid; gap: 1px; margin-top: 56px; border: 1px solid var(--border); }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { height: 100%; background: var(--card); padding: 28px; display: flex; flex-direction: column; }
.team-portrait {
  aspect-ratio: 4/5; width: 100%; margin-bottom: 28px; position: relative;
  border: 1px solid var(--border); background: var(--secondary); overflow: hidden;
}
.team-portrait span {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-foreground);
}
.team-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.team-card .role { margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.team-card .sub { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.team-card dl { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 12px; }
.team-card dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; }
.team-card dd { margin: 4px 0 0; }

/* ---------- Articles (research page) ---------- */
.tag-filter { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter button {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  min-height: 44px; border: 1px solid var(--border); background: var(--background); color: var(--muted-foreground);
  padding: 8px 16px; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.tag-filter button:hover { border-color: var(--accent); color: var(--foreground); }
.tag-filter button.active { border-color: var(--accent); background: var(--accent); color: var(--accent-foreground); }

.article-grid { display: grid; gap: 1px; margin-top: 48px; border: 1px solid var(--border); }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { height: 100%; background: var(--background); padding: 28px; display: flex; flex-direction: column; }
.article-thumb {
  aspect-ratio: 16/10; margin-bottom: 24px; position: relative;
  border: 1px solid var(--border); background: var(--secondary); overflow: hidden;
}
.article-thumb span {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-foreground);
}
.article-card .cat { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--accent); }
.article-card h2 { margin: 12px 0 0; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.article-card p { margin: 12px 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.article-card .meta { margin-top: auto; padding-top: 24px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-foreground); }

/* ---------- CTA section ---------- */
.cta-title { font-size: 1.8rem; }
@media (min-width: 640px) { .cta-title { font-size: 2.2rem; } }
@media (min-width: 1024px) { .cta-title { font-size: 2.9rem; } }

/* ---------- Notice box ---------- */
.notice-box {
  margin-top: 32px; border: 1px solid var(--border); background: var(--secondary); padding: 24px;
}
.notice-box.on-dark { border-color: var(--deep-border); background: rgba(255,255,255,0.04); }
.notice-box p.label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--muted-foreground); }
.notice-box.on-dark p.label { color: rgba(243,242,238,0.55); }
.notice-box p.body { margin: 12px 0 0; line-height: 1.6; }
.notice-box.on-dark p.body { color: rgba(243,242,238,0.8); }

.accent-callout {
  border-left: 3px solid var(--accent); background: var(--secondary); padding: 24px; height: 100%;
  display: flex; align-items: center;
}
.accent-callout p { line-height: 1.6; margin: 0; }

/* ---------- Contact page specific ---------- */
.detail-list { margin-top: 32px; border: 1px solid var(--border); }
.detail-list li {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--background); padding: 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list li:hover { background-color: color-mix(in srgb, var(--accent) 6%, var(--background)); }
.detail-list svg { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.detail-list .label { color: var(--muted-foreground); }
.detail-list .value { margin-top: 6px; font-size: 0.875rem; }
.detail-list .hint { margin-top: 4px; font-size: 0.75rem; color: var(--muted-foreground); }

.form-card { border: 1px solid var(--border); background: var(--background); padding: 28px; }
@media (min-width: 1024px) { .form-card { padding: 36px; } }
form.contact-form { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.field label { display: block; color: var(--muted-foreground); margin-bottom: 8px; }
.field .req { color: var(--accent); }
.spica-input {
  display: flex; width: 100%; height: 36px;
  border: 1px solid var(--input); background: transparent;
  padding: 4px 12px; font-size: 0.875rem; border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.spica-input { height: auto; padding: 10px 12px; resize: vertical; min-height: 120px; }
select.spica-input { cursor: pointer; }
.spica-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.row-2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.consent-row { display: flex; align-items: flex-start; gap: 12px; }
.consent-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.consent-row label { font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); cursor: pointer; }
.btn-submit { width: 100%; }
@media (min-width: 640px) { .btn-submit { width: auto; } }
.status-msg { display: none; align-items: center; gap: 8px; font-size: 0.875rem; animation: spica-fade-in 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.status-msg.show { display: inline-flex; }
.status-msg.success { color: var(--accent); }
.status-msg.error { color: #e0442f; }
@keyframes spica-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .grid-bg::after, .logo-diamond, .logo-dot { animation: none !important; }
}

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--deep-border); background: var(--deep); color: var(--deep-foreground); }
.footer-grid { display: grid; gap: 48px; padding: 64px 0; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; padding: 80px 0; } }
.footer-grid .logo svg { color: var(--deep-foreground); }
.footer-grid .logo-text .sub { color: rgba(243,242,238,0.55); }
.footer-desc { margin-top: 20px; max-width: 20rem; font-size: 0.875rem; line-height: 1.6; color: rgba(243,242,238,0.7); }
.footer-social {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--deep-border); padding: 8px 12px; color: rgba(243,242,238,0.8);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social:hover { border-color: var(--accent); color: var(--deep-foreground); }
.footer-social svg { width: 14px; height: 14px; }
.footer-heading { color: rgba(243,242,238,0.5); }
.footer-links { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 0.875rem; }
.footer-links a { color: rgba(243,242,238,0.75); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--deep-border); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; font-size: 0.75rem; color: rgba(243,242,238,0.55); }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a:hover { color: var(--accent); }
