﻿@font-face {
  font-family: "Vazirmatn";
  src: url("./fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font-body: "Vazirmatn", Tahoma, Arial, sans-serif;
  --font-heading: "Vazirmatn", Tahoma, Arial, sans-serif;
  --ink: #172033;
  --muted: #657084;
  --line: #dfe6ee;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --brand: #2563eb;
  --brand-dark: #4f46e5;
  --accent: #06b6d4;
  --danger: #be123c;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--soft);
  color: var(--ink);
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 230, 238, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: white;
  font-weight: 900;
  border: 1px solid rgba(5, 41, 74, 0.14);
  box-shadow: 0 10px 28px rgba(5, 41, 74, 0.12);
  overflow: hidden;
  padding: 5px;
}

.brand-mark img,
.portrait-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #39445a;
  font-size: 14px;
}

.nav a,
.admin-link,
.section-action {
  transition: color 0.2s ease;
}

.nav a:hover,
.admin-link:hover,
.section-action:hover {
  color: var(--brand);
}

.admin-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.login-entry {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: end;
  gap: 28px;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(11, 20, 34, 0.84), rgba(11, 20, 34, 0.34)),
    url("../hero-reference.jpg") center / cover no-repeat;
  color: white;
}

.hero-copy {
  max-width: 760px;
  padding-bottom: 28px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #fbbf24;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong,
.btn,
.admin-link,
.section-kicker,
.eyebrow {
  font-family: var(--font-heading);
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
}

.lead {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
}

.hero p:not(.lead) {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 2;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
  color: #cfe3ff;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.social-links a:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.btn.light {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.loading-screen {
  display: grid;
  min-height: 60vh;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.metric strong {
  font-size: 34px;
}

.section {
  padding: 72px clamp(18px, 4vw, 58px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.focus-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.focus-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 7px 12px;
  font-weight: 800;
}

.focus-tabs button.active {
  background: var(--brand);
  color: white;
}

.section h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 42px);
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  gap: 38px;
  background: white;
}

.resume-grid p,
.request-band p {
  color: var(--muted);
  line-height: 2;
}

.contact-strip,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-strip span,
.skill-cloud span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card,
.admin-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.content-card {
  min-height: 230px;
  padding: 22px;
}

.card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 22%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.88));
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.48));
  pointer-events: none;
}

.card-media.placeholder {
  display: grid;
  place-items: center;
}

.card-media.placeholder span {
  position: relative;
  z-index: 1;
  color: #dbeafe;
  font-family: var(--font-heading);
  font-size: 22px;
}

.card-media.placeholder.projects {
  background:
    radial-gradient(circle at 28% 22%, rgba(45, 212, 191, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(15, 23, 42, 0.9));
}

.card-media.placeholder.articles {
  background:
    radial-gradient(circle at 28% 22%, rgba(96, 165, 250, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.9));
}

.card-media.placeholder.videos {
  background:
    radial-gradient(circle at 28% 22%, rgba(124, 58, 237, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(109, 93, 252, 0.24), rgba(15, 23, 42, 0.9));
}

.card-media.placeholder.posts {
  background:
    radial-gradient(circle at 28% 22%, rgba(34, 211, 238, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.9));
}

.content-card span,
.content-card small {
  color: var(--muted);
  font-size: 13px;
}

.content-card h3 {
  margin: 14px 0 10px;
  font-size: 21px;
}

.content-card p {
  color: var(--muted);
  line-height: 1.9;
}

.content-card a {
  color: var(--brand-dark);
  font-weight: 800;
}

.video-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  font-size: 18px;
}

.project-card {
  border-top: 4px solid var(--brand);
}

.lab-mode {
  background: #f8fafc;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mode-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mode-grid strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 24px;
}

.mode-grid p {
  color: var(--muted);
  line-height: 1.9;
}

.collaborators-band {
  background: white;
}

.network-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 82% 28%, rgba(124, 58, 237, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(6, 12, 28, 0.96), rgba(7, 16, 33, 0.9));
}

.network-head p {
  max-width: 650px;
  margin: 10px 0 0;
  color: #9fb0cf;
  line-height: 1.9;
}

.network-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    rgba(2, 6, 23, 0.42);
  background-size: 38px 38px;
  box-shadow: inset 0 0 80px rgba(37, 99, 235, 0.12), 0 26px 80px rgba(0, 0, 0, 0.28);
}

.network-canvas {
  display: block;
  width: 100%;
  min-height: 560px;
  touch-action: none;
  user-select: none;
}

.network-glass {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px 12px;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(6, 12, 28, 0.7);
  color: #dbeafe;
  backdrop-filter: blur(16px);
}

.network-glass strong {
  color: #60a5fa;
  font-size: 24px;
  line-height: 1;
}

.network-glass span {
  color: #9fb0cf;
  font-size: 13px;
}

.network-tooltip {
  position: absolute;
  top: 0;
  right: auto;
  z-index: 3;
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 10px;
  background: rgba(8, 15, 31, 0.88);
  color: #e5edf9;
  opacity: 0;
  pointer-events: none;
  transform: translate(-999px, -999px);
  transition: opacity 0.16s ease;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.network-tooltip.show {
  opacity: 1;
}

.network-tooltip strong,
.network-tooltip span,
.network-tooltip small {
  display: block;
}

.network-tooltip span {
  margin-top: 5px;
  color: #93c5fd;
  direction: ltr;
  text-align: right;
}

.network-tooltip small {
  margin-top: 4px;
  color: #a7b4cf;
}

.network-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.collaborator-card {
  border-right: 4px solid var(--accent);
}

.collaborator-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--node-color);
  border-radius: 50%;
  background: var(--node-color);
  color: #06101f;
  box-shadow: 0 0 24px color-mix(in srgb, var(--node-color), transparent 48%);
  font-weight: 900;
}

.collaborator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collaborator-card small {
  display: block;
  margin: 8px 0 14px;
  color: #8fa3c4;
  direction: ltr;
  text-align: right;
}

.site-edit-row {
  grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(130px, 1fr));
  align-items: end;
}

