html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #0f172a;
  font-family: Inter, Poppins, Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html.dark body {
  background: #06111f;
  color: #e5edf7;
}

[x-cloak] {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(10, 35, 66, .9);
  backdrop-filter: blur(18px);
}

html.dark .site-header {
  border-bottom-color: rgba(212, 160, 23, .2);
  background: rgba(3, 10, 22, .92);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.header-actions a,
.header-actions button {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions button {
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  border-radius: 999px;
  padding: 9px 12px;
}

.portal-pill {
  border-radius: 999px;
  background: #fff;
  color: #0a2342 !important;
  padding: 10px 18px;
}

.network-grid {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 116px 20px 56px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 160, 23, .38), transparent 27%),
    radial-gradient(circle at 85% 16%, rgba(31, 122, 77, .34), transparent 28%),
    linear-gradient(135deg, #0a2342 0%, #12345a 45%, #061827 100%);
}

html.dark .network-grid {
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 160, 23, .22), transparent 27%),
    radial-gradient(circle at 85% 16%, rgba(31, 122, 77, .2), transparent 28%),
    linear-gradient(135deg, #020817 0%, #06111f 48%, #020617 100%);
}

.hero-grid,
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-grid {
  min-height: calc(100vh - 172px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.eyebrow {
  color: #d4a017;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 820px;
  margin: 20px 0 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.cta-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.btn-primary {
  background: #d4a017;
  color: #0a2342;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.stats-grid,
.services-grid,
.industry-grid,
.jobs-grid,
.process-grid,
.metric-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin-top: 44px;
}

.glass {
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 24px 80px rgba(10, 35, 66, .18);
  backdrop-filter: blur(18px);
}

.stat-card {
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  color: #d4a017;
  font-size: 28px;
  font-weight: 900;
}

.stat-label {
  margin-top: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
}

.globe {
  position: absolute;
  right: max(-120px, -7vw);
  top: 120px;
  width: clamp(280px, 42vw, 560px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .95), rgba(212, 160, 23, .45) 16%, transparent 17%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, .25) 0 1px, transparent 2px 18px),
    repeating-linear-gradient(75deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 30px),
    radial-gradient(circle, rgba(31, 122, 77, .75), rgba(10, 35, 66, .45) 56%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.mobility-panel {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  padding: 22px;
}

.mobility-panel-inner {
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  padding: 22px;
}

.desk-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  padding: 16px;
  font-weight: 800;
}

.badge {
  align-self: flex-start;
  border-radius: 999px;
  background: #1f7a4d;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
}

.section {
  padding: clamp(64px, 8vw, 112px) 20px;
}

html.dark .section {
  background: #06111f;
}

.section-white {
  background: #fff;
}

.section-soft {
  background:
    linear-gradient(180deg, #fff 0%, #f5f7fa 100%);
}

html.dark .section-white,
html.dark .section-soft {
  background:
    radial-gradient(circle at 85% 10%, rgba(31, 122, 77, .08), transparent 32%),
    #081525;
}

.section-navy {
  background: #0a2342;
  color: #fff;
}

html.dark .section-navy {
  background: #020817;
}

.section-title {
  max-width: 820px;
  margin: 14px 0 0;
  color: #0a2342;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

html.dark .section-title {
  color: #f8fafc;
}

.section-navy .section-title {
  color: #fff;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.values-grid,
.stories-grid,
.partners-grid,
.section-card-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partners-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-logo {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: #0a2342;
  font-weight: 900;
  text-align: center;
  padding: 16px;
}

html.dark .partner-logo {
  border-color: rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .82);
  color: #f8fafc;
}

.card {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 22px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 44px rgba(15, 23, 42, .06);
}

html.dark .card {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .24);
}

.service-icon,
.industry-dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #0a2342;
  color: #d4a017;
  font-weight: 900;
}

.card h3 {
  margin: 18px 0 0;
  color: #0a2342;
}

.card p {
  color: #475569;
  line-height: 1.65;
}

html.dark .card h3 {
  color: #f8fafc;
}

html.dark .card p,
html.dark .contact-grid p,
html.dark .legal-card p {
  color: #cbd5e1;
}

.split-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-tile {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  font-weight: 900;
}

html.dark .industry-tile {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .64);
}

.industry-dot {
  width: 28px;
  height: 28px;
  background: #1f7a4d;
  color: #fff;
  font-size: 12px;
}

.jobs-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.jobs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.job-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .1);
  padding: 24px;
}

.job-card h3 {
  margin: 12px 0;
  color: #fff;
}

.job-card button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a2342;
  padding: 13px 18px;
  font-weight: 900;
}

.process-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 32px;
}

.contact-grid,
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
}

html.dark .input {
  border-color: rgba(148, 163, 184, .26);
  background: rgba(2, 6, 23, .72);
  color: #f8fafc;
}

html.dark .input::placeholder {
  color: #94a3b8;
}

.contact-form {
  border-radius: 30px;
  padding: 26px;
  background: rgba(255, 255, 255, .82);
}

