/* ───────────────────────────────────────────
   RESET & VARIABLES
─────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary:       #64004e;
  --black:         #000000;
  --gray:          #b2b2b2;
  --white:         #FFFFFF;
  --primary-mid:   #8b0064;
  --primary-dark:  #3e0030;
  --accent:        #ff8cfa;
  --accent-light:  #ffe4fd;
  --accent-soft:   #fff0fe;
  --gray-light:    #e0e0e0;
  --gray-dark:     #555555;
  --error:         #b30000;
  --error-bg:      #fff0f0;

  --heading: 'League Spartan', sans-serif;
  --body:    'IBM Plex Serif', serif;
  --quote:   'Shrikhand', cursive;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--accent-soft);
  color: var(--black);
  font-family: var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ───────────────────────────────────────────
   MATERIAL SYMBOLS
─────────────────────────────────────────── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}

/* ───────────────────────────────────────────
   TOP NAV
─────────────────────────────────────────── */
.infosys-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              backdrop-filter 0.3s ease;
}
.infosys-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 92px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.infosys-nav.scrolled {
  background: rgba(255,255,255,0.80);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.infosys-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo {
  display: block;
  width: 168px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.infosys-nav.scrolled .site-logo {
  filter: none;
}
.nav-menu-button {
  width: 56px; height: 56px;
  border: 0; border-radius: 50%;
  background: #ffffff;
  color: #151841;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-menu-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
}
.hbg-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}
.hbg-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-menu-button.is-open .hbg-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-menu-button.is-open .hbg-bar:nth-child(2) {
  opacity: 0;
}
.nav-menu-button.is-open .hbg-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  transition: background 0.3s ease;
}
.infosys-nav.scrolled .nav-pill {
  background: rgba(0,0,0,0.06);
}
.nav-pill a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-pill a:hover {
  background: rgba(255,255,255,.15);
  color: #ffffff;
}
.infosys-nav.scrolled .nav-pill a {
  color: #121644;
}
.infosys-nav.scrolled .nav-pill a:hover {
  color: #64004e;
  background: rgba(100,0,78,.06);
}
.nav-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-action:hover {
  background: rgba(255,255,255,.20);
  color: #ffffff;
}
.infosys-nav.scrolled .nav-action {
  background: rgba(0,0,0,.06);
  color: #121644;
  border-color: rgba(0,0,0,.12);
}
.infosys-nav.scrolled .nav-action:hover {
  color: #64004e;
}

