/* ==========================================================================
   REYAZ BEIGH — PORTFOLIO & ARCHITECTURAL CASE STUDIES
   Bespoke, Ultra-Premium Light Theme Design System
   ========================================================================== */

/* ---------- Core Light Theme Tokens ---------- */
:root {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-card-active: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-dialog: #ffffff;

  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-glow: rgba(14, 165, 233, 0.3);

  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  --text-invert: #ffffff;

  /* Brand Accents (Tuned for Crisp Light Contrast) */
  --primary: #0284c7; /* Sky 600 */
  --primary-hover: #0369a1; /* Sky 700 */
  --primary-light: #e0f2fe; /* Sky 100 */
  --primary-glow: rgba(2, 132, 199, 0.2);

  --accent-indigo: #6366f1; /* Indigo 500 */
  --accent-indigo-light: #e0e7ff; /* Indigo 100 */
  --accent-indigo-dark: #4338ca; /* Indigo 700 */

  --accent-emerald: #059669; /* Emerald 600 */
  --accent-emerald-light: #d1fae5;
  --accent-emerald-dark: #065f46;

  --accent-amber: #d97706; /* Amber 600 */
  --accent-amber-light: #fef3c7;

  --accent-rose: #e11d48; /* Rose 600 */
  --accent-rose-light: #ffe4e6;

  /* Typography */
  --font-sans:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* Elevation & Shadows */
  --shadow-sm:
    0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:
    0 4px 14px -2px rgba(15, 23, 42, 0.08),
    0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 12px 30px -4px rgba(15, 23, 42, 0.1),
    0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl:
    0 24px 50px -8px rgba(15, 23, 42, 0.14),
    0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --shadow-card:
    0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 0 0 1px var(--border-subtle);
  --shadow-card-hover:
    0 20px 40px -10px rgba(2, 132, 199, 0.14), 0 0 0 1px rgba(2, 132, 199, 0.35);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 160ms var(--ease-smooth);
  --transition-normal: 260ms var(--ease-smooth);
  --transition-spring: 420ms var(--ease-spring);

  --max-w: 1240px;
  --header-h: 76px;
}

/* ---------- Global Reset & Light Ambience ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(99, 102, 241, 0.07),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 90% 20%,
      rgba(2, 132, 199, 0.06),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 30% at 10% 70%,
      rgba(16, 185, 129, 0.05),
      transparent 60%
    );
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background: var(--primary-light);
  color: var(--primary-hover);
}

/* ---------- Typography & Utility Classes ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Gradient Text for Light Theme */
.gradient-text {
  background: linear-gradient(135deg, #0f172a 15%, #0284c7 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyan-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-pill.indigo {
  background: var(--accent-indigo-light);
  color: var(--accent-indigo-dark);
  border-color: rgba(99, 102, 241, 0.3);
}

.badge-pill.emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-pill.amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border-color: rgba(217, 119, 6, 0.3);
}

/* Dot Pulse */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: pulseLight 2s infinite ease-in-out;
}

@keyframes pulseLight {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(5, 150, 105, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

/* Glass & Card Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.glass-panel:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(2, 132, 199, 0.3);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span.current {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition:
    background var(--transition-normal),
    box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
  background: #ffffff;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.brand-title {
  font-size: 0.75rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-indigo));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-emerald-dark);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .status-badge {
    display: inline-flex;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

/* ---------- Hero Section (Home) ---------- */
.hero-section {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 64px;
  }
}

.hero-tagline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--accent-indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero-tagline-wrap span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-indigo-dark);
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.role-chip strong {
  color: var(--text-primary);
}

/* Hero Portrait Card */
.hero-portrait-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-glow-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(2, 132, 199, 0.18) 0%,
    rgba(99, 102, 241, 0.12) 50%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: 1;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  padding: 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.3),
    rgba(99, 102, 241, 0.3),
    rgba(255, 255, 255, 0.8)
  );
  box-shadow: var(--shadow-xl);
}

.hero-avatar {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

/* Floating Badges */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatAnim 6s ease-in-out infinite;
}

.float-card.top-right {
  top: 10px;
  right: -20px;
  animation-delay: 0s;
}

.float-card.bottom-left {
  bottom: 15px;
  left: -25px;
  animation-delay: -3s;
}

.float-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.float-icon.cyan-bg {
  background: var(--primary-light);
  color: var(--primary);
}

.float-icon.violet-bg {
  background: var(--accent-indigo-light);
  color: var(--accent-indigo-dark);
}

.float-content h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.float-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

