/* ═══════════════════════════════════════════
   HOMEPAGE STYLES — home.css
   Loaded only on the Homepage template.
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   SCROLL ANIMATION BASE
───────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="100"] { transition-delay: 0.10s; }
[data-animate][data-delay="200"] { transition-delay: 0.20s; }
[data-animate][data-delay="300"] { transition-delay: 0.30s; }
[data-animate][data-delay="400"] { transition-delay: 0.40s; }
[data-animate][data-delay="500"] { transition-delay: 0.50s; }

/* ─────────────────────────────────────────
   DOT GRID MIXIN (reused in hero + CTA)
───────────────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(0,0,0,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
}
.dot-grid-light {
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ─────────────────────────────────────────
   SECTION 1: HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(224,92,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
}

/* Floating preview cards */
.hero-floating-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-floating-card:first-child {
  transform: rotate(-3deg) translateY(10px);
  animation: float-left 5s ease-in-out infinite;
}
.hero-floating-card:last-child {
  transform: rotate(3deg) translateY(-10px);
  animation: float-right 5.5s ease-in-out infinite;
}

@keyframes float-left {
  0%, 100% { transform: rotate(-3deg) translateY(10px); }
  50%       { transform: rotate(-2deg) translateY(-4px); }
}
@keyframes float-right {
  0%, 100% { transform: rotate(3deg) translateY(-10px); }
  50%       { transform: rotate(2deg) translateY(4px); }
}

.hfc-initial {
  width: 36px;
  height: 36px;
  border-radius: var(--r-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.hfc-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-1);
  line-height: 1.3;
}

.hfc-firm {
  font-size: var(--text-xs);
  color: var(--ink-4);
  margin: 0 0 var(--space-3);
}

.hfc-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hfc-placeholder {
  text-align: center;
  padding: var(--space-8);
  opacity: 0.35;
}

/* Hero center content */
.hero-center {
  text-align: center;
  padding: 0 var(--space-4);
}

/* Launch badge */
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-s);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 1.8s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Hero headline */
.hero-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--space-5);
}

.hero-h1 .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--tc);
  display: block;
  font-size: 1.08em;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--ink-3);
  font-weight: 400;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

/* Search bar */
.hero-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 600px;
  margin: 0 auto var(--space-6);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search:focus-within {
  border-color: var(--tc);
  box-shadow: 0 0 0 4px rgba(224,92,42,0.12), var(--shadow-l);
}

.hero-search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-base);
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}

.hero-search-input::placeholder { color: var(--ink-4); }

.hero-search-divider {
  width: 1px;
  background: var(--border);
  margin: 0.625rem 0;
  flex-shrink: 0;
}

.hero-search-city {
  padding: 0.875rem 1rem 0.875rem 0.875rem;
  font-size: var(--text-sm);
  color: var(--ink-3);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.75rem;
}

.hero-search-btn {
  padding: 0.75rem 1.25rem;
  background: var(--tc);
  color: #fff;
  border: none;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--tc-hover); }

/* Popular tags */
.popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-sm);
}

.popular-tags-label {
  color: var(--ink-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.popular-tag {
  padding: 0.3rem 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.popular-tag:hover {
  background: var(--tc-soft);
  border-color: var(--tc-border);
  color: var(--tc);
}

/* ─────────────────────────────────────────
   SECTION 2: STATS BAR
───────────────────────────────────────── */
.stats-bar {
  background: var(--ink);
  padding: var(--space-8) 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-block {
  text-align: center;
  padding: var(--space-4) var(--space-6);
  position: relative;
}

.stat-block + .stat-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.10);
}

.stat-number {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-number .stat-accent { color: var(--tc); }

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

/* ─────────────────────────────────────────
   SECTION 3: HOW IT WORKS
───────────────────────────────────────── */
.hiw-section {
  padding: var(--space-20) 0;
  background: var(--bg-2);
}

.hiw-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hiw-left .section-overline {
  margin-bottom: var(--space-3);
}

.hiw-left h2 {
  margin-bottom: var(--space-5);
}

.hiw-left > p {
  font-size: var(--text-md);
  color: var(--ink-3);
  margin-bottom: var(--space-10);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--r-m);
  background: var(--tc);
  color: #fff;
  font-size: var(--text-md);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-tc);
}

.step-content h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--ink);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0;
}