@media(max-width: 980px) {
  .infosys-nav-inner {
    min-height: 82px;
    padding: 0 20px;
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .nav-pill, .nav-action {
    display: none;
  }
  .site-logo {
    width: 154px;
  }
}

/* ───────────────────────────────────────────
   HAMBURGER OVERLAY
─────────────────────────────────────────── */
.hanvix-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 320px 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.hanvix-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.hanvix-menu-sidebar {
  position: relative;
  background: #f1f2f7;
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.hanvix-menu-close {
  position: absolute;
  top: 28px;
  left: 18px;
  cursor: pointer;
  background: #ffffff;
  border-radius: 50%;
  border: none;
  z-index: 20;
  width: 56px;
  height: 56px;
  overflow: hidden;
  transition-duration: 500ms;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.hanvix-menu-close .close-text {
  font-size: 1.875rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  line-height: 1;
  transition-duration: 500ms;
  position: relative;
  z-index: 10;
}
.hanvix-menu-close:hover .close-text {
  transform: scale(0);
}
.hanvix-menu-close .close-span {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  background-color: #64004e;
  transition-duration: 500ms;
  z-index: 0;
}
.hanvix-menu-close .cs-t {
  top: 5rem;
  left: 0;
}
.hanvix-menu-close:hover .cs-t {
  top: 2.25rem;
}
.hanvix-menu-close .cs-l {
  top: 0;
  left: 5rem;
}
.hanvix-menu-close:hover .cs-l {
  left: 2.25rem;
}
.hanvix-menu-close .cs-r {
  top: 0;
  right: 5rem;
}
.hanvix-menu-close:hover .cs-r {
  right: 2.25rem;
}
.hanvix-menu-close .cs-b {
  bottom: 5rem;
  right: 0;
}
.hanvix-menu-close:hover .cs-b {
  bottom: 2.25rem;
}
.hanvix-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hanvix-menu-links a {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #4a4a68;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.hanvix-menu-links a:hover {
  background: rgba(0,0,0,.04);
  color: #121644;
}
.hanvix-menu-link.active {
  background: #ffffff;
  color: #64004e;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-left: 4px solid #64004e;
  padding-left: 12px;
}
.hanvix-menu-links-simple {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.08);
  gap: 2px;
}
.hanvix-menu-links-simple a {
  font-size: 15px;
  font-weight: 400;
  color: #6a6a88;
  padding: 10px 16px;
}
.hanvix-menu-social {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  gap: 14px;
}
.hanvix-menu-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  color: #4a4a68;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.hanvix-menu-social a:hover {
  background: #64004e;
  color: #ffffff;
}
.hanvix-menu-panel {
  background: #ffffff;
  padding: 100px 56px 56px;
  overflow-y: auto;
}
.hanvix-card-section {
  display: none;
}
.hanvix-card-section.active {
  display: block;
  animation: scaleIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.hanvix-scale-out {
  display: block;
  position: absolute;
  inset: 0;
  animation: scaleOut 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}
.hanvix-menu-heading {
  font-family: 'League Spartan', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #121644;
  margin-bottom: 32px;
}
.hanvix-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hanvix-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.hanvix-card-tall {
  grid-row: span 2;
  height: 540px;
}
.hanvix-card:hover {
  transform: translateY(-4px);
}
.hanvix-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
}
.hanvix-card-title {
  position: absolute;
  left: 22px;
  bottom: 50px;
  right: 22px;
  z-index: 2;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.hanvix-card-link {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media(max-width: 980px) {
  .hanvix-menu-overlay {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .hanvix-menu-sidebar {
    padding: 80px 24px 24px;
  }
  .hanvix-menu-panel {
    padding: 24px;
  }
  .hanvix-card-grid {
    grid-template-columns: 1fr;
  }
  .hanvix-card-tall {
    grid-row: span 1;
    height: 260px;
  }
}

/* ───────────────────────────────────────────
   HERO
─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.80), rgba(0,0,0,.55), rgba(0,0,0,.25));
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 120px 24px 64px;
}
.hero-content {
  width: 96%;
  max-width: 1400px;
  text-align: center;
  color: #ffffff;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 28px 80px;
  animation: fadeUp 1.6s ease forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-tag {
  display: block;
  margin-bottom: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.hero h1 {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero p {
  font-family: 'IBM Plex Serif', serif;
  font-size: 16px;
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto;
  opacity: .95;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.hero-buttons a:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: #64004e;
  color: #ffffff;
}
.btn-primary:hover {
  background: #8b0064;
}
.btn-secondary {
  border: 1px solid #ffffff;
  color: #ffffff;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}
.hero-stats span {
  display: block;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,.76);
}

@media(max-width: 768px) {
  .hero-content {
    padding: 32px 20px;
    border-radius: 18px;
  }
  .hero-buttons a {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.hero-content .eyebrow {
  font-family: var(--heading);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.hero-content .eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.hero-content h1 {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: .8rem;
}
.hero-content h1 em {
  color: var(--accent);
  font-style: normal;
  font-family: var(--quote);
}
.hero-content p {
  color: rgba(255,255,255,.85);
  font-size: .97rem;
  max-width: 560px;
  line-height: 1.8;
  font-family: var(--body);
  margin: 0 auto;
}
.hero-content .stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-content .stat strong {
  font-family: var(--heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.hero-content .stat span {
  font-family: var(--heading);
  font-size: .6rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .3rem;
  display: block;
  font-weight: 600;
}

/* ─── DIVIDER ─── */
.divider {
  max-width: 1120px;
  margin: 0 auto 0;
  padding: 0 2rem;
}
.divider hr {
  border: none;
  border-top: 1px solid var(--gray-light);
}

/* ─── FILTER ─── */
.filter-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 2rem 1.8rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.fl {
  font-family: var(--heading);
  font-size: .65rem;
  color: var(--gray-dark);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: .4rem;
  font-weight: 600;
}
.fb {
  font-family: var(--heading);
  font-size: .72rem;
  color: var(--gray-dark);
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 7px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
  outline: none;
  font-weight: 600;
  letter-spacing: .04em;
}
.fb:hover {
  border-color: var(--primary-mid);
  color: var(--primary);
}
.fb.on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ─── CARDS WRAP ─── */
.cards-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ─── GRID ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

/* ─── CARD ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: all .22s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .22s;
}
.card:hover {
  border-color: var(--primary-mid);
  box-shadow: 0 4px 28px rgba(100,0,78,.09);
  transform: translateY(-2px);
}
.card:hover::before {
  opacity: 1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .9rem;
}
.badge {
  font-family: var(--heading);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid;
  font-weight: 700;
}
.b-sap {
  background: rgba(100,0,78,.07);
  border-color: rgba(100,0,78,.22);
  color: var(--primary);
}
.b-tech {
  background: rgba(62,0,48,.07);
  border-color: rgba(62,0,48,.22);
  color: var(--primary-dark);
}
.b-biz {
  background: rgba(255,140,250,.15);
  border-color: rgba(255,140,250,.35);
  color: var(--primary-mid);
}
.b-other {
  background: rgba(255,140,250,.1);
  border-color: rgba(255,140,250,.4);
  color: var(--primary-mid);
}
.card-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: .45rem;
  line-height: 1.25;
}
.card-desc {
  font-size: .84rem;
  color: var(--gray-dark);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1rem;
  font-family: var(--body);
}
.card-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--accent-light);
  padding-top: .95rem;
  margin-top: auto;
}
.apply-btn {
  background: var(--primary);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 700;
  font-size: .8rem;
  padding: 9px 20px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .04em;
}
.apply-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(100,0,78,.22);
}
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-dark);
  font-family: var(--heading);
  font-size: .78rem;
  grid-column: 1/-1;
}
.no-results div {
  font-size: 2rem;
  margin-bottom: .75rem;
}

/* ─── MODAL BACKDROP ─── */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(62,0,48,.45);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}
.backdrop.open {
  display: flex;
}

/* ─── MODAL ─── */
.modal {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 18px;
  width: 100%;
  max-width: 650px;
  margin: auto;
  animation: up .22s ease;
  box-shadow: 0 20px 60px rgba(62,0,48,.13);
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mhead {
  padding: 1.6rem 2rem 1.2rem;
  border-bottom: 1px solid var(--accent-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: var(--accent-soft);
  border-radius: 18px 18px 0 0;
}
.mhead-info h2 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: .2rem;
}
.mhead-info p {
  font-family: var(--heading);
  font-size: .65rem;
  color: var(--primary);
  letter-spacing: .07em;
  font-weight: 600;
}
.mclose {
  background: none;
  border: 1px solid var(--gray-light);
  color: var(--gray-dark);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all .2s;
  flex-shrink: 0;
}
.mclose:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.mbody {
  padding: 1.8rem 2rem;
}

/* ─── FORM ─── */
.fsec {
  margin-bottom: 1.6rem;
}
.fsec-title {
  font-family: var(--heading);
  font-size: .62rem;
  color: var(--primary);
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.fsec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-light);
}
.fg {
  margin-bottom: 1rem;
}
.flabel {
  display: block;
  font-family: var(--heading);
  font-size: .62rem;
  color: var(--gray-dark);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .42rem;
  font-weight: 600;
}
.req {
  color: var(--primary);
}
.fi, .fsel, .fta {
  width: 100%;
  background: var(--accent-soft);
  border: 1px solid var(--gray-light);
  color: var(--black);
  font-family: var(--body);
  font-size: .88rem;
  padding: 10px 14px;
  border-radius: 9px;
  outline: none;
  transition: all .2s;
}
.fi:focus, .fsel:focus, .fta:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(100,0,78,.07);
}
.fi::placeholder, .fta::placeholder {
  color: var(--gray);
}
.fsel {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23555555' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  background-color: var(--accent-soft);
}
.fsel option {
  background: var(--white);
  color: var(--black);
}
.fta {
  resize: vertical;
  min-height: 88px;
  line-height: 1.7;
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.fhint {
  font-size: .75rem;
  color: var(--gray-dark);
  margin-top: .35rem;
  font-family: var(--body);
}

/* ─── WORK TYPE CHIPS ─── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .2rem;
}
.chip {
  font-family: var(--heading);
  font-size: .67rem;
  color: var(--gray-dark);
  background: var(--accent-soft);
  border: 1px solid var(--gray-light);
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  letter-spacing: .04em;
  font-weight: 600;
}
.chip:hover {
  border-color: var(--primary-mid);
  color: var(--primary);
}
.chip.sel {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ─── FILE UPLOAD ─── */
.file-zone {
  border: 1.5px dashed var(--gray-light);
  border-radius: 10px;
  padding: 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  background: var(--accent-soft);
}
.file-zone:hover {
  border-color: var(--primary-mid);
  background: var(--accent-light);
}
.file-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.ficon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: .45rem;
}
.ftext {
  font-family: var(--heading);
  font-size: .67rem;
  color: var(--gray-dark);
  line-height: 1.7;
  font-weight: 600;
}
.ftext strong {
  color: var(--primary);
}
.fchosen {
  font-family: var(--heading);
  font-size: .67rem;
  color: var(--primary);
  margin-top: .55rem;
  display: none;
  font-weight: 700;
}

/* ─── ERROR ─── */
.ferr {
  background: var(--error-bg);
  border: 1px solid rgba(179,0,0,.18);
  border-left: 3px solid var(--error);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  overflow: hidden;
}
.ferr-inner {
  padding: 11px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ferr-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.5;
}
.ferr-content {
  flex: 1;
}
.ferr-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: .72rem;
  color: var(--error);
  display: block;
  margin-bottom: .22rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ferr-msg {
  font-size: .8rem;
  color: var(--error);
  font-family: var(--body);
  line-height: 1.55;
  opacity: .85;
}
.ferr-foot {
  border-top: 1px solid rgba(179,0,0,.12);
  padding: 7px 14px;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.ferr-retry {
  font-family: var(--heading);
  font-size: .68rem;
  font-weight: 700;
  color: var(--error);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: .04em;
  text-decoration: underline;
}
.ferr-retry:hover {
  opacity: .75;
}
.ferr-mail {
  font-family: var(--heading);
  font-size: .65rem;
  color: var(--error);
  opacity: .6;
  letter-spacing: .03em;
  text-decoration: none;
}
.ferr-mail:hover {
  opacity: 1;
}
.f-err {
  border-color: var(--error) !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(179,0,0,.07) !important;
}
.f-err-wrap .flabel {
  color: var(--error) !important;
}

/* ─── SUBMIT ─── */
.btn-submit {
  background: var(--primary);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  width: 100%;
  letter-spacing: .05em;
  transition: all .2s;
}
.btn-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(100,0,78,.25);
}
.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-submit.loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── SUCCESS ─── */
.success {
  padding: 2.2rem 1.5rem;
}
.s-terminal {
  background: #0d0d0d;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  font-family: var(--heading);
  font-size: .72rem;
}
.s-term-bar {
  background: #1e1e1e;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.s-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.s-dot.r {
  background: #ff5f56;
}
.s-dot.y {
  background: #ffbd2e;
}
.s-dot.g {
  background: #27c93f;
}
.s-term-title {
  font-size: .6rem;
  color: #666;
  margin-left: auto;
  letter-spacing: .08em;
}
.s-term-body {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.s-line {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.s-key {
  color: #666;
  min-width: 90px;
  flex-shrink: 0;
  letter-spacing: .06em;
}
.s-val {
  color: #e4e4e4;
  word-break: break-all;
}
.s-val.green {
  color: #27c93f;
}
.s-val.accent {
  color: var(--accent);
}
.s-sep {
  border: none;
  border-top: 1px solid #222;
  margin: .2rem 0;
}
.s-header-line {
  color: #27c93f;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.s-header-line::before {
  content: '>';
  color: #555;
}
.success-title {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: .35rem;
}
.success-sub {
  font-size: .85rem;
  color: var(--gray-dark);
  line-height: 1.75;
  font-family: var(--body);
}
.success-sub strong {
  color: var(--black);
}
.success-note {
  font-family: var(--heading);
  font-size: .65rem;
  color: var(--gray);
  letter-spacing: .07em;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.success-note::before {
  content: '↳';
}
.btn-done {
  background: var(--accent-soft);
  color: var(--gray-dark);
  font-family: var(--heading);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 28px;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
  cursor: pointer;
  margin-top: 1.6rem;
  transition: all .2s;
}
.btn-done:hover {
  background: var(--accent-light);
  border-color: var(--primary-mid);
  color: var(--primary);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  position: relative;
  background: linear-gradient(160deg, #4a0040 0%, #3f0030 45%, #2a0021 100%);
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}
footer::before {
  content: '';
  position: absolute;
  top: -260px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,250,.20), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
footer::after {
  content: '';
  position: absolute;
  bottom: -240px;
  left: -200px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,0,100,.30), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.footer-top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,140,250,.55) 50%, transparent);
}
.footer-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.footer-cta-text h3 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: 10px;
}
.footer-cta-text p {
  font-family: 'IBM Plex Serif', serif;
  font-size: .95rem;
  color: rgba(255,255,255,.68);
  max-width: 480px;
  line-height: 1.6;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: #ff8cfa;
  color: #3f0030;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  padding: 17px 30px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(255,140,250,.22);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.footer-cta-btn svg {
  transition: transform .25s ease;
}
.footer-cta-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255,140,250,.32);
}
.footer-cta-btn:hover svg {
  transform: translate(3px,-3px);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-col > p {
  opacity: .68;
  font-family: 'IBM Plex Serif', serif;
  font-size: .9rem;
  line-height: 1.78;
  color: #ffffff;
  max-width: 260px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.footer-socials a:hover {
  background: #ff8cfa;
  border-color: #ff8cfa;
  color: #3f0030;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255,140,250,.35);
}
.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 14px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff8cfa, rgba(255,140,250,0));
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.66);
  font-family: 'IBM Plex Serif', serif;
  font-size: .92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color .2s ease, gap .2s ease, padding-left .2s ease;
}
.footer-col ul li a::before {
  content: '→';
  display: inline-block;
  opacity: 0;
  width: 0;
  overflow: hidden;
  color: #ff8cfa;
  transition: opacity .2s ease, width .2s ease, margin-right .2s ease;
}
.footer-col ul li a:hover {
  color: #ffffff;
}
.footer-col ul li a:hover::before {
  opacity: 1;
  width: 14px;
  margin-right: 4px;
}
.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.footer-bottom-inner p {
  font-family: 'Sora', sans-serif;
  font-size: .78rem;
  color: rgba(255,255,255,.42);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-family: 'Sora', sans-serif;
  font-size: .78rem;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-bottom-links a:hover {
  color: #ffffff;
}

@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-cta {
    padding: 52px 0;
  }
}
@media(max-width:640px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 0;
  }
  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 36px;
  }
  .footer-col > p {
    max-width: 100%;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .frow {
    grid-template-columns: 1fr;
  }
  .hero-content .stats {
    gap: 1.5rem;
  }
  .filter-row, .cards-wrap, .divider {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .mbody {
    padding: 1.3rem 1.3rem;
  }
  .mhead {
    padding: 1.3rem 1.3rem 1rem;
  }
}