@keyframes floatAnim {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 640px) {
  .float-card.top-right {
    right: 0;
    top: -10px;
  }
  .float-card.bottom-left {
    left: 0;
    bottom: -10px;
  }
  .hero-avatar {
    width: 210px;
    height: 210px;
  }
}

/* ---------- Metrics Impact Strip ---------- */
.metrics-strip {
  position: relative;
  margin-top: 36px;
  padding: 34px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

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

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  text-align: center;
  padding: 10px 16px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
  display: none;
}

@media (min-width: 768px) {
  .metric-item:not(:last-child)::after {
    display: block;
  }
}

.metric-value {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-trend {
  font-size: 0.71875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-emerald-dark);
  background: var(--accent-emerald-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

/* ---------- Section Common Header ---------- */
.section-wrapper {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Filter & Search Bar ---------- */
.showcase-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}

.search-box-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  font-size: 0.9375rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* ---------- Projects Grid & Cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-spring);
}

.project-card:hover .card-media img {
  transform: scale(1.05);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(15, 23, 42, 0.45) 100%
  );
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.project-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.project-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-indigo-dark);
  margin-bottom: 12px;
}

.project-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-metrics-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

.metric-mini-item {
  display: flex;
  flex-direction: column;
}

.metric-mini-val {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary);
}

.metric-mini-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tech-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: #334155;
  border: 1px solid var(--border-medium);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-open-case {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--primary-hover);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-open-case:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-icon-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ---------- Architecture Principles Section ---------- */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .arch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.arch-card {
  position: relative;
  overflow: hidden;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.arch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: all var(--transition-normal);
}

.arch-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px -6px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(2, 132, 199, 0.25);
}

.arch-card:hover::before {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent-indigo) 100%
  );
}

.arch-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform var(--transition-normal);
}

.arch-card:hover .arch-icon-wrap {
  transform: scale(1.08);
}

.arch-icon-wrap.cyan {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.arch-icon-wrap.violet {
  background: var(--accent-indigo-light);
  color: var(--accent-indigo-dark);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.arch-icon-wrap.emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.arch-icon-wrap.amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.arch-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.arch-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.arch-list li {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-list li::before {
  content: "▸";
  color: var(--primary);
  font-weight: bold;
}

/* ---------- About & Leadership Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.about-text-col h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.about-text-col p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.leadership-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border-medium);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-item.violet::before {
  background: var(--accent-indigo);
  box-shadow: 0 0 0 4px var(--accent-indigo-light);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.timeline-item.violet .timeline-date {
  color: var(--accent-indigo-dark);
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.timeline-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Enhanced Credentials & Industry Distinctions ---------- */
.credentials-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cred-card {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.cred-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px -4px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(2, 132, 199, 0.25);
}

.cred-card.academic {
  border-left-color: #0284c7;
}
.cred-card.academic:hover {
  box-shadow: 0 14px 32px -4px rgba(2, 132, 199, 0.16);
}

.cred-card.un {
  border-left-color: #6366f1;
}
.cred-card.un:hover {
  box-shadow: 0 14px 32px -4px rgba(99, 102, 241, 0.16);
}

.cred-card.amazon {
  border-left-color: #d97706;
}
.cred-card.amazon:hover {
  box-shadow: 0 14px 32px -4px rgba(217, 119, 6, 0.16);
}

.cred-card.enterprise {
  border-left-color: #059669;
}
.cred-card.enterprise:hover {
  box-shadow: 0 14px 32px -4px rgba(5, 150, 105, 0.16);
}

.cred-icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.cred-card.academic .cred-icon-box {
  background: #e0f2fe;
  color: #0284c7;
}
.cred-card.un .cred-icon-box {
  background: #e0e7ff;
  color: #4f46e5;
}
.cred-card.amazon .cred-icon-box {
  background: #fef3c7;
  color: #d97706;
}
.cred-card.enterprise .cred-icon-box {
  background: #d1fae5;
  color: #059669;
}

.cred-content {
  flex: 1;
}

.cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.cred-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.cred-badge.sky {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.3);
}
.cred-badge.indigo {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.cred-badge.amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.3);
}
.cred-badge.emerald {
  background: #d1fae5;
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.cred-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cred-tag {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  padding: 2px 8px;
  border-radius: 5px;
  transition: all var(--transition-fast);
}

.cred-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #ffffff;
}

/* Executive Snapshot Stat Cards on About Section */
.exec-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}

.exec-stat-pill {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.exec-stat-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 16px -2px rgba(2, 132, 199, 0.12);
  transform: translateY(-2px);
}

.exec-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  line-height: 1.2;
}

.exec-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* ---------- Contact Section & Form ---------- */
.contact-section {
  position: relative;
  padding: 80px 0;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  background: #ffffff;
  box-shadow: var(--shadow-xl);
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--primary-hover);
  font-weight: 700;
  margin-bottom: 22px;
}