.site-edit-row input,
.site-edit-row textarea {
  min-width: 0;
  padding: 9px 10px;
  font-size: 13px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.inline-check input {
  width: auto;
}

.detail-page {
  min-height: calc(100vh - 70px);
  background:
    radial-gradient(circle at 14% 10%, rgba(45, 212, 191, 0.16), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(96, 165, 250, 0.2), transparent 32%),
    linear-gradient(145deg, #030712 0%, #071426 48%, #06111d 100%);
  color: #edf5ff;
}

.detail-empty {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 7vw, 96px);
}

.detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: clamp(34px, 7vw, 90px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(8, 13, 28, 0.92), rgba(8, 18, 36, 0.72)),
    radial-gradient(circle at 68% 35%, rgba(56, 189, 248, 0.18), transparent 36%);
  background-size: cover;
  background-position: center;
}

.detail-hero.has-cover .detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.58), rgba(3, 7, 18, 0.86)),
    radial-gradient(circle at 24% 18%, rgba(45, 212, 191, 0.18), transparent 32%);
}

.detail-hero-content {
  max-width: 900px;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 9px 14px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.42);
}

.detail-meta,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.detail-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  color: #b9c8e5;
  background: rgba(15, 23, 42, 0.42);
  font-size: 13px;
}

.detail-hero h1 {
  max-width: 860px;
  margin: 24px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.22;
}

.detail-hero p {
  max-width: 760px;
  color: #aebddb;
  font-size: 21px;
  line-height: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.detail-body {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.detail-body h2,
.detail-body h3 {
  margin: 34px 0 12px;
  color: #e0f2fe;
}

.detail-body h2:first-child,
.detail-body h3:first-child {
  margin-top: 0;
}

.detail-body p,
.detail-body li,
.detail-body blockquote {
  color: #b8c7df;
  font-size: 19px;
  line-height: 2.15;
}

.detail-body ul {
  padding-right: 24px;
}

.detail-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-right: 4px solid #2dd4bf;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.08);
}

.detail-body a {
  color: #67e8f9;
  border-bottom: 1px solid rgba(103, 232, 249, 0.45);
  font-weight: 900;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
}

.detail-aside {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.detail-aside div {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
}

.detail-aside span,
.editor-hint {
  display: block;
  color: #8ea1c0;
  font-size: 13px;
}

.detail-aside strong {
  display: block;
  margin-top: 7px;
  color: #e5edf9;
}

.rich-editor-wrap {
  gap: 10px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
}

.rich-toolbar button {
  min-height: 34px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.14);
  color: #bfdbfe;
  cursor: pointer;
  padding: 6px 10px;
  font-weight: 900;
}

.rich-editor {
  min-height: 320px;
  resize: vertical;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .detail-hero {
    min-height: 500px;
    padding: 26px 18px;
  }

  .detail-hero p {
    font-size: 18px;
  }

  .detail-gallery,
  .detail-aside {
    grid-template-columns: 1fr;
  }
}

.focus-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.focus-badge.industry {
  background: #ecfeff;
  color: #0e7490;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.request-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 36px;
  background: #ecfdf5;
}

.request-form,
.editor-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  flex: 1;
  gap: 7px;
  color: #39445a;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-note {
  min-height: 22px;
  color: var(--brand-dark);
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 71px);
  background: #f1f5f9;
}

.login-page {
  display: grid;
  min-height: calc(100vh - 71px);
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(241, 245, 249, 0.96), rgba(236, 253, 245, 0.92)),
    url("../hero-reference.jpg") center / cover no-repeat;
}

.login-card {
  width: min(460px, 100%);
}

