/* ===== SB Systems design system ===== */

:root {
  --ink: #0d1117;
  --ink-soft: #3a4150;
  --paper: #f7f5f2;
  --surface: #ffffff;
  --line: rgba(13, 17, 23, 0.1);
  --accent: #ff5b39;
  --accent-dark: #e0431f;
  --accent-ink: #ffffff;
  --teal: #0d9488;
  --gold: #f2b705;
  --muted: #6b7280;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.06), 0 1px 1px rgba(13, 17, 23, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(13, 17, 23, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(13, 17, 23, 0.28);
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* NOTE: `overflow-x: clip` used to live here as a guard against the mobile
     nav drawer's off-screen position inflating the document's scrollable
     width. Removed — on real mobile browsers it was breaking `position:
     sticky` on .site-header (sticky's nearest-scroll-container logic gets
     unreliable once the root element's overflow is touched at all in some
     engines, `clip` included, despite the spec saying it shouldn't). The
     horizontal-scroll bug it was guarding against is now independently
     covered by three other mechanisms below: `touch-action: pan-y` (blocks
     horizontal touch-drag at the input level), `overscroll-behavior-x: none`
     (blocks the edge-swipe back/forward gesture), and `visibility: hidden`
     on the closed drawer itself (nav-main in main.css) — none of which
     touch the root element's overflow, so sticky is safe. */
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
body {
  margin: 0;
  /* A floor this high (320px, a full iPhone SE width) forces real overflow
     on narrower real devices — some folded-phone cover screens run ~260px.
     Lowered so the floor doesn't itself become the cause of the horizontal
     scroll it was meant to guard against. */
  min-width: 280px;
  touch-action: pan-y;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* All icons render via one shared 18x18 SVG helper (icons.ts) — bumping
   them here covers every icon on the site (search fields, job cards, footer,
   etc.) without touching each usage individually. Sized up on phones where
   the fixed 18px felt small. */
@media (max-width: 640px) {
  svg { width: 22px; height: 22px; }
}
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px -8px rgba(255, 91, 57, 0.55); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(255, 91, 57, 0.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 242, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; transition: height 0.3s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(13, 17, 23, 0.25); background: rgba(247, 245, 242, 0.94); }
.site-header.scrolled .container { height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 31px; width: auto; display: block; transition: transform 0.4s var(--ease); }
.logo:hover .logo-img { transform: scale(1.05); }
/* The logo file is black-on-transparent; invert it to white for the dark
   footer background rather than keeping a second logo asset. */
.logo-footer .logo-img { filter: invert(1); height: 28px; }
.nav-main { display: flex; align-items: center; gap: 30px; }
.nav-main a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; position: relative; }
.nav-main a:hover, .nav-main a.active { color: var(--ink); }
.nav-main a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-main a:hover::after, .nav-main a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
  /* top+height (not `bottom`/`inset`) deliberately: .site-header has
     backdrop-filter, which makes it the containing block for this
     position:fixed element per spec, so a `bottom: 0` here would resolve
     against the ~76px-tall header box instead of the viewport, collapsing
     the drawer's height to almost nothing. `100vh`-based height is always
     true-viewport-relative regardless of containing block, so it isn't
     affected by that quirk. */
  .nav-main {
    position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px);
    z-index: 55; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  /* Belt-and-suspenders against a `transform`-only closed state: even if a
     browser doesn't fully honor `overflow-x: clip` on <html> (older Safari,
     etc.) and the closed drawer becomes horizontally swipe-reachable,
     `visibility: hidden` independently keeps it non-interactive and
     unreachable either way. Visibility flips instantly on open (no delay)
     but is delayed on close until the slide-out transform finishes, so the
     close animation still plays. */
  .nav-main.open { transform: translateX(0); visibility: visible; transition: transform 0.35s var(--ease); }
  .nav-main a { padding: 14px 4px; width: 100%; border-bottom: 1px solid var(--line); }
  /* The sliding-underline ::after (bottom:-22px, meant for a horizontal
     desktop nav row) renders as a stray line floating below each stacked
     mobile link, and jumps to whichever link is .active — that's the "line
     that moves" when tapping between items. The border-bottom above already
     separates items in this vertical layout, so just drop the underline
     here and rely on color for the active state instead. */
  .nav-main a::after { display: none; }
  .nav-main a.active { color: var(--accent-dark); font-weight: 600; }
  .nav-toggle { display: block; padding: 10px; position: relative; z-index: 2; }
  .nav-actions .btn-ghost { display: none; }
  /* The base .site-header .container rule uses justify-content:space-between,
     which — since the drawer nav is position:fixed and doesn't occupy flex
     space here — spreads exactly 3 items (logo, nav-actions, nav-toggle)
     evenly across the full header width. That's what was pushing "Hire
     Talent" away from the hamburger regardless of any gap value. Switching
     to flex-start + margin-left:auto on .nav-actions keeps the logo pinned
     left while pulling nav-actions and nav-toggle into one tight cluster on
     the right, separated only by the small gap below. */
  .site-header .container { justify-content: flex-start; gap: 6px; }
  .nav-actions { gap: 8px; margin-left: auto; }
  .nav-actions .btn-sm { padding: 9px 14px; font-size: 0.82rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero-blobs {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
  transition: transform 0.6s var(--ease);
}
.blob { position: absolute; border-radius: 50%; filter: blur(55px); opacity: 0.6; animation: float 9s ease-in-out infinite; }
.blob-a { width: 440px; height: 440px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -120px; right: -80px; }
.blob-b { width: 360px; height: 360px; background: radial-gradient(circle, var(--teal), transparent 70%); bottom: -140px; left: -60px; animation-delay: -3s; animation-duration: 11s; }
.blob-c { width: 260px; height: 260px; background: radial-gradient(circle, var(--gold), transparent 70%); top: 30%; left: 40%; animation-delay: -5s; animation-duration: 7s; opacity: 0.4; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-48px, 46px) scale(1.15); } }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-inner p.lead { font-size: 1.15rem; max-width: 560px; margin: 0 auto 36px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px); margin-top: 56px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.hero-stat .label { font-size: 0.85rem; color: var(--muted); }

/* Hero load-in animation (fires immediately on page load, not scroll-gated) */
.hero-in { opacity: 0; animation: heroIn 0.9s var(--ease) forwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; opacity: 1; }
  .hero-blobs { transform: none !important; }
}