html.dark .contact-form {
  background: rgba(15, 23, 42, .82);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.site-footer {
  background: #0a2342;
  color: #fff;
  padding: 48px 20px;
}

html.dark .site-footer {
  background: #020817;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(10, 35, 66, .82);
  padding: 18px;
}

.modal-panel {
  width: min(520px, 100%);
  border-radius: 28px;
  background: #fff;
  color: #0a2342;
  padding: 28px;
}

html.dark .modal-panel {
  background: #0f172a;
  color: #f8fafc;
}

.auth-page {
  min-height: 100vh;
  padding: 112px 18px 48px;
  background:
    radial-gradient(circle at 15% 12%, rgba(212, 160, 23, .18), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(31, 122, 77, .14), transparent 28%),
    #f5f7fa;
}

html.dark .auth-page,
html.dark .dashboard-page,
html.dark .legal-page {
  background:
    radial-gradient(circle at 15% 12%, rgba(212, 160, 23, .1), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(31, 122, 77, .1), transparent 28%),
    #06111f;
}

.auth-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.auth-panel,
.auth-card,
.dashboard-panel,
.legal-card {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 80px rgba(10, 35, 66, .12);
}

html.dark .auth-card,
html.dark .dashboard-panel,
html.dark .legal-card {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

html.dark .auth-panel {
  border-color: rgba(212, 160, 23, .18);
  background:
    linear-gradient(135deg, rgba(2, 8, 23, .96), rgba(12, 55, 42, .88)),
    #020817;
}

.auth-panel {
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 35, 66, .96), rgba(31, 122, 77, .86)),
    #0a2342;
}

.auth-card {
  padding: clamp(22px, 4vw, 42px);
}