.login-card p {
  color: var(--muted);
  line-height: 1.8;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.login-role-grid div {
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
}

.login-role-grid strong,
.login-role-grid span {
  display: block;
}

.login-role-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.admin-sidebar {
  position: sticky;
  top: 71px;
  height: calc(100vh - 71px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #111827;
  color: white;
}

.admin-brand {
  margin-bottom: 18px;
}

.admin-sidebar button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  text-align: right;
  padding: 10px 12px;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-main {
  padding: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-top .btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.admin-actions,
.editor-head,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.account-state {
  color: #94a3b8;
}

.account-state.ok {
  color: #5eead4;
}

.account-state.warning {
  color: #fbbf24;
}

.editor-head {
  justify-content: space-between;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.admin-card {
  padding: 20px;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
}

.metrics-editor-grid {
  display: grid;
  gap: 14px;
}

.metric-editor-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(220px, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-list-item button,
.request-delete {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eef6ff;
  color: #2563eb;
  cursor: pointer;
  font-size: 20px;
}

.admin-list-item button.danger,
.request-delete {
  background: #fff1f2;
  color: var(--danger);
}

.request-table {
  display: grid;
  gap: 12px;
}

.request-row {
  display: grid;
  grid-template-columns: 140px 130px 110px 120px 120px minmax(180px, 1fr) 150px 42px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty {
  color: var(--muted);
}

.empty-card {
  min-height: 120px;
}

.mini-link {
  min-width: max-content;
  color: var(--brand-dark);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--brand-dark);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-type="error"] {
  background: var(--danger);
}

@media (max-width: 1060px) {
  .nav {
    display: none;
  }

  .hero,
  .resume-grid,
  .request-band,
  .admin-layout,
  .admin-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .card-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .request-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 10px;
  }

  .admin-link {
    padding: 9px 10px;
  }

  .hero-panel,
  .section-action {
    display: none;
  }

  .card-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 48px;
  }
}

/* Premium technology lab theme */
:root {
  color-scheme: dark;
  --ink: #f6f8ff;
  --muted: #94a3b8;
  --line: rgba(125, 145, 190, 0.18);
  --surface: rgba(13, 24, 45, 0.72);
  --soft: #050b16;
  --brand: #5b5cff;
  --brand-dark: #8b5cf6;
  --accent: #22d3ee;
  --danger: #fb7185;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 74% 18%, rgba(82, 68, 255, 0.34), transparent 28%),
    radial-gradient(circle at 20% 26%, rgba(34, 211, 238, 0.12), transparent 24%),
    linear-gradient(180deg, #050914 0%, #07101e 50%, #050914 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.topbar {
  background: rgba(5, 11, 22, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.brand-mark {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 0 28px rgba(91, 92, 255, 0.46);
}

.brand small,
.nav {
  color: #a6b1c9;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a:first-child {
  background: rgba(59, 130, 246, 0.13);
  color: #dbeafe;
}

.admin-link {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  box-shadow: 0 12px 32px rgba(91, 92, 255, 0.34);
}

.login-entry {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.24);
}

.hero {
  min-height: calc(100vh - 70px);
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
  align-items: center;
  background:
    radial-gradient(circle at 68% 42%, rgba(69, 68, 255, 0.52), transparent 25%),
    radial-gradient(circle at 78% 48%, rgba(34, 211, 238, 0.18), transparent 19%);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  background: rgba(12, 26, 53, 0.66);
  color: #b6d5ff;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.34;
  letter-spacing: 0;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
}

.hero h1 strong {
  color: #6d5dfc;
}

.lead {
  color: #dbeafe;
}

.hero p:not(.lead) {
  color: #a7b4cf;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #6d5dfc 55%, #8b5cf6);
  box-shadow: 0 18px 38px rgba(91, 92, 255, 0.34);
}

.btn.ghost {
  border-color: rgba(99, 102, 241, 0.38);
  background: rgba(8, 18, 38, 0.68);
  color: #dbeafe;
}

.hero-visual {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-orbit {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 55%),
    repeating-radial-gradient(circle, rgba(99, 102, 241, 0.16) 0 1px, transparent 1px 58px);
}

.portrait-card {
  position: relative;
  z-index: 3;
  width: 300px;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.9)),
    url("../hero-reference.jpg") center / cover no-repeat;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

.portrait-mark,
.portrait-card strong,
.portrait-card small {
  position: relative;
  z-index: 2;
}

.portrait-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ffffff;
  color: white;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
  padding: 5px;
}

.portrait-card strong {
  font-size: 22px;
}

.portrait-card small {
  color: #a7b4cf;
}

.floating-panel {
  position: absolute;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(14, 24, 47, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.panel-chart {
  left: -18px;
  top: 154px;
  display: flex;
  align-items: end;
  gap: 10px;
}

.panel-chart b {
  width: 14px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(#8b5cf6, #2563eb);
}

.panel-chart b:nth-child(1) { height: 36px; }
.panel-chart b:nth-child(2) { height: 58px; }
.panel-chart b:nth-child(3) { height: 44px; }
.panel-chart b:nth-child(4) { height: 76px; }

.panel-code {
  right: -30px;
  bottom: 88px;
  width: 170px;
  color: #60a5fa;
  font-weight: 900;
}

.panel-code span {
  display: block;
  height: 7px;
  margin-top: 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, transparent);
}

.panel-domains {
  right: -34px;
  top: 22px;
  width: 185px;
}

.panel-domains strong,
.panel-domains span {
  display: block;
}

.panel-domains strong {
  margin-bottom: 10px;
}

.panel-domains span {
  color: #b8c3dc;
  font-size: 14px;
  line-height: 2;
}

.service-section,
.lab-mode,
.collaborators-band,
.testimonials {
  background: transparent;
}

.service-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.content-card,
.mode-grid article,
.admin-card,
.stat-card,
.request-form,
.why-card,
.lab-visual {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(21, 34, 62, 0.82), rgba(9, 18, 35, 0.72));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.service-card {
  min-height: 220px;
  padding: 28px;
  border-radius: 10px;
}

.service-card span {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.service-card.teal span { background: rgba(20, 184, 166, 0.13); color: #2dd4bf; }
.service-card.violet span { background: rgba(124, 58, 237, 0.16); color: #8b5cf6; }
.service-card.blue span { background: rgba(37, 99, 235, 0.16); color: #60a5fa; }

.service-card p,
.content-card p,
.mode-grid p,
.why-item p,
.request-band p,
.testimonial-grid p {
  color: #a7b4cf;
}

.service-card a,
.content-card a,
.section-action {
  color: #60a5fa;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding-block: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(12, 24, 46, 0.72);
  width: min(1110px, calc(100% - 36px));
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}

.stat-tile {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
}

.stat-tile:last-child {
  border-left: 0;
}

.stat-tile strong {
  display: block;
  color: #6d5dfc;
  font-size: 34px;
  line-height: 1;
}

.stat-tile span {
  color: #9aa8c0;
  font-size: 14px;
}

.about-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.talent-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.talent-copy,
.talent-steps {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 14%, rgba(45, 212, 191, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(21, 34, 62, 0.78), rgba(9, 18, 35, 0.72));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.talent-copy {
  padding: clamp(26px, 4vw, 42px);
}

.talent-copy h2 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
}

.talent-copy p {
  color: #a7b4cf;
  line-height: 2.05;
}

.talent-steps {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.talent-steps div {
  padding: 26px;
  background: rgba(15, 23, 42, 0.36);
}

.talent-steps span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #22d3ee;
  font-weight: 900;
  direction: ltr;
}

.talent-steps strong {
  display: block;
  margin-bottom: 8px;
  color: #eef5ff;
  font-size: 21px;
}

.talent-steps p {
  margin: 0;
  color: #98a8c4;
  line-height: 1.9;
}

.lab-visual,
.why-card {
  border-radius: 10px;
  padding: 34px;
}

.cube-scene {
  min-height: 300px;
  position: relative;
  display: grid;
  place-items: center;
}

.cube-scene::before {
  content: "";
  width: 150px;
  height: 150px;
  transform: rotate(45deg);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(91, 92, 255, 0.55), rgba(34, 211, 238, 0.05));
  box-shadow: 0 0 80px rgba(91, 92, 255, 0.4);
}

.cube-scene span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bfdbfe;
  box-shadow: 0 0 24px #60a5fa;
}

.cube-scene span:nth-child(1) { top: 82px; right: 30%; }
.cube-scene span:nth-child(2) { bottom: 76px; left: 28%; }
.cube-scene span:nth-child(3) { bottom: 118px; right: 22%; }

.why-item {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.why-item > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.14);
  color: #60a5fa;
}

.focus-tabs {
  background: rgba(12, 24, 46, 0.72);
  border-color: rgba(148, 163, 184, 0.14);
}

.focus-tabs button.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.content-card {
  border-radius: 10px;
}

.project-card {
  border-top-color: #6d5dfc;
}

.focus-badge {
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
}

.focus-badge.industry {
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
}

.collaborator-card {
  border-right-color: #22d3ee;
}

.testimonial-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  background: rgba(13, 24, 45, 0.74);
}

.testimonial-grid b {
  color: #6d5dfc;
  font-size: 38px;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  padding: 24px clamp(18px, 4vw, 58px) 48px;
  color: rgba(203, 213, 225, 0.68);
  font-weight: 900;
}

.request-band {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.12));
}

label {
  color: #cbd5e1;
}

input,
textarea,
select {
  background: rgba(5, 11, 22, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.admin-layout,
.admin-main,
.login-page {
  color: #172033;
}

.admin-layout .admin-card,
.admin-layout .stat-card,
.login-page .admin-card {
  background: white;
  border-color: #dfe6ee;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.admin-layout .stat-card span,
.admin-layout .admin-list-item span,
.admin-layout .request-row p,
.login-page p {
  color: #657084;
}

.admin-layout input,
.admin-layout textarea,
.admin-layout select,
.login-page input {
  background: white;
  color: #172033;
}

.admin-layout label,
.login-page label {
  color: #39445a;
}

@media (max-width: 1060px) {
  .hero,
  .about-lab,
  .talent-pipeline {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .service-grid,
  .testimonial-grid,
  .stats-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-visual {
    display: none;
  }

  .service-grid,
  .testimonial-grid,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat-tile {
    border-left: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .login-role-grid {
    grid-template-columns: 1fr;
  }
}

.network-section.collaborators-band {
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 82% 28%, rgba(124, 58, 237, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(6, 12, 28, 0.96), rgba(7, 16, 33, 0.9));
}

.network-section .section-head {
  align-items: end;
}

.network-section .section-head h2,
.network-section .section-head p {
  color: #e5edf9;
}

.network-section .section-head p {
  color: #9fb0cf;
}

.network-section .content-card {
  min-height: 245px;
}

.site-edit-row.admin-list-item {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) repeat(2, minmax(120px, 1fr));
  align-items: end;
}

.site-edit-row .row-actions {
  justify-content: flex-end;
}

.site-edit-row .row-actions button {
  width: auto;
  padding: 0 12px;
  font-size: 13px;
}

@media (max-width: 1060px) {
  .network-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-shell,
  .network-canvas {
    min-height: 500px;
  }

  .site-edit-row.admin-list-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .network-section {
    border-radius: 0;
  }

  .network-shell,
  .network-canvas {
    min-height: 430px;
  }

  .network-glass {
    top: 12px;
    left: 12px;
    grid-template-columns: auto auto;
    min-width: 150px;
    padding: 12px;
  }

  .network-glass strong {
    font-size: 20px;
  }

  .network-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-tooltip,
  .collaborator-avatar,
  .nav a,
  .admin-link,
  .section-action {
    transition: none;
  }
}

/* Professional light theme override */
:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #64748b;
  --line: #dbe4ee;
  --surface: #ffffff;
  --soft: #f6f9fc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #0f766e;
  --danger: #be123c;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

body {
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 82% 6%, rgba(15, 118, 110, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 48%, #f8fbff 100%);
  color: var(--ink);
}

body::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px);
}

.topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 228, 238, 0.9);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.brand strong,
.section-head h2,
.hero h1,
.talent-copy h2,
.request-band h2,
.testimonial-grid strong,
.content-card h3 {
  color: #0f172a;
}

.brand small,
.nav {
  color: #52627a;
}

.nav a:hover,
.nav a:first-child {
  background: #e8f0ff;
  color: #1d4ed8;
}

.admin-link {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #c8d7ee;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

.login-entry,
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn.ghost {
  border-color: #bfd0e8;
  background: #ffffff;
  color: #1d4ed8;
}

.hero {
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98), rgba(239, 246, 255, 0.86)),
    radial-gradient(circle at 78% 44%, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at 62% 28%, rgba(15, 118, 110, 0.12), transparent 24%);
}

.hero-tags span {
  border-color: #cfe0f4;
  background: #ffffff;
  color: #34516f;
}

.hero h1 {
  text-shadow: none;
}

.hero h1 strong {
  color: #1d4ed8;
}

.lead,
.hero p:not(.lead),
.section-head p,
.talent-copy p,
.why-item p,
.service-card p,
.content-card p,
.request-band p,
.testimonial-grid p {
  color: #5f7088;
}

.social-links a {
  background: #ffffff;
  color: #23415f;
  border-color: #d7e2ee;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.portrait-orbit {
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.13), transparent 55%),
    repeating-radial-gradient(circle, rgba(37, 99, 235, 0.12) 0 1px, transparent 1px 58px);
}

.portrait-card,
.floating-panel {
  border-color: rgba(148, 163, 184, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(15, 23, 42, 0.54)),
    url("../hero-reference.jpg") center / cover no-repeat;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.floating-panel {
  background: rgba(255, 255, 255, 0.86);
  color: #1d4ed8;
  backdrop-filter: blur(16px);
}

.panel-domains span {
  color: #50647d;
}

.section-kicker {
  color: #0f766e;
}

.service-card,
.content-card,
.admin-card,
.stat-card,
.request-form,
.why-card,
.lab-visual,
.talent-copy,
.talent-steps,
.mode-grid article {
  border: 1px solid #dbe4ee;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.service-card span,
.why-item span {
  background: #eef6ff;
  color: #2563eb;
}

.service-card.teal span {
  background: #ecfdf5;
  color: #0f766e;
}

.service-card.violet span {
  background: #f1f5ff;
  color: #4f46e5;
}

.service-card.blue span {
  background: #eff6ff;
  color: #2563eb;
}

.service-card a,
.content-card a,
.section-action {
  color: #1d4ed8;
}

.card-media {
  border-color: #dbe4ee;
  background:
    radial-gradient(circle at 24% 18%, rgba(37, 99, 235, 0.16), transparent 28%),
    linear-gradient(135deg, #edf5ff, #dfeaf7);
}

.card-media::after {
  background: linear-gradient(180deg, transparent 46%, rgba(15, 23, 42, 0.18));
}

.stats-band {
  border-color: #dbe4ee;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.stat-tile {
  border-left-color: #dbe4ee;
}

.stat-tile strong {
  color: #1d4ed8;
}

.stat-tile span {
  color: #64748b;
}

.talent-steps div {
  background: rgba(248, 251, 255, 0.72);
}

.talent-steps strong {
  color: #142033;
}

.talent-steps p {
  color: #64748b;
}

.lab-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), transparent 32%),
    #ffffff;
}

.why-item {
  background: #f8fbff;
}

.network-section.collaborators-band {
  border-color: #dbe4ee;
  background:
    radial-gradient(circle at 16% 10%, rgba(37, 99, 235, 0.09), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(15, 118, 110, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff, #eef5fb);
}

.network-section .section-head h2,
.network-section .section-head p {
  color: #0f172a;
}

.network-section .section-head p {
  color: #64748b;
}

.network-shell {
  border-color: #d5e2f0;
  background:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    #f8fbff;
  box-shadow: inset 0 0 70px rgba(37, 99, 235, 0.06), 0 20px 60px rgba(15, 23, 42, 0.08);
}

.network-glass,
.network-tooltip {
  border-color: #d5e2f0;
  background: rgba(255, 255, 255, 0.9);
  color: #142033;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.network-glass span,
.network-tooltip small {
  color: #64748b;
}

.network-list .content-card {
  background: #ffffff;
}

.testimonial-grid article {
  border-color: #dbe4ee;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.tech-strip {
  color: #64748b;
}

.request-band {
  background:
    radial-gradient(circle at 16% 20%, rgba(15, 118, 110, 0.1), transparent 28%),
    linear-gradient(135deg, #ffffff, #edf6ff);
  color: var(--ink);
}

.request-form {
  background: #ffffff;
}

label {
  color: #334155;
}

input,
textarea,
select {
  background: #ffffff;
  border-color: #d7e2ee;
  color: #142033;
}

.form-note {
  color: #0f766e;
}

.detail-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff, #eef5fb);
  color: var(--ink);
}

.detail-hero-bg {
  background:
    linear-gradient(120deg, rgba(248, 251, 255, 0.96), rgba(237, 246, 255, 0.82)),
    radial-gradient(circle at 68% 35%, rgba(37, 99, 235, 0.13), transparent 36%);
}

.detail-hero.has-cover .detail-hero-bg::after {
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0.7), rgba(248, 251, 255, 0.94));
}

.detail-back,
.detail-meta span {
  border-color: #d7e2ee;
  background: #ffffff;
  color: #1d4ed8;
}

.detail-hero h1,
.detail-body h2,
.detail-body h3,
.detail-aside strong {
  color: #0f172a;
}

.detail-hero p,
.detail-body p,
.detail-body li,
.detail-body blockquote {
  color: #52627a;
}

.detail-body,
.detail-aside div {
  border-color: #dbe4ee;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.detail-body blockquote {
  background: #eefcf8;
}

.admin-layout,
.admin-main,
.login-page {
  background: #f4f8fc;
}

@media (max-width: 640px) {
  .hero {
    background: linear-gradient(180deg, #f8fbff, #eef5fb);
  }
}

/* Vivid professional light refinements */
:root {
  --c-blue: #2563eb;
  --c-sky: #0284c7;
  --c-teal: #0f766e;
  --c-emerald: #059669;
  --c-indigo: #4f46e5;
  --c-rose: #be4662;
  --c-amber: #a16207;
  --paper: #ffffff;
  --paper-blue: #eef6ff;
  --paper-teal: #ecfdfa;
  --paper-indigo: #f1f4ff;
  --paper-rose: #fff1f4;
  --paper-green: #f0fdf4;
}

body {
  background:
    linear-gradient(180deg, #f8fbff 0%, #f4f8fd 34%, #eef7f5 63%, #f8fbff 100%);
}

body::before {
  opacity: 0.45;
  background-image:
    linear-gradient(120deg, rgba(37, 99, 235, 0.05), transparent 28%),
    linear-gradient(240deg, rgba(15, 118, 110, 0.045), transparent 34%),
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

.hero {
  border-bottom: 1px solid #dbe7f2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 246, 255, 0.94) 48%, rgba(236, 253, 250, 0.9) 100%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(15, 118, 110, 0.1));
}

.hero-copy::before {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
}

.hero-tags span:nth-child(1) { border-color: rgba(37, 99, 235, 0.22); background: #eff6ff; color: #1d4ed8; }
.hero-tags span:nth-child(2) { border-color: rgba(15, 118, 110, 0.22); background: #ecfdfa; color: #0f766e; }
.hero-tags span:nth-child(3) { border-color: rgba(79, 70, 229, 0.2); background: #f1f4ff; color: #4338ca; }
.hero-tags span:nth-child(4) { border-color: rgba(190, 70, 98, 0.18); background: #fff1f4; color: #a73552; }

.brand-mark {
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn.primary,
.login-entry {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-indigo) 48%, var(--c-teal) 100%);
}

.btn.ghost:hover,
.admin-link:hover,
.social-links a:hover {
  transform: translateY(-1px);
}

.section {
  position: relative;
}

.service-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 246, 255, 0.66));
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.content-card::before,
.talent-copy::before,
.why-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
}

.service-card.teal::before { background: linear-gradient(90deg, var(--c-teal), var(--c-emerald)); }
.service-card.violet::before { background: linear-gradient(90deg, var(--c-indigo), var(--c-blue)); }
.service-card.blue::before { background: linear-gradient(90deg, var(--c-sky), var(--c-blue)); }

.service-card.teal {
  background: linear-gradient(180deg, #ffffff, var(--paper-teal));
}

.service-card.violet {
  background: linear-gradient(180deg, #ffffff, var(--paper-indigo));
}

.service-card.blue {
  background: linear-gradient(180deg, #ffffff, var(--paper-blue));
}

.stats-band {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent 22%, rgba(15, 118, 110, 0.08)),
    #ffffff;
}

.stat-tile:nth-child(1) strong { color: var(--c-sky); }
.stat-tile:nth-child(2) strong { color: var(--c-indigo); }
.stat-tile:nth-child(3) strong { color: var(--c-teal); }
.stat-tile:nth-child(4) strong { color: var(--c-rose); }
.stat-tile:nth-child(5) strong { color: var(--c-emerald); }

.about-lab {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(240, 253, 244, 0.5));
}

.lab-visual {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08)),
    #ffffff;
}

.why-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.why-item:nth-child(2) span { background: var(--paper-blue); color: var(--c-blue); }
.why-item:nth-child(3) span { background: var(--paper-teal); color: var(--c-teal); }
.why-item:nth-child(4) span { background: var(--paper-indigo); color: var(--c-indigo); }
.why-item:nth-child(5) span { background: var(--paper-green); color: var(--c-emerald); }

.talent-pipeline {
  padding-inline: clamp(0px, 2vw, 18px);
}

.talent-copy,
.talent-steps {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
}

.talent-steps div:nth-child(1) { background: var(--paper-blue); }
.talent-steps div:nth-child(2) { background: var(--paper-teal); }
.talent-steps div:nth-child(3) { background: var(--paper-indigo); }

.talent-steps span {
  color: var(--c-blue);
}

#projects,
#articles,
#videos,
#posts {
  border-top: 1px solid rgba(219, 228, 238, 0.78);
}

#projects { background: linear-gradient(180deg, rgba(238, 246, 255, 0.7), rgba(255, 255, 255, 0)); }
#articles { background: linear-gradient(180deg, rgba(236, 253, 250, 0.68), rgba(255, 255, 255, 0)); }
#videos { background: linear-gradient(180deg, rgba(241, 244, 255, 0.72), rgba(255, 255, 255, 0)); }
#posts { background: linear-gradient(180deg, rgba(255, 241, 244, 0.54), rgba(255, 255, 255, 0)); }

.content-card {
  position: relative;
  overflow: hidden;
  border-color: #d8e4f0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

#projects .content-card::before { background: linear-gradient(90deg, var(--c-teal), var(--c-blue)); }
#articles .content-card::before { background: linear-gradient(90deg, var(--c-blue), var(--c-indigo)); }
#videos .content-card::before { background: linear-gradient(90deg, var(--c-indigo), var(--c-rose)); }
#posts .content-card::before { background: linear-gradient(90deg, var(--c-sky), var(--c-teal)); }

.content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

.content-card,
.service-card,
.testimonial-grid article,
.social-links a,
.admin-link,
.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.focus-badge {
  background: #e8f0ff;
  color: #1d4ed8;
}

.focus-badge.industry {
  background: #e8faf6;
  color: #0f766e;
}

.network-section.collaborators-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9) 52%, rgba(236, 253, 250, 0.88)),
    #ffffff;
}

.network-shell {
  background:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff, #eef7f5);
}

.network-glass strong {
  color: var(--c-blue);
}

.testimonial-grid article:nth-child(1) { background: linear-gradient(180deg, #ffffff, var(--paper-blue)); }
.testimonial-grid article:nth-child(2) { background: linear-gradient(180deg, #ffffff, var(--paper-teal)); }
.testimonial-grid article:nth-child(3) { background: linear-gradient(180deg, #ffffff, var(--paper-indigo)); }

.request-band {
  border-top: 1px solid #dbe4ee;
  border-bottom: 1px solid #dbe4ee;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.1)),
    #f8fbff;
}

.request-form {
  border-right: 5px solid var(--c-teal);
}

.detail-hero {
  background:
    linear-gradient(135deg, rgba(238, 246, 255, 0.72), rgba(236, 253, 250, 0.6)),
    #ffffff;
}

.detail-body {
  border-top: 5px solid var(--c-blue);
}

/* Image-backed professional hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.9) 0%, rgba(5, 13, 30, 0.78) 38%, rgba(5, 13, 30, 0.38) 66%, rgba(3, 7, 18, 0.32) 100%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.58)),
    url("../hero-ai-lab-v3.png") center / cover no-repeat;
  border-bottom: 1px solid rgba(37, 99, 235, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 36%, rgba(37, 99, 235, 0.2), transparent 28%),
    linear-gradient(180deg, transparent 72%, rgba(248, 251, 255, 0.94) 100%);
  pointer-events: none;
}

.hero-copy {
  max-width: 790px;
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.42), rgba(3, 7, 18, 0.16), transparent);
  backdrop-filter: blur(2px);
}

.hero-copy::before {
  background: linear-gradient(90deg, #22d3ee, #5eead4);
}

.hero h1,
.hero h1 strong {
  color: #ffffff;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.lead,
.hero p:not(.lead) {
  color: #f8fbff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.hero-tags span {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(15, 23, 42, 0.5);
  color: #eef6ff;
  backdrop-filter: blur(12px);
}

.social-links a {
  border-color: rgba(147, 197, 253, 0.25);
  background: rgba(15, 23, 42, 0.5);
  color: #eef6ff;
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(15, 23, 42, 0.52);
  color: #ffffff;
}

.hero p:not(.lead),
.hero .lead {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72), 0 14px 38px rgba(0, 0, 0, 0.42);
}

.hero p:not(.lead) {
  max-width: 720px;
  font-weight: 800;
}

/* Stronger readable copy */
.hero p:not(.lead),
.service-card p,
.content-card p,
.why-item p,
.talent-copy p,
.talent-steps p,
.section-head p,
.request-band p,
.testimonial-grid p,
.detail-hero p,
.detail-body p,
.detail-body li,
.detail-body blockquote {
  color: #111827;
  font-size: 1.2em;
  line-height: 2.05;
}

/* Keep the hero artwork sharp: readability layer without backdrop blur */
.hero-copy {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.48) 48%, rgba(2, 6, 23, 0.08) 100%);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: -18px -26px;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(circle at 28% 46%, rgba(2, 6, 23, 0.42), transparent 62%);
  pointer-events: none;
}

.hero-tags span {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(15, 23, 42, 0.64);
}

.portrait-card {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.82)),
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.2), transparent 36%) !important;
}

.portrait-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.28)) !important;
}

