:root {
  --bg-gradient: linear-gradient(135deg, #3e3daf 0%, #f200b5 100%);
  --bg-gradient-overlay: linear-gradient(135deg,
      rgb(0 0 0 / 45%) 0%,
      rgb(0 0 0 / 45%) 100%);
  --page-background: var(--bg-gradient-overlay), var(--bg-gradient);
  --bg: var(--page-background);
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --primary: #112b46;
  --primary-soft: #1c4a73;
  --accent: #2b8cde;
  --accent-soft: #dbf0ff;
  --text-primary: #ffffff;
  --text-secondary: #f4efff;
  --text-accent: #f2b705;
  --text-on-accent: #112b46;
  --text: #1f2a37;
  --muted: #5d6b7a;
  --line: rgba(17, 43, 70, 0.12);
  --shadow: 0 18px 45px rgba(17, 43, 70, 0.12);
  --success: #1d9b63;
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header,
footer {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background-color: #2a1b4a;
  background-image: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ==========================================================
   HEADER / NAVIGATION
   Glass bar + cyan accent to match the cards and terminal.
   ========================================================== */
.site-header {
  --text-accent: #00e5ff;
  /* nav uses the site's cyan instead of gold */
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(14, 6, 32, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-text {
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  position: relative;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.nav-item:focus-within>.dropdown-toggle {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text-accent);
  outline: none;
}

.nav-link:focus-visible,
.dropdown-toggle:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}

/* Cyan underline on hover / focus / current page */
.nav-link::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.dropdown-toggle:hover::after,
.dropdown-toggle:focus-visible::after,
.nav-item:hover>.dropdown-toggle::after,
.nav-item:focus-within>.dropdown-toggle::after,
.main-nav [aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav [aria-current="page"] {
  color: var(--text-accent);
}

/* Contact as the one call-to-action (same cyan fill as the STATUS badge) */
.nav-link.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--text-accent);
  color: #090314;
  font-weight: 700;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-link.nav-cta:hover,
.nav-link.nav-cta:focus-visible {
  background: var(--text-accent);
  color: #090314;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

.nav-link.nav-cta::after {
  display: none;
}

/* Dropdown: same glass + 3px cyan top edge as the cards */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 270px;
  overflow: hidden;
  background: rgba(14, 6, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--text-accent);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  padding: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 160ms ease, transform 180ms ease;
}

.nav-item.has-dropdown::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: dropdown-menu-enter 180ms ease-out both;
}

.dropdown-item {
  position: relative;
  display: block;
  padding: 12px 12px 12px 18px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dropdown-item::before {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--text-accent);
  content: "";
  transform: translateY(-50%);
  transition: height 160ms ease;
}

.dropdown-item:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--text-accent);
  transform: translateX(2px);
}

.dropdown-item:hover::before,
.dropdown-item:focus-visible::before {
  height: 18px;
}

.dropdown-item:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 1px;
}

.nav-item:hover .dropdown-item,
.nav-item:focus-within .dropdown-item,
.nav-item.open .dropdown-item {
  animation: dropdown-link-enter 220ms both;
}

.nav-item:hover .dropdown-item:nth-child(2),
.nav-item:focus-within .dropdown-item:nth-child(2),
.nav-item.open .dropdown-item:nth-child(2) {
  animation-delay: 45ms;
}

@keyframes dropdown-link-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdown-menu-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 5px auto;
  transition: 0.2s ease;
}

/* Hamburger -> X when the menu is open (script.js toggles .active) */
.mobile-toggle.active span {
  opacity: 0;
}