.contact-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 34px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.contact-btn.primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.contact-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.contact-btn.secondary {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.contact-btn.secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.contact-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-meta-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contact Page Form */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1.35fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.form-message-container {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  transition: all var(--transition-fast);
}

/* ---------- Detail Page Specifics (Executive Case Study UI) ---------- */
.case-study-hero {
  padding: 48px 0 60px;
  position: relative;
}

.case-study-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 520px;
  background: radial-gradient(
    ellipse 70% 360px at 50% 0%,
    rgba(2, 132, 199, 0.09),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.case-study-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs Pill */
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.breadcrumbs .crumb-sep {
  color: var(--border-medium);
  font-size: 0.75rem;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 700;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Case Study Title & Eyebrow Header */
.case-study-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.case-study-id-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.case-study-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald-dark);
  background: var(--accent-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.case-study-title {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #0f172a 20%, #1e293b 60%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.case-study-subtitle {
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 860px;
}

/* Hero Quick Actions Bar */
.hero-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: #ffffff;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all var(--transition-fast);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.38);
  color: #ffffff;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.hero-btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
}

/* Executive Specs Bar */
.detail-specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 30px -10px rgba(15, 23, 42, 0.07),
    0 2px 6px -1px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(16px);
  margin-bottom: 44px;
  overflow: hidden;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  border-right: 1px solid rgba(226, 232, 240, 0.7);
  transition: background var(--transition-fast);
}

.spec-item:last-child {
  border-right: none;
}

.spec-item:hover {
  background: rgba(248, 250, 252, 0.9);
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.spec-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Studio Browser Mockup Frame */
.browser-mockup-frame,
.detail-banner-img {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow:
    0 25px 60px -15px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(226, 232, 240, 0.9);
  overflow: hidden;
  margin-bottom: 56px;
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.browser-mockup-frame:hover,
.detail-banner-img:hover {
  box-shadow:
    0 30px 70px -12px rgba(2, 132, 199, 0.16),
    0 0 0 1px rgba(2, 132, 199, 0.3);
}

.browser-chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--border-medium);
  gap: 16px;
}

.browser-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

.browser-dot.dot-red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}
.browser-dot.dot-yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}
.browser-dot.dot-green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.browser-address-bar {
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-address-bar .lock-icon {
  color: #059669;
  flex-shrink: 0;
}

.browser-address-bar .url-protocol {
  color: var(--text-muted);
}

.browser-address-bar .url-host {
  color: var(--text-primary);
  font-weight: 700;
}

.browser-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.browser-viewport {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: block;
}

.browser-viewport img,
.detail-banner-img img {
  width: 100%;
  height: auto;
  max-height: 740px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

/* Fallback macOS Chrome for detail-banner-img without .browser-mockup-frame wrapper */
.detail-banner-img:not(.browser-mockup-frame)::before {
  content: "";
  display: block;
  height: 38px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--border-medium);
  background-image:
    radial-gradient(circle 5.5px at 18px 19px, #ff5f56 100%, transparent 100%),
    radial-gradient(circle 5.5px at 34px 19px, #ffbd2e 100%, transparent 100%),
    radial-gradient(circle 5.5px at 50px 19px, #27c93f 100%, transparent 100%);
}

/* Two-Column Executive Case Study Layout */
.case-study-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.case-study-main-col {
  min-width: 0;
}

/* Executive Sticky Sidebar */
.case-study-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.05);
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-widget-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-nav-link .nav-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modern Card Sections */
.case-study-card-section,
.prose-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.case-study-card-section:hover,
.prose-section:hover {
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
}

.case-study-card-section::before,
.prose-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--accent-indigo) 100%
  );
  opacity: 0.85;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.case-study-card-section h3,
.prose-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prose-section p,
.case-study-card-section p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.prose-section p:last-child,
.case-study-card-section p:last-child {
  margin-bottom: 0;
}

/* System Architecture Blueprint Callout */
.detail-callout {
  position: relative;
  padding: 24px 28px;
  background: var(--bg-subtle);
  border-left: 4px solid #38bdf8;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0 12px;
  /* box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.25); */
  font-size: 0.9375rem;
  line-height: 1.7;
}

.detail-callout strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* 2-Column Engineering Highlights Grid */
.detail-highlights-list,
.detail-highlights-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
}