/* Floating personal portrait slot */
.hero-headshot {
  position: absolute;
  top: 28px;
  left: clamp(18px, 3.8vw, 58px);
  z-index: 3;
  width: clamp(116px, 11vw, 162px);
  aspect-ratio: 4 / 5;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.18));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.hero-headshot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 899px) {
  .hero-headshot {
    top: 18px;
    left: 18px;
    width: 96px;
    border-radius: 18px;
  }

  .hero-headshot img {
    border-radius: 13px;
  }

}

.content-card span,
.content-card small,
.stat-tile span,
.detail-aside span {
  color: #1f2937;
}

/* Larger dark header navigation */
.brand-mark {
  width: 50px;
  height: 50px;
  color: #ffffff;
  font-size: 22px;
}

.brand strong {
  color: #050b16;
  font-size: 21px;
}

.brand small {
  color: #111827;
  font-size: 15px;
}

.nav {
  color: #050b16;
  font-size: 17px;
  font-weight: 900;
}

.nav a {
  color: #050b16;
}

/* Larger hero badges and profile copy */
.hero-tags span {
  font-size: 16px;
  padding: 8px 12px;
}

.lead {
  font-size: clamp(26px, 3.6vw, 40px);
}

.panel-domains strong {
  font-size: 18px;
}