/* HOW IT WORKS — right panel */
.hiw-right {
  position: relative;
}

.hiw-panel {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.hiw-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

.hiw-panel-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-5);
  position: relative;
}

.mini-jobs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.mini-job {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-m);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: background 0.15s;
}

.mini-job:hover {
  background: rgba(255,255,255,0.10);
}

.mini-job-initial {
  width: 36px;
  height: 36px;
  border-radius: var(--r-s);
  background: var(--tc);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-job-info { flex: 1; min-width: 0; }

.mini-job-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.mini-job-firm {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

.mini-job-badge {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  background: rgba(224,92,42,0.25);
  color: #F5B89A;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SECTION 4: CATEGORIES
───────────────────────────────────────── */
.categories-section {
  padding: var(--space-20) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.category-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--tc);
  background: var(--tc-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
}

.cat-emoji {
  font-size: 2rem;
  line-height: 1;
}

.cat-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

.cat-count {
  font-size: var(--text-xs);
  color: var(--ink-4);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.category-card:hover .cat-name { color: var(--tc); }
.category-card:hover .cat-count { background: rgba(224,92,42,0.12); color: var(--tc); }

/* ─────────────────────────────────────────
   SECTION 5: JOB LISTINGS
───────────────────────────────────────── */
.jobs-section {
  padding: var(--space-20) 0;
  background: var(--bg-2);
}

.jobs-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.view-all-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tc);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap 0.15s;
}
.view-all-link:hover { gap: var(--space-2); }
.view-all-link svg { transition: transform 0.15s; }
.view-all-link:hover svg { transform: translateX(3px); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.filter-tab {
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--tc);
  color: var(--tc);
  background: var(--tc-soft);
}

.filter-tab.active {
  background: var(--tc);
  border-color: var(--tc);
  color: #fff;
}

/* Jobs grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  min-height: 200px;
  position: relative;
  transition: opacity 0.2s;
}

.jobs-grid.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.jobs-grid.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Job card (full) */
.job-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
}

.job-card--featured {
  border-color: var(--tc-border);
  background: var(--tc-soft);
}

.job-card--featured:hover {
  border-color: var(--tc);
}

.job-card-featured-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--tc);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: calc(var(--space-1) * -1);
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.firm-initial {
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink-2);
  flex-shrink: 0;
  overflow: hidden;
}

.firm-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-card-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.job-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  flex-shrink: 0;
}

.job-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.job-card-title a:hover,
.job-card:hover .job-card-title a { color: var(--tc); }

.job-card-firm {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin: 0;
  flex-shrink: 0;
}

.job-card-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex: 1;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--ink-4);
  font-weight: 500;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.job-salary {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-2);
}

.job-posted-time {
  font-size: var(--text-xs);
  color: var(--ink-4);
  display: block;
  margin-top: calc(var(--space-1) * -1);
}

/* Empty state */
.jobs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.jobs-empty p {
  color: var(--ink-4);
  font-size: var(--text-base);
}

/* ─────────────────────────────────────────
   SECTION 6: WHY ARCHICAREERS
───────────────────────────────────────── */
.why-section {
  padding: var(--space-20) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-12);
}

.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--tc-border);
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-m);
  background: var(--tc-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────
   SECTION 7: TESTIMONIALS
───────────────────────────────────────── */
.testi-section {
  padding: var(--space-20) 0;
  background: var(--bg-2);
}

.testi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-12);
  align-items: start;
}

.testi-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Featured dark testimonial */
.testi-featured {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--space-10);
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.testi-featured::after {
  content: '"';
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-6);
  position: relative;
}