.detail-highlights-list li,
.highlight-item-card {
  font-size: 0.9375rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.6;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.detail-highlights-list li:hover,
.highlight-item-card:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 6px 18px -3px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.detail-highlights-list li::before,
.highlight-icon-circle {
  content: "✓";
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Verified Production Metrics Cards */
.detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}

.case-study-main-col .detail-metrics-grid {
  grid-template-columns: repeat(2, 1fr);
}

.detail-metric-card {
  position: relative;
  padding: 24px 18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.detail-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent-indigo) 100%
  );
  opacity: 0.85;
}

.detail-metric-card:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 12px 24px -4px rgba(2, 132, 199, 0.12);
  transform: translateY(-3px);
}

.detail-metric-val {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.detail-metric-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Executive Production CTA Banner */
.detail-cta-card {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin: 48px 0;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

.detail-cta-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.16) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.detail-cta-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.detail-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.detail-cta-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.detail-cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cta-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-cta-launch:hover {
  background: #f0f9ff;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-cta-advisory {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-cta-advisory:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Adjacent Case Studies Navigation Strip */
.page-nav-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 56px;
}

.nav-card-link {
  display: flex;
  flex-direction: column;
  padding: 16px 22px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-card-link:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px -4px rgba(2, 132, 199, 0.14);
  transform: translateY(-2px);
}

.nav-card-link.next-link {
  text-align: right;
}

.nav-card-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.nav-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav-card-link:hover .nav-card-title {
  color: var(--primary);
}

.nav-card-center {
  text-align: center;
}

/* Responsive Rules for Detail Pages */
@media (max-width: 1024px) {
  .case-study-grid-layout {
    grid-template-columns: 1fr;
  }
  .case-study-sidebar {
    position: static;
    margin-top: 24px;
  }
  .detail-specs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-item:nth-child(2) {
    border-right: none;
  }
  .spec-item:nth-child(1),
  .spec-item:nth-child(2) {
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  }
  .detail-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }
  .detail-cta-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .btn-cta-launch,
  .btn-cta-advisory {
    flex: 1;
    min-width: 200px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .detail-specs-bar {
    grid-template-columns: 1fr;
  }
  .spec-item {
    border-right: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  }
  .spec-item:last-child {
    border-bottom: none;
  }
  .detail-highlights-list,
  .detail-highlights-grid {
    grid-template-columns: 1fr;
  }
  .page-nav-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nav-card-link.next-link {
    text-align: left;
  }
  .detail-cta-actions {
    flex-direction: column;
  }
  .btn-cta-launch,
  .btn-cta-advisory {
    width: 100%;
  }
  .breadcrumbs .current {
    max-width: 160px;
  }
}

@media (max-width: 560px) {
  .case-study-main-col .detail-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .browser-actions {
    display: none;
  }
  .browser-address-bar {
    max-width: 100%;
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  .hero-quick-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-quick-actions .btn,
  .hero-quick-actions .btn-live-verified {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Site Footer ---------- */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
  }
}

.footer-socials {
  display: flex;
  gap: 18px;
}

.social-link {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   NATIVE CASE STUDY MODAL (<dialog>) — LIGHT THEME SPEC
   ========================================================================== */
dialog#case-study-dialog {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 960px;
  width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 80px rgba(15, 23, 42, 0.25),
    0 0 0 1px var(--border-medium);
  overflow: hidden;
  overscroll-behavior: contain;
  transition:
    opacity 280ms var(--ease-spring),
    transform 280ms var(--ease-spring),
    display 280ms allow-discrete,
    overlay 280ms allow-discrete;
  opacity: 0;
  transform: scale(0.96) translateY(12px);
}

dialog#case-study-dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog#case-study-dialog[open] {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
}

dialog#case-study-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition:
    opacity 280ms var(--ease-smooth),
    display 280ms allow-discrete,
    overlay 280ms allow-discrete;
}

dialog#case-study-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog#case-study-dialog[open]::backdrop {
    opacity: 0;
  }
}

.modal-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  max-height: 88vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-rose-light);
  color: var(--accent-rose);
  border-color: rgba(225, 29, 72, 0.4);
}

.modal-body {
  padding: 32px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #ffffff;
}

.modal-hero-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 360px;
  border: 1px solid var(--border-subtle);
}

.modal-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.detail-col {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.modal-prose {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-highlights-list li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.modal-highlights-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: bold;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.modal-metric-card {
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.modal-metric-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.modal-metric-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.modal-arch-callout {
  padding: 20px;
  background: var(--accent-indigo-light);
  border-left: 3px solid var(--accent-indigo);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

.modal-footer {
  padding: 20px 28px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 90px 24px 32px;
  transform: translateX(100%);
  transition: transform var(--transition-spring);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}

.mobile-nav-links a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-actions .btn-primary {
    display: none;
  }
}