.panel-domains span {
  color: #111827;
  font-size: 17px;
  line-height: 2.1;
}

/* Polished request form spacing */
.request-band {
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
}

.request-form {
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 14px;
}

.request-form .form-row {
  gap: 18px;
}

.request-form label {
  gap: 10px;
  color: #111827;
  font-size: 17px;
  line-height: 1.7;
}

.request-form input,
.request-form textarea,
.request-form select {
  min-height: 52px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.8;
}

.request-form textarea {
  min-height: 150px;
  resize: vertical;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: #8796aa;
}

.request-form .btn {
  min-height: 52px;
  width: max-content;
  padding-inline: 28px;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .request-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .request-form .btn {
    width: 100%;
  }
}

/* Larger homepage stats */
.stat-tile {
  min-height: 120px;
  padding: 18px 14px;
}

.stat-tile strong {
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1;
}

.stat-tile span {
  margin-top: 12px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

/* Compact reading flow */
.section {
  padding-block: clamp(34px, 4.2vw, 52px);
}

.section-head {
  margin-bottom: 18px;
}

.about-lab {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 20px;
  align-items: stretch;
}

.lab-visual,
.why-card {
  padding: 22px;
}

.cube-scene {
  min-height: 210px;
}

.why-card {
  display: grid;
  gap: 14px;
}

.why-card h2 {
  margin: 0 0 4px;
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.45;
}

.why-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.why-item > span {
  width: 42px;
  height: 42px;
}

.why-item strong {
  font-size: 18px;
}

.why-item p {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.75;
}

.service-card {
  min-height: 180px;
  padding: 22px;
}

.content-card {
  min-height: 0;
  padding: 18px;
}

.card-media {
  margin-bottom: 12px;
}

.content-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.content-card p {
  margin-block: 6px 12px;
  line-height: 1.75;
}

.talent-copy {
  padding: 24px;
}

.talent-steps div {
  padding: 18px 22px;
}

.network-shell,
.network-canvas {
  min-height: 460px;
}

.request-band {
  padding-block: clamp(34px, 4.2vw, 52px);
}

@media (min-width: 900px) {
  .why-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-card h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1060px) {
  .about-lab {
    grid-template-columns: 1fr;
  }
}

/* High-density professional layout */
@media (min-width: 1100px) {
  .hero {
    min-height: 640px;
    padding-block: 34px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .portrait-orbit {
    width: min(460px, 100%);
  }

  .section {
    padding-block: 28px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .about-lab {
    min-height: auto;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
    gap: 16px;
  }

  .lab-visual,
  .why-card {
    padding: 16px;
  }

  .cube-scene {
    min-height: 170px;
  }

  .why-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
  }

  .why-card h2 {
    grid-column: 1 / -1;
    font-size: 28px;
    margin-bottom: 0;
  }

  .why-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .why-item > span {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .why-item strong {
    font-size: 16px;
  }

  .why-item p {
    font-size: 15px;
    line-height: 1.65;
  }

  .talent-pipeline {
    gap: 16px;
  }

  .talent-copy,
  .talent-steps div {
    padding: 18px;
  }

  .talent-copy h2 {
    font-size: 30px;
    margin-bottom: 8px;
  }

  .talent-copy p,
  .talent-steps p {
    font-size: 16px;
    line-height: 1.75;
  }

  .service-card {
    min-height: 155px;
    padding: 18px;
  }

  .service-card span {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    font-size: 22px;
  }

  .service-card h3 {
    margin-block: 8px;
    font-size: 20px;
  }

  .service-card p {
    font-size: 16px;
    line-height: 1.7;
  }

  .stats-band {
    padding-block: 12px;
    margin-bottom: 18px;
  }

  .stat-tile {
    min-height: 86px;
    padding: 10px 12px;
  }

  .stat-tile strong {
    font-size: clamp(34px, 3.2vw, 46px);
  }

  .stat-tile span {
    margin-top: 7px;
    font-size: 15px;
  }

  .content-card {
    padding: 14px;
  }

  .card-media {
    aspect-ratio: 16 / 8.4;
    margin-bottom: 10px;
  }

  .content-card h3 {
    font-size: 18px;
    line-height: 1.55;
  }

  .content-card p {
    font-size: 15px;
    line-height: 1.65;
  }

  .network-shell,
  .network-canvas {
    min-height: 380px;
  }

  .network-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .network-section .content-card {
    min-height: 190px;
  }

  .testimonial-grid article {
    min-height: 112px;
    padding: 16px;
  }

  .testimonial-grid p {
    font-size: 16px;
    line-height: 1.7;
  }

  .request-band {
    grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1fr);
    gap: 28px;
  }

  .request-form {
    gap: 14px;
    padding: 22px;
  }

  .request-form input,
  .request-form textarea,
  .request-form select {
    min-height: 46px;
    padding: 11px 14px;
  }

  .request-form textarea {
    min-height: 110px;
  }
}

.resume-pages-section {
  border-top: 1px solid #dbe4ee;
  border-bottom: 1px solid #dbe4ee;
  background:
    linear-gradient(135deg, rgba(238, 246, 255, 0.72), rgba(236, 253, 250, 0.58)),
    #ffffff;
}

.resume-pages-section .section-head {
  margin-bottom: 16px;
}

.resume-pages-section .section-head p {
  margin: 6px 0 0;
  color: #111827;
  font-size: 18px;
}

.resume-pages-section .network-list {
  margin-top: 0;
}

.resume-pages-section .collaborator-card {
  min-height: 0;
}

.talent-copy p {
  font-size: 1.12em;
  line-height: 1.8;
}

/* Compact talent pipeline */
.talent-pipeline {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 14px;
}

.talent-copy,
.talent-steps {
  min-height: 0;
}

.talent-copy {
  padding: 18px 20px;
}

.talent-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.5vw, 32px);
}