/* Search box — pill-shaped segmented bar */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.search-card {
  position: relative; z-index: 1;
  background: var(--surface); border-radius: 999px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 8px; margin: 40px auto 0; max-width: 1000px;
  display: flex; align-items: center;
}
.search-field {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; flex: 1; min-width: 0;
}
.search-field:nth-child(1) { flex: 1.05; }
.search-field:nth-child(2) { flex: 0.85; }
.search-field:nth-child(3) { flex: 1.25; }
.search-field .field-icon { flex-shrink: 0; display: flex; color: var(--accent); }
.search-field input, .search-field select {
  border: none; outline: none; background: transparent; width: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.96rem; color: var(--ink); padding: 2px 0;
}
.search-field select { cursor: pointer; }
.search-field input::placeholder { color: var(--muted); }
.search-field:not(:last-of-type) { border-right: 1px solid var(--line); }
.search-card .btn { flex-shrink: 0; border-radius: 999px; }
@media (max-width: 820px) {
  .search-card { flex-direction: column; align-items: stretch; border-radius: var(--radius-lg); gap: 2px; padding: 10px; }
  .search-field { border-radius: var(--radius-sm); }
  .search-field:not(:last-of-type) { border-right: none; border-bottom: 1px solid var(--line); }
  .search-card .btn { width: 100%; margin-top: 6px; }
}

/* Logo strip section — tighter than the default .section rhythm */
.logo-section { padding: 20px 0 12px; }
.value-section { padding-top: 24px; }