.auth-title,
.dashboard-title,
.legal-card h1 {
  margin: 12px 0 0;
  color: #0a2342;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}

html.dark .auth-title,
html.dark .dashboard-title,
html.dark .legal-card h1 {
  color: #f8fafc;
}

.auth-panel .auth-title {
  color: #fff;
}

.auth-form,
.stack {
  display: grid;
  gap: 14px;
}

.auth-form {
  margin-top: 26px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.social-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.outline-btn {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  color: #0a2342;
  padding: 13px 18px;
  font: inherit;
  font-weight: 900;
}

.form-alert {
  margin-top: 18px;
  border: 1px solid rgba(220, 38, 38, .2);
  border-radius: 16px;
  background: rgba(254, 226, 226, .9);
  color: #991b1b;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: #d4a017;
}

html.dark .form-alert {
  border-color: rgba(248, 113, 113, .24);
  background: rgba(69, 10, 10, .72);
  color: #fecaca;
}

html.dark .check-row {
  color: #cbd5e1;
}

html.dark .outline-btn {
  border-color: rgba(148, 163, 184, .24);
  background: rgba(2, 6, 23, .62);
  color: #f8fafc;
}

.full-span {
  grid-column: 1 / -1;
}

.dashboard-page,
.legal-page {
  min-height: 100vh;
  padding: 112px 18px 56px;
  background: #f5f7fa;
}

.dashboard-shell,
.legal-card {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dashboard-panel {
  padding: clamp(22px, 4vw, 38px);
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 30px;
  background: radial-gradient(circle at 88% 18%, rgba(212, 160, 23, .16), transparent 28%), rgba(255, 255, 255, .9);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 24px 80px rgba(10, 35, 66, .12);
}

.dashboard-copy {
  max-width: 720px;
  margin: 14px 0 0;
  color: #475569;
  line-height: 1.7;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 260px;
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.dashboard-tabs a {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #0a2342;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-tabs a.active {
  border-color: #d4a017;
  background: #d4a017;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.metric-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  margin-top: 18px;
}

.metric-card,
.dash-card,
.search-panel {
  border: 1px solid rgba(148, 163, 184, .25);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 54px rgba(10, 35, 66, .08);
}

.metric-card {
  border-radius: 22px;
  padding: 22px;
}

.metric-card span {
  display: block;
  color: #0a2342;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  margin-top: 22px;
  border-radius: 24px;
  padding: 16px;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .65fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.dashboard-main-grid.admin-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
}

.dash-card {
  border-radius: 24px;
  padding: 22px;
  min-width: 0;
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-card h2 {
  margin: 6px 0 0;
  color: #0a2342;
  font-size: 22px;
}

.dash-card-head a {
  color: #1f7a4d;
  font-weight: 900;
  text-decoration: none;
}

.job-listing {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e2e8f0;
  padding: 18px 0;
}

.job-listing:first-of-type {
  border-top: 0;
}

.job-listing h3 {
  margin: 0;
  color: #0a2342;
  font-size: 19px;
}

.job-listing p {
  margin: 7px 0;
  color: #64748b;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef6f1;
  color: #166534;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.job-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: center;
  min-width: 120px;
}

.job-actions strong {
  color: #d4a017;
}

.job-actions button,
.job-actions a {
  border: 0;
  border-radius: 999px;
  background: #0a2342;
  color: #fff;
  padding: 11px 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.check-item,
.activity-item {
  border-top: 1px solid #e2e8f0;
  padding: 14px 0;
  color: #475569;
  font-weight: 800;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-item span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  flex: 0 0 auto;
}

.check-item.done span {
  border-color: #1f7a4d;
  background: #1f7a4d;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.activity-item span {
  color: #d4a017;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 12px;
  text-align: left;
  white-space: nowrap;
}

.data-table td::before {
  display: none;
}

.data-table th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kanban-col {
  min-height: 116px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
}

.kanban-col strong,
.kanban-col span {
  display: block;
}

.kanban-col strong {
  color: #0a2342;
}

.kanban-col span {
  margin-top: 8px;
  color: #64748b;
  font-weight: 800;
}

html.dark .dashboard-hero,
html.dark .metric-card,
html.dark .dash-card,
html.dark .search-panel {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

html.dark .dashboard-tabs a {
  border-color: rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .82);
  color: #f8fafc;
}

html.dark .dashboard-tabs a.active {
  background: #d4a017;
  color: #0a2342;
}

html.dark .dashboard-copy,
html.dark .metric-card strong,
html.dark .job-listing p,
html.dark .check-item,
html.dark .activity-item,
html.dark .data-table th,
html.dark .kanban-col span {
  color: #cbd5e1;
}

html.dark .metric-card span,
html.dark .dash-card h2,
html.dark .job-listing h3,
html.dark .kanban-col strong {
  color: #f8fafc;
}

html.dark .job-listing,
html.dark .check-item,
html.dark .activity-item,
html.dark .data-table th,
html.dark .data-table td {
  border-color: rgba(148, 163, 184, .18);
}

html.dark .tag-row span,
html.dark .status-pill {
  background: rgba(31, 122, 77, .16);
  color: #86efac;
}

html.dark .job-actions button,
html.dark .job-actions a {
  background: #d4a017;
  color: #0a2342;
}

html.dark .kanban-col {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .38);
}

.legal-card {
  max-width: 820px;
  padding: clamp(24px, 5vw, 48px);
}

.legal-card p {
  color: #475569;
  line-height: 1.75;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .about-grid,
  .contact-grid,
  .footer-inner,
  .auth-shell,
  .dashboard-grid,
  .dashboard-main-grid,
  .dashboard-main-grid.admin-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    flex-direction: column;
  }

  .dashboard-actions {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }

  .dashboard-actions .btn-primary,
  .dashboard-actions .outline-btn {
    flex: 1 1 180px;
  }

  .services-grid,
  .jobs-grid,
  .section-card-grid,
  .values-grid,
  .stories-grid,
  .metric-grid,
  .metric-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-grid,
  .process-grid,
  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobility-panel {
    margin-bottom: 40px;
  }

  .auth-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-nav {
    min-height: 64px;
    width: min(100% - 24px, 1180px);
    gap: 10px;
  }

  .brand-mark span {
    max-width: 142px;
    font-size: 11px;
    line-height: 1.2;
  }

  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions button {
    padding: 8px 10px;
    font-size: 11px;
  }

  .portal-pill {
    display: none;
  }

  .network-grid {
    padding-top: 96px;
  }

  .hero-title {
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero-lede {
    font-size: 15px;
    line-height: 1.65;
  }

  .globe {
    opacity: .42;
    right: -150px;
    top: 90px;
  }

  .stats-grid,
  .services-grid,
  .section-card-grid,
  .industry-grid,
  .jobs-grid,
  .process-grid,
  .field-grid,
  .values-grid,
  .stories-grid,
  .partners-grid,
  .metric-grid,
  .metric-grid.six,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-page,
  .dashboard-page,
  .legal-page {
    padding-top: 92px;
    padding-inline: 12px;
  }

  .auth-panel,
  .auth-card,
  .dashboard-panel,
  .legal-card,
  .card,
  .dashboard-hero,
  .dash-card,
  .metric-card,
  .search-panel {
    border-radius: 20px;
    padding: 20px;
  }

  .btn-primary,
  .btn-secondary,
  .outline-btn,
  .dash-card > a.btn-primary,
  .modal-panel .btn-primary,
  .modal-panel .outline-btn {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }

  .dashboard-actions {
    align-items: stretch;
  }

  .dashboard-actions .btn-primary,
  .dashboard-actions .outline-btn {
    flex-basis: 100%;
  }

  .auth-title,
  .dashboard-title,
  .legal-card h1,
  .section-title {
    overflow-wrap: anywhere;
  }

  .modal-panel {
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .job-listing {
    flex-direction: column;
  }

  .job-actions {
    justify-items: stretch;
    min-width: 0;
  }

  .job-actions button,
  .job-actions a {
    width: 100%;
  }

  .kanban-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    margin-bottom: 12px;
    padding: 10px 12px;
  }

  .data-table td {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    border-bottom: 1px solid #edf2f7;
    padding: 10px 0;
    white-space: normal;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    display: block;
    content: attr(data-label);
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html.dark .data-table tr {
    border-color: rgba(148, 163, 184, .18);
    background: rgba(2, 6, 23, .34);
  }

  html.dark .data-table td::before {
    color: #94a3b8;
  }

  .stat-card {
    text-align: left;
  }

  .jobs-head {
    align-items: start;
    flex-direction: column;
  }

  .desk-item {
    flex-direction: column;
  }
}