.testi-star { color: #F59E0B; font-size: 1rem; }
.testi-star.dim { color: rgba(255,255,255,0.2); }

.testi-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin: 0 0 var(--space-8);
  position: relative;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tc);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.testi-role {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* Light testimonial cards */
.testi-light {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-6);
  transition: all 0.2s var(--ease);
}

.testi-light:hover {
  border-color: var(--tc-border);
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
}

.testi-light .testi-stars .testi-star { color: #F59E0B; }
.testi-light .testi-stars .testi-star.dim { color: var(--border); }

.testi-light .testi-quote {
  font-size: var(--text-base);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-style: italic;
  margin: var(--space-4) 0;
  line-height: 1.55;
}

.testi-light .testi-name { color: var(--ink); font-size: var(--text-sm); font-weight: 700; margin: 0; }
.testi-light .testi-role { color: var(--ink-4); font-size: var(--text-xs); margin: 2px 0 0; }
.testi-light .testi-avatar {
  background: var(--tc-soft);
  color: var(--tc);
  width: 36px;
  height: 36px;
  font-size: var(--text-base);
}

/* ─────────────────────────────────────────
   SECTION 8: JOB ALERT
───────────────────────────────────────── */
.alert-section {
  padding: var(--space-20) 0;
}

.alert-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.alert-inner h2 { margin-bottom: var(--space-3); }

.alert-inner > p {
  color: var(--ink-3);
  margin-bottom: var(--space-8);
}

.alert-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}

.alert-input {
  flex: 1;
  padding: 0.75rem 1.125rem;
  font-size: var(--text-base);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  min-width: 0;
}

.alert-input:focus {
  border-color: var(--tc);
  box-shadow: 0 0 0 3px rgba(224,92,42,0.12);
}

.alert-msg {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  display: none;
}
.alert-msg.success { color: #1A8C4E; display: block; }
.alert-msg.error   { color: #E04242; display: block; }

.alert-privacy {
  font-size: var(--text-xs);
  color: var(--ink-4);
  margin-top: var(--space-4);
}

/* ─────────────────────────────────────────
   SECTION 9: INSTAGRAM
───────────────────────────────────────── */
.ig-section {
  padding: var(--space-20) 0;
  background: var(--bg-2);
}

.ig-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.ig-follow-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* Blueprint / dark job preview cards */
.ig-job-card {
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  background-color: #0A1628;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.ig-job-card:hover {
  transform: scale(1.02);
}

.ig-job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95) 40%, transparent 100%);
  pointer-events: none;
}

.ig-card-content { position: relative; z-index: 1; }

.ig-city-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(224,92,42,0.9);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.ig-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: var(--space-1);
}

.ig-card-firm {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

.ig-card-accent {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 1;
}

.ig-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--tc);
  border-radius: var(--r-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: var(--text-md);
}

/* ─────────────────────────────────────────
   SECTION 10: CTA BANNER
───────────────────────────────────────── */
.cta-banner {
  padding: var(--space-20) 0;
  background-color: var(--tc);
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.cta-banner h2 .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.cta-banner > .container > p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--tc);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--tc-soft);
  border-color: var(--tc-soft);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 200px 1fr 200px;
    gap: var(--space-5);
  }
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-floating-card { display: none; }
  .hiw-layout { grid-template-columns: 1fr; }
  .hiw-right { display: none; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(3)::before { display: none; }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .filter-tabs { gap: var(--space-2); }
  .filter-tab { font-size: var(--text-xs); padding: 0.35rem 0.75rem; }
  .hero-search { flex-wrap: wrap; border-radius: var(--r-xl); }
  .hero-search-divider { display: none; }
  .hero-search-city { width: 100%; padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); }
  .hero-search-btn { width: 100%; border-radius: 0 0 var(--r-xl) var(--r-xl); justify-content: center; }
  .alert-form { flex-direction: column; }
  .testi-featured { padding: var(--space-8); }
}

@media (max-width: 580px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-block + .stat-block::before { display: none; }
}

@media (max-width: 360px) {
  .ig-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