/* Marquee (logo strip + testimonials) */
.marquee {
  overflow: hidden; perspective: 1400px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 32px; align-items: center; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { flex: 0 0 auto; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); letter-spacing: 0.01em; opacity: 0.75; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-slow .marquee-track { gap: 24px; animation-duration: 48s; }
.marquee-slow .testimonial { flex: 0 0 380px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Logo marquee images — plain CSS animation, no JS/interaction logic at all
   (the 3D rotating ring this replaced kept breaking: stuck rotation, hover
   bugs, mobile overflow. This has none of that surface area).
   Sizing note: the source files are only 200x100px (that's what's in
   /public/images/clients — not something set here), so displaying them much
   past ~44-48px CSS height starts visibly upscaling/blurring on standard
   2-3x pixel-density screens. Kept modest on purpose; swap in higher-res
   source files if these need to run bigger without softening. */
.logo-marquee .marquee-track img {
  flex: 0 0 auto; height: 64px; width: auto; max-width: 170px; object-fit: contain;
  transition: transform 0.3s ease;
}
.logo-marquee .marquee-track img:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  .logo-marquee .marquee-track img { height: 70px; max-width: 150px; }
  .logo-marquee .marquee-track { gap: 36px; }
}

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-visual {
  position: relative; border-radius: var(--radius-lg); overflow: visible; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--ink), #232a36);
  display: flex; align-items: center; justify-content: center;
}
.split-visual::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 91, 57, 0.38), transparent 55%),
    radial-gradient(circle at 80% 76%, rgba(13, 148, 136, 0.32), transparent 55%);
}

/* Floating "candidate card" illustration — used in place of stock photography */
.visual-card {
  position: relative; z-index: 2; width: 72%;
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  animation: cardFloat 5s ease-in-out infinite;
}
.visual-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); flex-shrink: 0; }
.visual-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.visual-lines span { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.visual-lines span:first-child { width: 70%; background: rgba(13, 17, 23, 0.22); }
.visual-lines span:last-child { width: 45%; }
.visual-check { width: 34px; height: 34px; border-radius: 50%; background: rgba(13, 148, 136, 0.15); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.visual-badge {
  position: absolute; z-index: 3;
  background: var(--surface); border-radius: 999px; padding: 9px 16px;
  font-size: 0.78rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  animation: cardFloat 5s ease-in-out infinite;
}
.visual-badge-a { top: 10%; right: -6%; color: var(--accent-dark); }
.visual-badge-b { bottom: 12%; left: -8%; color: var(--teal); animation-delay: -2.5s; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .visual-badge-a { right: 4%; }
  .visual-badge-b { left: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-card, .visual-badge { animation: none; }
}

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 91, 57, 0.12); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--ink); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 18px;
}

/* Testimonials */
.testimonial { flex: 0 0 min(420px, 85vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial .quote { font-size: 1.05rem; color: var(--ink); margin-bottom: 18px; }
.testimonial .person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* Job cards */
.job-card {
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card h3 { margin: 0; }
.job-card .company { color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-source-local { background: rgba(13, 148, 136, 0.14); color: var(--teal); }
.tag-source-live { background: rgba(13, 17, 23, 0.08); color: var(--ink-soft); }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Forms */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 91, 57, 0.15); }
.field textarea { min-height: 140px; resize: vertical; }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }

/* Filters bar */
.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); transition: all 0.2s ease; }
.filter-chip.active, .filter-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }

/* Dark CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.7); max-width: 520px; margin: 0 auto 28px; }
.cta-band .glow { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 91, 57, 0.35), transparent 70%); top: -200px; right: -120px; filter: blur(10px); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 64px 0 32px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, 0.65); display: block; padding: 6px 0; font-size: 0.92rem; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; padding: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.37s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .blob { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Alerts / empty states */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(13, 148, 136, 0.1); color: #0a5d54; font-size: 0.9rem; margin-bottom: 24px; }
.alert-warn { background: rgba(242, 183, 5, 0.15); color: #8a6403; }
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(13, 17, 23, 0.06); font-size: 0.75rem; font-weight: 700; }