.talent-copy p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.talent-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.talent-steps div {
  padding: 16px;
}

.talent-steps span {
  margin-bottom: 8px;
}

.talent-steps strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.talent-steps p {
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .talent-pipeline,
  .talent-steps {
    grid-template-columns: 1fr;
  }
}

.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.testimonial-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.testimonial-form h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
}

.testimonial-form label {
  gap: 8px;
  color: #111827;
  font-size: 15px;
}

.testimonial-form input,
.testimonial-form textarea {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
}

.upload-field {
  gap: 10px;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  gap: 10px;
  align-items: center;
}

.file-picker {
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 760px) {
  .upload-row {
    grid-template-columns: 1fr;
  }
}

.testimonial-form textarea {
  min-height: 92px;
}

.testimonial-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.testimonial-controls button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #e8f0ff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.testimonial-controls span {
  min-width: 52px;
  color: #111827;
  font-weight: 900;
  text-align: center;
}

.testimonial-row {
  grid-template-columns: 130px 150px 130px minmax(220px, 1fr) 150px 42px;
}

@media (max-width: 900px) {
  .testimonial-layout {
    grid-template-columns: 1fr;
  }
}

/* Final brand logo treatment */
.brand-mark,
.portrait-mark {
  background: #ffffff !important;
  color: transparent;
  border: 1px solid rgba(5, 41, 74, 0.14);
  box-shadow: 0 12px 28px rgba(5, 41, 74, 0.16);
  overflow: hidden;
}