.mobile-toggle.active::before {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active::after {
  transform: translateY(-7px) rotate(-45deg);
}

.page-hero {
  padding: 40px 0 42px;
}

body[data-page="home"] .page-hero+.section {
  padding-top: 160px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-grid-empty {
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.hero-frame {
  width: min(100%, 780px);
  height: auto;
  margin: 0 auto;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero Frame Layout */
.hero-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 20px;
}

/* Hero Branding Container */
.hero-branding {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: -20px;
  /* Reduced from 15px */
  width: 100%;
}

/* Main Brand Title */
.hero-title-text {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 6px 0.18em;
  /* Set top margin to 0 (was 18px) */
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Tagline Container */
.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(0.85rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  margin: 0 0 22px 0;
  text-transform: uppercase;
}

.tag-word {
  color: #ffffff;
}

.tag-word.highlight {
  color: #2b8cde;
  text-shadow: 0 0 12px rgba(43, 140, 222, 0.6);
}

.tag-word.highlight-cyan {
  color: #00d2ff;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.7);
}

.tag-dot {
  color: #a83b96;
  font-size: 0.9em;
}

/* Container & Section */
.jm-framework {
  background: transparent;
  /* Allows page's purple gradient to shine through */
  color: #ffffff;
  padding: 15px 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  z-index: 2;
}

.framework-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.framework-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 -10px 0;
  letter-spacing: -0.5px;
  color: white;
}

.framework-subtitle {
  color: #b3a1d0;
  font-size: 1.05rem;
  margin: 0 0 20px 0;
}

/* Grid & Glassmorphism Cards */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.framework-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.framework-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.framework-card.active {
  background: rgba(30, 12, 58, 0.9);
  border-color: #3e3daf;
  box-shadow: 0 0 30px rgba#3e3daf, inset 0 0 15px rgba(0, 229, 255, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-num {
  font-size: 0.95rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
}

.num-cyan {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
}

.num-blue {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.num-purple {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
}

.num-pink {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
}

.card-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #8b7ca8;
}

.framework-card.active .card-status {
  background: #00e5ff;
  color: #090314;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.card-desc {
  color: #a493c4;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Glassmorphism Terminal Box */
.framework-terminal {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 3, 18, 0.6);
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-tag {
  font-family: monospace;
  font-size: 0.8rem;
  color: #7b6a9e;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

.terminal-body p {
  margin: 0;
  color: #ffffff;
}

.terminal-body .prompt {
  color: #00e5ff;
  font-weight: bold;
}

.terminal-body .highlight {
  color: #00e5ff;
  font-weight: bold;
}

/* Terminal Click Shine & Pop Animation */
@keyframes terminalPulse {
  0% {
    transform: scale(1);
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  40% {
    transform: translateY(-3px) scale(1.012);
    border-color: rgba(0, 229, 255, 1);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.65), 0 25px 50px rgba(0, 0, 0, 0.6);
  }

  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

.framework-terminal.terminal-pulse {
  animation: terminalPulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1. Glassmorphic Card Contrast & Accent Border */
.framework-card {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 3px solid #00e5ff !important;
  /* Cyan accent border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 2. Step Number Badges (01, 02, 03, 04) */
.card-step {
  font-family: monospace, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* 3. Card Title Typography */
.framework-card h3 {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* 4. High-Contrast Body Text */
.framework-card p {
  color: rgba(255, 255, 255, 0.92) !important;
  /* Crisp high-contrast text */
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Framework Card Image Styling */
.framework-card .card-image {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.framework-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.framework-card:hover .card-image img {
  transform: scale(1.05);
}

.hero-title {
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 20px 0 18px;
  letter-spacing: -0.06em;
  color: var(--text-primary);
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.06rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-accent);
  color: var(--text-on-accent);
  box-shadow: 0 16px 30px rgba(17, 43, 70, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-alt);
}

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

.dashboard-card {
  position: absolute;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 43, 70, 0.07);
}

.dashboard-main {
  inset: 30px 30px 80px 30px;
  overflow: hidden;
}

.dashboard-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.metric-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  padding: 18px 18px 14px;
}

.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.section {
  padding: 36px 0 80px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.section-header p {
  max-width: 740px;
  color: var(--text-secondary);
  margin: 14px 0 0;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

.info-card,
.service-card,
.category-card,
.project-card,
.member-card,
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(17, 43, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.service-card:hover,
.category-card:hover,
.project-card:hover,
.member-card:hover,
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.info-card .card-image,
.category-card .card-image,
.project-card .card-image {
  height: 230px;
  overflow: hidden;
}

.info-card .card-image img,
.category-card .card-image img,
.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.info-card:hover .card-image img,
.category-card:hover .card-image img,
.project-card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--primary);
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.description-toggle {
  margin-top: 8px;
}

.description-toggle summary {
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.description-toggle .less-label,
.description-toggle[open] .more-label {
  display: none;
}

.description-toggle[open] .less-label {
  display: inline;
}

.description-toggle summary::-webkit-details-marker {
  display: none;
}

.description-toggle summary:hover {
  color: var(--primary-soft);
}

.description-toggle summary:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.description-toggle p {
  margin-top: 8px;
}

.service-card {
  padding: 28px 22px;
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), #dfeaff);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.35rem;
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
}

.page-banner {
  padding: 68px 0 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(244, 239, 255, 0.72);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: rgba(244, 239, 255, 0.82);
  transition: color 160ms ease;
}

.breadcrumbs a:hover {
  color: var(--text-accent);
}

.breadcrumbs span:last-child {
  color: var(--text-accent);
  font-weight: 600;
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.page-banner p {
  color: var(--text-secondary);
  max-width: 760px;
  margin: 14px 0 0;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.text-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.category-card {
  display: block;
  color: inherit;
}

.category-card .card-body {
  padding: 24px 24px 28px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--primary);
}

.virtual-assistant-card {
  width: 100%;
}

.virtual-assistant-card>a {
  display: block;
  color: inherit;
}

.virtual-assistant-visual {
  display: grid;
  height: 230px;
  place-items: center;
  background: linear-gradient(112deg, #eee5fb 0%, #e3efff 100%);
}

.virtual-assistant-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 0 22px;
}

.virtual-assistant-icon {
  display: grid;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  place-items: center;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 48, 82, 0.12);
}

.virtual-assistant-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-email {
  color: #3986d9;
}

.icon-calendar {
  color: #db5360;
}

.icon-tasks {
  color: #17233c;
}

.icon-video {
  color: #8156c9;
}

.virtual-assistant-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 24px 24px 28px;
  background: #ffffff;
}

.virtual-assistant-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-alt);
  color: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.virtual-assistant-content h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: inherit;
}

.virtual-assistant-content p {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: inherit;
}

@media (max-width: 520px) {
  .virtual-assistant-visual {
    height: 210px;
  }

  .virtual-assistant-icons {
    gap: 10px;
    padding: 0 12px;
  }

  .virtual-assistant-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 14px;
  }

  .virtual-assistant-icon svg {
    width: 30px;
    height: 30px;
  }

  .virtual-assistant-content {
    padding: 24px 20px 28px;
  }
}

.admin-project-back {
  margin-bottom: 20px;
}

.admin-project-section {
  background: linear-gradient(160deg, #4a1560, #5c1a5f);
}

.va-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.va-service-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 8, 37, 0.18);
  color: #102746;
}

.va-service-link {
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.va-service-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(24, 8, 37, .25);
}

.va-service-link:focus-visible {
  outline: 3px solid #f5c96a;
  outline-offset: 4px;
}

.va-service-art {
  display: grid;
  min-height: 158px;
  flex: 0 0 158px;
  place-items: center;
}

.va-art-content {
  background: linear-gradient(135deg, #eee5fb 0%, #f7f1ff 100%);
  color: #7950b5;
}

.va-art-email {
  background: linear-gradient(135deg, #e1efff 0%, #f1f7ff 100%);
  color: #367bc5;
}

.va-art-client {
  background: linear-gradient(135deg, #dff4e9 0%, #f0fbf4 100%);
  color: #328b5a;
}

.va-art-inbox {
  background: linear-gradient(135deg, #ffebd8 0%, #fff7e9 100%);
  color: #d17b32;
}

.va-art-calendar {
  background: linear-gradient(135deg, #fce3e8 0%, #fff2f4 100%);
  color: #d64e60;
}

.va-art-sops {
  background: linear-gradient(135deg, #e2eaf2 0%, #f3f6fa 100%);
  color: #24364f;
}

.va-art-boards {
  background: linear-gradient(135deg, #f1e3f2 0%, #faf1fa 100%);
  color: #8a4c9b;
}

.va-service-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(31, 48, 82, 0.13);
}

.va-service-icon svg {
  width: 38px;
  height: 38px;
}

.va-service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 28px;
}

.va-service-copy h2 {
  margin: 13px 0 8px;
  color: #102746;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.va-service-copy p {
  margin: 0;
  color: #56677f;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .va-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .va-support-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .va-service-card {
    min-height: 0;
  }

  .va-service-copy {
    padding: 22px 24px 26px;
  }
}

.admin-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 32px;
}

.admin-project-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 25px rgba(17, 43, 70, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-project-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.admin-project-tile:focus-visible {
  outline: 3px solid #00e5ff;
  outline-offset: 4px;
}

.admin-project-thumbnail {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #eaf0f4;
}

.admin-project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-project-content {
  padding: 18px;
}

.admin-project-content h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.35;
}

.admin-project-content p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-project-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-project-action span {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.admin-project-tile:hover .admin-project-action span {
  transform: translateX(4px);
}

.admin-project-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3e6ec;
  border-radius: 28px;
  background: #ffffff;
  color: #14233f;
  font-family: Inter, system-ui, sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 16, 38, 0.2);
}

.admin-project-card:focus-visible {
  outline: 3px solid #e6d3ef;
  outline-offset: 3px;
}

.admin-project-card-image {
  flex: 0 0 200px;
  height: 200px;
  overflow: hidden;
  padding: 28px 28px 0;
  background: linear-gradient(135deg, #dde6f3, #f4f7fb);
}

.admin-project-card-image-payroll {
  display: grid;
  place-items: center;
  padding: 12px 20px;
}

.admin-project-card-image-payroll img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-project-card-image-lead-report {
  flex: 0 0 auto;
  height: auto;
  padding: 0;
  background: #0f4c5c;
}

.admin-project-card-image-lead-report img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-project-card-image-cleaning-preview {
  display: flex;
  gap: 12px;
}

.admin-project-card-image-real-estate-preview {
  padding: 18px 28px 12px;
}

.admin-project-preview-sheet {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(31, 58, 95, 0.16);
}

.admin-project-preview-title {
  display: flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-project-sheet-before .admin-project-preview-title {
  background: #b0343f;
}

.admin-project-sheet-after .admin-project-preview-title {
  background: #1f3a5f;
}

.admin-project-preview-contact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 5px 7px;
  border-bottom: 1px solid #e6ebf2;
}

.admin-project-preview-id {
  color: #7b8795;
  font-size: 7px;
  font-weight: 700;
}

.admin-project-preview-detail {
  overflow: hidden;
  color: #374151;
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-project-preview-flag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 1px 5px;
  background: #fdecea;
  color: #7a1f1a;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.admin-project-sheet-after .admin-project-preview-flag {
  background: #fef3c7;
  color: #8a5a00;
}

.admin-project-preview-estate {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  padding: 9px 12px 6px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(31, 58, 95, 0.16);
}

.admin-project-preview-topline,
.admin-project-preview-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-project-preview-topline {
  color: #1f3a5f;
  font-size: 9px;
  font-weight: 700;
}

.admin-project-preview-topline span:last-child {
  color: #64748b;
  font-size: 7px;
}

.admin-project-preview-table-head,
.admin-project-preview-listing {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 5px;
}

.admin-project-preview-table-head {
  padding: 3px 0;
  border-bottom: 1px solid #dbe2eb;
  color: #7b8795;
  font-size: 7px;
  font-weight: 700;
}

.admin-project-preview-listing {
  min-height: 22px;
  border-bottom: 1px solid #e6ebf2;
  color: #374151;
  font-size: 8px;
}

.admin-project-preview-listing span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-project-preview-listing span:first-child {
  color: #64748b;
  font-weight: 600;
}

.admin-project-preview-listing b {
  color: #1e6b3a;
  font-size: 8px;
}

.admin-project-preview-listing b.is-active {
  color: #1e3a8a;
}

.admin-project-preview-total {
  margin-top: auto;
  color: #5b6472;
  font-size: 8px;
}

.admin-project-preview-total strong {
  color: #14233f;
  font-size: 10px;
}

.admin-project-card-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 32px 36px;
}

.admin-project-card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 16px;
  background: #eef3ff;
  color: #1e3a6b;
  font-size: 14px;
  font-weight: 600;
}

.admin-project-card-body h2 {
  margin: 0;
  color: #14233f;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-project-card-body p {
  margin: 0;
  color: #5b6472;
  font-size: 16px;
  line-height: 1.65;
}

.admin-project-card-tools {
  margin-top: 0;
}

.admin-project-card-body .admin-project-action {
  width: 100%;
  margin-top: auto;
}

.admin-project-card:hover .admin-project-action span {
  transform: translateX(4px);
}

@media (max-width: 364px) {
  .admin-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.category-card .meta {
  display: inline-flex;
  padding: 6px 10px;
  background: var(--surface-alt);
  border-radius: 999px;
  color: var(--primary-soft);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: flex-start;
}

.project-list {
  display: grid;
  gap: 22px;
}

/* ==========================================================
   4-PHOTO GRID & LOWER-LEFT PORTFOLIO BUTTON
   ========================================================== */
.card-media-wrapper {
  position: relative;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090314;
}

/* 2x2 Photo Layout */
.photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
}

/* ==========================================================
   4-PHOTO GRID (FIT WHOLE IMAGE)
   ========================================================== */
.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  /* Square containers fit mixed story & post formats better */
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(14, 6, 32, 0.6);
  /* Subtle dark glass backing for letterboxed spaces */
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Shows the entire image without cropping */
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.1);
}

/* Hover Zoom Icon Overlay */
.expand-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.expand-icon {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(9, 3, 20, 0.75);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #00e5ff;
}

.photo-item:hover .expand-overlay {
  opacity: 1;
}

/* Card Footer Layout (Branding Tags Left, Button Right) */
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.card-footer-row .project-tools {
  margin-top: 0;
}

/* Bottom-Right Inline Button */
.btn-more-works {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  margin-left: auto;
}

.btn-more-works:hover {
  background: #00e5ff;
  color: #090314;
  border-color: #00e5ff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
  transform: translateY(-1px);
}

.btn-more-works svg {
  transition: transform 0.25s ease;
}

.btn-more-works:hover svg {
  transform: translateX(3px);
}

/* ==========================================================
   CENTERED CATEGORY BOTTOM ACTION BUTTON
   ========================================================== */
.category-more-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-see-more-projects {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-see-more-projects:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: rgba(0, 229, 255, 0.6);
  color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.btn-see-more-projects svg {
  transition: transform 0.25s ease;
}

.btn-see-more-projects:hover svg {
  transform: translateX(4px);
}

/* ==========================================================
   CLICK-TO-EXPAND LIGHTBOX MODAL
   ========================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 14, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
}

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

.video-project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(17, 43, 70, 0.04);
}

.video-project-card .video-frame {
  border: 0;
  border-radius: 0;
}

.video-project-card .card-body {
  padding: 22px;
}

.video-project-card h3 {
  margin-top: 0;
}

.design-project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(17, 43, 70, 0.04);
}

.design-project-card .card-image {
  height: auto;
  aspect-ratio: 4 / 3;
}

.design-project-card .card-body {
  padding: 22px;
}

.design-project-card h3 {
  margin-top: 0;
}

.project-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 180px;
}

.project-card .card-image {
  height: 100%;
}

.project-card .card-body {
  padding: 22px;
}

.project-card h3 {
  margin-top: 0;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tool-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--primary-soft);
  font-size: 0.77rem;
  font-weight: 700;
}

.detail-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(17, 43, 70, 0.04);
}

.detail-stage .detail-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.detail-stage .detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-stage .detail-content {
  padding: 26px;
}

.detail-stage h2 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--primary);
}

.detail-stage p {
  color: var(--muted);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1726;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame-native {
  height: auto;
  aspect-ratio: auto;
}

.video-frame-native video {
  display: block;
  height: auto;
  aspect-ratio: auto;
}

body[data-portfolio-person="arnold"] .category-card,
body[data-portfolio-person="arnold"] .project-card,
body[data-portfolio-person="arnold"] .video-project-card,
body[data-portfolio-person="arnold"] .design-project-card,
body[data-portfolio-person="arnold"] .detail-stage {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid #00e5ff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

body[data-portfolio-person="arnold"] .category-card:hover,
body[data-portfolio-person="arnold"] .project-card:hover,
body[data-portfolio-person="arnold"] .video-project-card:hover,
body[data-portfolio-person="arnold"] .design-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

body[data-portfolio-person="arnold"] .video-project-card:hover {
  transform: none;
}

body[data-portfolio-person="arnold"] .category-card>a {
  display: block;
  color: inherit;
}

body[data-portfolio-person="arnold"] .category-card .card-image,
body[data-portfolio-person="arnold"] .design-project-card .card-image {
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

body[data-portfolio-person="arnold"] .category-card .card-body,
body[data-portfolio-person="arnold"] .design-project-card .card-body {
  padding: 18px 20px 20px;
}

body[data-portfolio-person="arnold"] .category-card h3,
body[data-portfolio-person="arnold"] .project-card h3,
body[data-portfolio-person="arnold"] .video-project-card h3,
body[data-portfolio-person="arnold"] .design-project-card h3,
body[data-portfolio-person="arnold"] .detail-stage h2 {
  color: #ffffff;
}

body[data-portfolio-person="arnold"] .category-card p,
body[data-portfolio-person="arnold"] .project-card p,
body[data-portfolio-person="arnold"] .video-project-card p,
body[data-portfolio-person="arnold"] .design-project-card p,
body[data-portfolio-person="arnold"] .detail-stage p {
  color: rgba(255, 255, 255, 0.88);
}

body[data-portfolio-person="arnold"] .category-card .meta,
body[data-portfolio-person="arnold"] .project-tools .tool-tag {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.28);
}

body[data-portfolio-person="arnold"] .video-project-card .video-frame {
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

body[data-portfolio-person="arnold"] .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.member-card {
  padding: 30px 26px 26px;
  text-align: center;
}

.member-portrait {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 5px solid rgba(43, 140, 222, 0.12);
}

.member-card h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  color: var(--primary);
}

.member-role {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.member-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(17, 43, 70, 0.06);
  overflow: hidden;
}

.profile-sidebar {
  background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
  padding: 28px 22px;
}

.profile-sidebar .avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 6px solid rgba(17, 43, 70, 0.08);
}

.profile-sidebar h2 {
  margin: 0 0 4px;
  text-align: center;
  color: var(--primary);
}

.profile-title {
  text-align: center;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.profile-contact {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.profile-contact li {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 43, 70, 0.06);
  border-radius: 12px;
  color: var(--text);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.profile-main {
  padding: 30px 28px 34px;
}

.resume-section {
  margin-bottom: 30px;
}

.resume-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: var(--primary);
}

.resume-section p,
.resume-section li {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding-left: 18px;
  border-left: 2px solid rgba(43, 140, 222, 0.25);
}

.timeline-item h4 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  color: var(--primary);
}

.timeline-item .meta {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p,
.timeline-item ul {
  margin: 0;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tools-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  background: var(--surface-alt);
  border-radius: 12px;
  color: var(--primary-soft);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 30px;
  align-items: start;
}

.contact-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 18px 35px rgba(17, 43, 70, 0.04);
}

.contact-panel h3,
.form-panel h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-points {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-point>div {
  min-width: 0;
}

.contact-point a {
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--primary-soft);
  font-weight: 900;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
  color: var(--primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(43, 140, 222, 0.9);
  box-shadow: 0 0 0 4px rgba(43, 140, 222, 0.12);
  outline: none;
}

.form-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.success-message {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(29, 155, 99, 0.08);
  border: 1px solid rgba(29, 155, 99, 0.15);
  color: var(--success);
  font-weight: 700;
}

.success-message.visible {
  display: block;
}

footer {
  border-top: 1px solid rgba(0, 229, 255, 0.3);
  background: linear-gradient(135deg, rgba(14, 6, 32, 0.98), #0e1d2f);
  color: rgba(255, 255, 255, 0.72);
  padding: 30px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(0, 229, 255, 0.08);
  color: #00e5ff;
}

.footer-links a:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
}

@media (max-width: 980px) {

  .hero-grid,
  .portfolio-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .header-inner {
    position: relative;
    min-height: 70px;
    gap: 0;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .mobile-toggle {
    display: block;
    flex: 0 0 46px;
    margin-left: auto;
  }

  .header-inner>nav {
    position: static;
    flex: 0 0 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14, 6, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 3px solid var(--text-accent);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    z-index: 1000;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  .dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  /* current page is shown by color on mobile, so hide the underline */
  .nav-link::after,
  .dropdown-toggle::after {
    display: none;
  }

  .nav-link.nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 0;
    pointer-events: auto;
    backdrop-filter: none;
  }

  .dropdown-menu::before,
  .nav-item.has-dropdown::after {
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .grid-3,
  .grid-4,
  .category-grid,
  .featured-project-grid,
  .about-grid,
  .form-grid,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 54px;
  }

  .hero-grid-empty {
    min-height: 340px;
  }

  .hero-frame {
    height: 240px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .dashboard-main {
    inset: 16px 16px 72px 16px;
  }

  .metric-card {
    width: 150px;
    right: 12px;
    bottom: 8px;
    padding: 14px 12px 12px;
  }

  .section {
    padding-bottom: 60px;
  }

  .card-body,
  .service-card,
  .member-card,
  .profile-sidebar,
  .detail-stage .detail-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .member-portrait {
    width: 150px;
    height: 150px;
  }

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

  .project-card .card-image {
    height: 200px;
  }

  .detail-stage .detail-image {
    height: 220px;
  }

  .profile-grid {
    padding: 0;
  }

  .profile-sidebar {
    padding-top: 22px;
  }

  .profile-content {
    padding: 24px 18px 18px;
  }

  .title-row,
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .title-row {
    margin-bottom: 18px;
  }

  .text-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-banner {
    padding-top: 50px;
  }

  .page-banner h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .category-card .card-image,
  .info-card .card-image {
    height: 200px;
  }
}