.brand-mark {
  border-radius: 14px;
  padding: 5px;
}

.portrait-mark {
  border-radius: 15px;
  padding: 5px;
}

.brand-mark img,
.portrait-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}


/* Final typography polish */
body {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.8;
}

h1,
h2,
h3,
.brand strong {
  font-weight: 750;
}

.nav,
.btn,
.admin-link,
.section-kicker,
.eyebrow {
  font-weight: 650;
}

input,
textarea,
select,
button {
  font-family: var(--font-body);
}

/* Cinematic lightweight hero motion */
.hero {
  --hero-rx: 0deg;
  --hero-ry: 0deg;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-photo-x: 0px;
  --hero-photo-y: 0px;
  --hero-photo-ry: 0deg;
  --hero-glow-x: 50%;
  --hero-glow-y: 48%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--hero-glow-x) var(--hero-glow-y), rgba(56, 189, 248, 0.2), transparent 24%),
    radial-gradient(circle at 76% 34%, rgba(99, 102, 241, 0.17), transparent 30%);
  opacity: 0.9;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual {
  perspective: 1200px;
  perspective-origin: center;
}

.portrait-orbit {
  transform-style: preserve-3d;
  transform: rotateX(var(--hero-rx)) rotateY(var(--hero-ry));
  will-change: transform;
}

.portrait-orbit::before,
.portrait-orbit::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.portrait-orbit::before {
  inset: 7%;
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: inset 0 0 34px rgba(56, 189, 248, 0.08);
  animation: cinematic-ring 24s linear infinite;
}

.portrait-orbit::after {
  inset: 18%;
  border: 1px dashed rgba(167, 139, 250, 0.3);
  animation: cinematic-ring-reverse 30s linear infinite;
}

.portrait-card {
  transform: translateZ(72px);
  border-color: rgba(186, 230, 253, 0.4);
  box-shadow:
    0 36px 90px rgba(2, 6, 23, 0.48),
    0 0 42px rgba(56, 189, 248, 0.12);
}

.floating-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(145deg, rgba(9, 20, 41, 0.94), rgba(18, 36, 66, 0.88));
  border-color: rgba(147, 197, 253, 0.3);
}

.panel-domains {
  transform: translateZ(118px);
  animation: cinematic-float-domains 7s ease-in-out infinite;
}

.panel-domains span {
  position: relative;
  padding-inline-start: 15px;
}

.panel-domains span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.75);
  transform: translateY(-50%);
}

.panel-chart {
  transform: translateZ(42px);
  animation: cinematic-float-chart 8.5s ease-in-out infinite;
}

.panel-code {
  transform: translateZ(88px);
  animation: cinematic-float-code 9.5s ease-in-out infinite;
}

.hero-headshot {
  transform: translate3d(var(--hero-photo-x), var(--hero-photo-y), 0) rotateY(var(--hero-photo-ry));
  transition: transform 140ms ease-out, box-shadow 240ms ease;
  will-change: transform;
}

.hero-motion-ready .hero-headshot {
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.36),
    0 0 0 1px rgba(125, 211, 252, 0.1);
}

@keyframes cinematic-ring {
  to { transform: rotate(360deg); }
}

@keyframes cinematic-ring-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes cinematic-float-domains {
  0%, 100% { transform: translate3d(0, 0, 118px); }
  50% { transform: translate3d(0, -9px, 118px); }
}

@keyframes cinematic-float-chart {
  0%, 100% { transform: translate3d(0, 0, 42px); }
  50% { transform: translate3d(0, 7px, 42px); }
}

@keyframes cinematic-float-code {
  0%, 100% { transform: translate3d(0, 0, 88px); }
  50% { transform: translate3d(0, -6px, 88px); }
}

@media (max-width: 899px), (pointer: coarse) {
  .portrait-orbit,
  .hero-headshot {
    transform: none;
    will-change: auto;
  }

  .portrait-orbit::before,
  .portrait-orbit::after,
  .floating-panel {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-orbit,
  .hero-headshot,
  .floating-panel,
  .portrait-orbit::before,
  .portrait-orbit::after {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}


