
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  max-width: 100%;
  min-width: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

section {
  width: 100%;
  overflow: hidden;
}

.container {
  width: min(92vw, 1400px);
  padding-inline: clamp(16px, 4vw, 48px);
  margin-inline: auto;
}
/* ═══════════════════════════════════════════════════════════
   ENLIL.SOLUTIONS — Premium Enterprise Design System
   Aesthetic: Refined Dark · Controlled Depth · Executive Motion
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Brand Colors ──────────────────────────── */
  --color-indigo-deep:    #080a0f;
  --color-indigo:         #0d1017;
  --color-indigo-light:   #111520;
  --color-violet:         #7c3aed;
  --color-violet-muted:   #6d28d9;
  --color-violet-light:   #a78bfa;
  --color-gold:           #b8860b;
  --color-gold-light:     #d4a017;

  /* ── Neutral Scale ─────────────────────────── */
  --color-white:          #ffffff;
  --color-white-70:       rgba(255, 255, 255, 0.7);
  --color-white-40:       rgba(255, 255, 255, 0.4);
  --color-white-10:       rgba(255, 255, 255, 0.1);

  /* ── Typography ────────────────────────────── */
  --font-primary:         'Inter', sans-serif;
  --font-arabic:          'Cairo', sans-serif;

  /* ── Spacing Scale (8px base) ──────────────── */
  --space-1:   8px;
  --space-2:   16px;
  --space-3:   24px;
  --space-4:   32px;
  --space-6:   48px;
  --space-8:   64px;
  --space-12:  96px;
  --space-16:  128px;

  /* ── Z-Index Scale ─────────────────────────── */
  --z-atmosphere:   0;
  --z-identity:     10;
  --z-content:      20;
  --z-nav:          900;
  --z-overlay:      950;
  --z-modal:        1000;

  /* Legacy Core Palette Mapping */
  --bg:           var(--color-indigo-deep);
  --bg-2:         var(--color-indigo);
  --bg-3:         var(--color-indigo-light);
  --bg-card:      rgba(255,255,255,0.03);
  --bg-card-h:    rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(255,255,255,0.12);

  /* Legacy Brand Mapping */
  --accent:       var(--color-violet);
  --accent-light: var(--color-violet-light);
  --accent-glow:  rgba(124,58,237,0.15);
  --accent-mid:   var(--color-violet-muted);

  /* Legacy Text Mapping */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-faint:     #334155;

  /* Legacy Status Mapping */
  --green:  #10b981;
  --amber:  #f59e0b;
  --red:    #ef4444;
  --blue:   #3b82f6;

  /* Spacing */
  --nav-height: 70px;
  
  --section-gap: 7rem;

  /* Motion — "expensive and controlled" */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-std:  cubic-bezier(0.37, 0, 0.63, 1);
  --dur-fast:  180ms;
  --dur-med:   320ms;
  --dur-slow:  520ms;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Image Safety ─────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Arabic override */
[lang="ar"] body { font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif; }
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .hero-headline,
[dir="rtl"] .section-title {
  letter-spacing: 0;
}

/* Selection */
::selection { background: rgba(124,58,237,0.3); color: var(--text-primary); }

/* Links */
a { color: var(--accent-light); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--text-primary); }

/* Headings use Syne for a distinguished editorial feel */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.015em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 99px; }

/* ── Ambient Background ────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-atmosphere);
  pointer-events: none;
  opacity: 0.45;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  animation-delay: -10s;
  animation-duration: 25s;
}

@keyframes orb-drift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-40px) scale(1.05); }
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: rgba(8,10,15,0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

#navbar.scrolled {
  border-bottom-color: var(--border-h);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

/* Navbar inner layout — scoped to #navbar so the generic page-section
   .container { display: grid } rule below cannot override it. */
#navbar .container {
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  gap: 2rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 32px;
  height: 32px;
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-dot {
  color: var(--text-muted);
  font-weight: 400;
}

/* Menu */


.nav-item a {
  display: block;
  padding: 0.4rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.nav-item a:hover, .nav-item.active a {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-cta { margin-inline-start: 0.5rem; }

.btn-nav {
  font-size: 0.875rem;
  padding: 0.45rem 1.1rem;
}

.lang-switcher {
  background: none;
  border: 1px solid var(--border-h);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Cairo', sans-serif;
  transition: all var(--dur-fast) var(--ease-out);
}

.lang-switcher:hover {
  color: var(--text-primary);
  border-color: var(--accent-light);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 910;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 99px;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Status Bar ───────────────────────────────────────────── */
.status-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 800;
  height: 30px;
  overflow: hidden;
  background: rgba(124,58,237,0.06);
  border-bottom: 1px solid rgba(124,58,237,0.12);
}

.status-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
  height: 100%;
  padding: 0 2rem;
  animation: status-scroll 40s linear infinite;
}

.status-node {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.7;
}

.status-divider { color: var(--text-faint); }

@keyframes status-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Page Container ───────────────────────────────────────── */
#page-container {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + 30px);
  min-height: 100dvh;
}

/* ── Page Views (SPA Routing) ─────────────────────────────── */
.page-view {
  display: none;
  padding: 5rem var(--page-pad);
  
  margin: 0 auto;
  animation: page-enter var(--dur-slow) var(--ease-out) both;
}

.page-view.active-view {
  display: block;
}

@keyframes page-enter {
  from { opacity: 0;  }
  to   { opacity: 1;  }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  min-height: 44px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--dur-med) var(--ease-out);
  letter-spacing: 0.01em;
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}

.btn-primary {
  background: var(--accent);
  color: var(--color-white);
  box-shadow: 0 0 0 0 rgba(124,58,237,0);
}

.btn-primary:hover {
  background: var(--color-violet-muted);
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
  
}

.btn-primary:active {  }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-h);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-light);
  background: rgba(124,58,237,0.06);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section-title {
  
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Hero ─────────────────────────────────────────────────── */




.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero-headline {
  
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.hl-word {
  display: block;
}
.hl-word.w2 {
  margin-inline-start: 1em;
}
.hl-word.w3 {
  margin-inline-start: 2em;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-body {
  
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 520px;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual — Large ES mark */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  order: 1;
  min-height: 400px;
}

.hero-logo-display {
  width: 100%;
  max-width: 320px;
}

.hero-logo-display svg {
  width: 100%;
  height: auto;
}

/* ── Pillars ──────────────────────────────────────────────── */
.pillars-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

.pillars-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pillars-grid {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.pillar-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1rem 0;
  color: var(--text-secondary);
  transition: color var(--dur-med) var(--ease-out);
}

.pillar-item:hover { color: var(--text-primary); }

.pillar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: 0.7;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}

/* ── Trust Section ────────────────────────────────────────── */
.trust-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--border);
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}

.trust-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
}

.trust-headline {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.trust-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── About ────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 5rem;
  align-items: start;
}

.body-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.body-text strong { color: var(--text-primary); }

.credentials-block {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credential-item {
  padding-inline-start: 1rem;
  border-left: 2px solid var(--accent);
}

.credential-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.credential-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Founder */
.founder-col { position: sticky; top: calc(var(--nav-height) + 30px + 2rem); }

.founder-card {
  background: linear-gradient(145deg, rgba(124,58,237,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(124,58,237,0.08);
  transition: box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.founder-card:hover {
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(124,58,237,0.18);
  
}

.founder-image-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}

/* Subtle warm-to-dark gradient vignette at bottom — blends photo into the card info */
.founder-image-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13,16,23,0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}



.founder-card:hover 

.founder-info {
  padding: 1.75rem 1.75rem 1.75rem;
  position: relative;
  z-index: 2;
}

.founder-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.founder-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Small accent dot before role title */
.founder-role::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.founder-quote {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  position: relative;
}

/* Typographic left-quote mark */
.founder-quote::before {
  content: '\201C';
  font-size: 2.5rem;
  line-height: 0;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 1.5rem;
  left: -0.25rem;
  font-style: normal;
  font-family: 'Syne', sans-serif;
}

/* ── Services ─────────────────────────────────────────────── */
.services-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.srv-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--dur-fast) var(--ease-out);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.srv-tab:hover { color: var(--text-secondary); }

.srv-tab.active-tab {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
  background: rgba(124,58,237,0.04);
}

.srv-panel { display: none; }
.srv-panel.active-panel { display: block; animation: page-enter var(--dur-med) var(--ease-out); }

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.srv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  cursor: default;
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.srv-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  
}

.srv-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(124,58,237,0.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.srv-card-icon svg { width: 20px; height: 20px; }

.srv-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.srv-card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Packages ─────────────────────────────────────────────── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  cursor: pointer;
  position: relative;
  transition: all var(--dur-med) var(--ease-out);
}

.package-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.package-card-featured {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.05);
}

.package-card-featured:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 16px 40px rgba(124,58,237,0.15);
}

.pkg-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.pkg-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pkg-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-med);
}

.package-card:hover .pkg-arrow {
  transform: translateX(4px);
  color: var(--accent-light);
}

.pkg-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pkg-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pkg-features li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding-inline-start: 1rem;
  position: relative;
}

.pkg-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Estimator ────────────────────────────────────────────── */
.estimator-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.estimator-form-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.est-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.est-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.est-btn {
  background: none;
  border: 1px solid var(--border-h);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.est-btn:hover { border-color: var(--accent); color: var(--text-primary); }

.est-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-white);
}

.est-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border-h);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.est-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.est-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.est-range-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: 1rem; text-align: center; }

.est-range-labels span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.estimator-output-panel {
  padding: 2.5rem;
  background: var(--bg-3);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.est-output-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.est-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.est-out-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
}

.est-out-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.est-out-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.accent-val { color: var(--accent-light); }

.est-out-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
}

.est-out-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 0.4rem;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all var(--dur-med) var(--ease-out);
}

.project-card:hover {
  border-color: var(--border-h);
  
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.proj-discipline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.proj-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.proj-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.proj-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Architecture flow */
.proj-arch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.arch-step {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}

.arch-blue   { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.arch-purple { background: rgba(124,58,237,0.12); color: var(--accent-light); border: 1px solid rgba(124,58,237,0.2); }
.arch-emerald{ background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }

.arch-arrow { color: var(--text-faint); font-size: 0.9rem; }

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-sm);
}

/* ── Academy ──────────────────────────────────────────────── */
.academy-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: start;
}

.academy-articles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intel-alert-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color var(--dur-med);
}

.intel-alert-card:hover { border-color: rgba(124,58,237,0.4); }

.intel-badge {
  display: inline-block;
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateX(4px);
}

.article-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
}

.article-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.article-meta { display: flex; align-items: center; justify-content: flex-end; }

.article-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: gap var(--dur-fast);
}

/* Sidebar */
.academy-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: calc(var(--nav-height) + 60px); }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.sidebar-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.sidebar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-list { display: flex; flex-direction: column; gap: 0.75rem; }

.course-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.course-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
  flex-shrink: 0;
}

.course-status.available { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.course-status.upcoming  { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }

.cipher-card { background: rgba(124,58,237,0.04); border-color: rgba(124,58,237,0.15); }

/* ── Contact ──────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 5rem;
  align-items: start;
}

.contact-detail-group { margin-bottom: 2rem; }

.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-detail-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.contact-sla {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  margin-top: 2rem;
}

.contact-sla p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-secure-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.form-secure-badge svg { width: 14px; height: 14px; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.field-input {
  background: var(--bg-3);
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
  width: 100%;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.field-input::placeholder { color: var(--text-faint); }

.field-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

.field-select option { background: var(--bg-2); color: var(--text-primary); }

textarea.field-input { resize: vertical; min-height: 120px; }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.form-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-status.success { color: var(--green); }
.form-status.error   { color: var(--red); }

/* ── AI Assistant ──────────────────────────────────────────── */


#ai-trigger svg { width: 18px; height: 18px; }

#ai-trigger:hover {
  
  box-shadow: 0 8px 32px rgba(124,58,237,0.45);
}

.ai-trigger-label { font-size: 0.82rem; }

#ai-panel { width: min(92vw, 420px); right: max(env(safe-area-inset-right), 16px); left: auto; }

#ai-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.ai-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ai-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  display: flex;
}

.ai-close svg { width: 16px; height: 16px; }
.ai-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.ai-msg {
  max-width: 88%;
  padding: 0.7rem 1rem;
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  line-height: 1.55;
  animation: msg-in var(--dur-med) var(--ease-out) both;
}

@keyframes msg-in {
  from { opacity: 0;  }
  to   { opacity: 1;  }
}

.ai-msg-bot {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: var(--r-sm);
}

.ai-msg-user {
  background: var(--accent);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: var(--r-sm);
}

.ai-msg-sender {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.ai-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-2);
}

.ai-input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color var(--dur-fast);
}

.ai-input:focus { border-color: var(--accent); }
.ai-input::placeholder { color: var(--text-faint); }

.ai-send {
  background: var(--accent);
  border: none;
  color: var(--color-white);
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}

.ai-send svg { width: 16px; height: 16px; }
.ai-send:hover { background: var(--accent-mid); }

/* ── Footer ────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 5rem;
}

.container {
  
  margin: 0 auto;
  padding: 4rem var(--page-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-logo svg { width: 28px; height: 28px; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}



.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-nav-group a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.footer-nav-group a:hover { color: var(--text-primary); }

.footer-bottom {
  
  margin: 0 auto;
  padding: 1.5rem var(--page-pad);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#copyright-text {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.social-link:hover { color: var(--text-primary); }

/* ── Utility ───────────────────────────────────────────────── */
.est-group { display: flex; flex-direction: column; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1400px) {
  /* Safe scaling for 1400px */
}

@media (max-width: 992px) {
  .about-layout { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .founder-col { position: static; max-width: 400px; }
  .contact-layout { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
  .container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
  
  .academy-layout { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .academy-sidebar { position: static; }
  .estimator-layout { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .estimator-output-panel { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 992px) {
  .hero-visual { max-width: 350px; margin-inline: auto; min-height: 280px; }
}

@media (max-width: 768px) {
  /* Phase A: Hero Rebuild */
  
  .hero-visual { max-width: 180px; margin-inline: auto; min-height: auto; }
  
  .hero-identity { width: 100%; display: flex; justify-content: center; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  
  /* Phase B: Navigation Drawer */
  
  .nav-menu.mobile-open { display: flex; }
  .nav-overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 890; 
    backdrop-filter: blur(4px);
  }
  .nav-overlay.mobile-open { display: block; }
  body.menu-open { overflow: hidden; }
  .nav-item a { padding: 0.75rem 0; font-size: 1.1rem; }
  .menu-toggle { display: flex; z-index: 950; }
  
  /* Phase C: Status Bar */
  .status-bar { display: none; }
  
  /* Phase D: Footer */
  .container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: center; }
  .footer-contact { align-items: center; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  /* Phase E: AI Button Safety */
  
  #ai-trigger:hover { transform: scale(0.85) translateY(-2px); }
  
  .pillars-grid { flex-direction: column; gap: 0.5rem; }
  .packages-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  #ai-panel { width: min(92vw, 420px); right: max(env(safe-area-inset-right), 16px); left: auto; }
  .trust-section { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .section-title { font-size: 1.75rem; }
  .services-tabs { gap: 0.1rem; }
  .srv-tab { font-size: 0.78rem; padding: 0.6rem 0.75rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}





/* ── Identity Mount Points ─────────────────────────── */
.identity-mount-point {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#nav-identity {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
}

#footer-identity {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-shrink: 0;
}



#hero-identity svg {
  width: 100%;
  height: auto;
  max-width: 480px;
  filter: drop-shadow(0 0 40px rgba(124, 62, 237, 0.3));
  animation: phoenix-arrive 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes phoenix-arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#nav-identity svg {
  width: 32px;
  height: 32px;
  transition: opacity 0.2s ease;
}

#nav-identity:hover svg {
  opacity: 0.8;
}

#footer-identity svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}



/* ── Deep Atmospheric Lighting (The Presence) ───────────── */


@keyframes atmosphere-wake {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
}

@keyframes atmosphere-breathe {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}



/* ── Reduced motion ───────────────────────────────────────── */
/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  
}

/* ═══════════════════════════════════════════════════════════
   CORE TEAM SECTION
   Aesthetic: Professional · Authentic · Human + Technical
   ═══════════════════════════════════════════════════════════ */

.team-section {
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border);
}

.team-header {
  margin-bottom: 3rem;
}

.team-title {
  text-align: left;
  
  margin-top: 0.75rem;
}

/* ── Team grid — horizontal card layout ─────────────────── */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Team card — horizontal split ────────────────────────── */
.team-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.team-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.08);
  
}

/* ── Photo column ─────────────────────────────────────────── */
.team-photo-col {
  position: relative;
  overflow: hidden;
}

.team-photo-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}

/* Bottom-right vignette — blends photo into dark card naturally */
.team-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 55%, rgba(13,16,23,0.6) 100%),
    linear-gradient(to top, rgba(13,16,23,0.4) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop to show face + context (monitors visible in background) */
  object-position: center 15%;
  display: block;
  /* Subtle cooldown to match dark site palette */
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
  transition: filter var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.team-card:hover .team-photo {
  filter: saturate(0.95) contrast(1.02) brightness(1.0);
  transform: scale(1.02);
}

/* ── Info column ──────────────────────────────────────────── */
.team-info-col {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-left: 1px solid var(--border);
}

/* Discipline tags — show dual expertise clearly */
.team-discipline-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.team-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}

.team-tag-design {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}

.team-tag-security {
  background: rgba(124,58,237,0.12);
  color: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.2);
}

/* Name */
.team-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

/* Role line */
.team-roles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.team-role-primary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.team-role-separator {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.team-role-secondary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Statement quote */
.team-statement {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
  font-style: italic;
  padding: 1rem 1.25rem;
  background: rgba(124,58,237,0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 0.25rem 0;
}

/* Expertise list */
.team-expertise {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.expertise-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.expertise-dot-design   { background: #60a5fa; }
.expertise-dot-security { background: var(--accent-light); }

.expertise-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .team-card {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .team-photo-frame {
    min-height: 280px;
    max-height: 340px;
  }

  /* On mobile, vignette only at bottom */
  .team-photo-frame::after {
    background: linear-gradient(to top, rgba(13,16,23,0.5) 0%, transparent 50%);
  }

  .team-info-col {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .team-info-col { padding: 1.5rem; }
  .team-name { font-size: 1.2rem; }
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {  }


/* ── Phoenix Logo Rules ──────────────────────────── */
#hero-identity svg image,
#nav-identity svg image,
#footer-identity svg image {
  
}

#hero-identity svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 48px rgba(124, 62, 237, 0.4));
  animation: phoenix-arrive 1.2s ease-out forwards;
  opacity: 0;
}

#nav-identity svg {
  display: block;
  transition: opacity 0.2s ease;
}

#nav-identity:hover svg {
  opacity: 0.75;
}

#footer-identity svg {
  display: block;
  opacity: 0.6;
}

@keyframes phoenix-arrive {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}
/* ── Logo Transparency Fix ─────────────────────────── */
#hero-identity,
#nav-identity,
#footer-identity {
  background: transparent ;
  border: none ;
  box-shadow: none ;
}
#hero-identity svg image,
#nav-identity svg image,
#footer-identity svg image {
  mix-blend-mode: normal;
}
/* ── Hero Identity Atmosphere ──────────────────────── */



/* ================================================= */
/* UNIVERSAL RESPONSIVE ARCHITECTURE                 */
/* ================================================= */

.container {
  width: min(92vw, 1400px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

section {
  width: 100%;
  padding-block: clamp(48px, 8vw, 120px);
}

section > .container {
  display: grid;
  /* Single-column vertical stack for section wrappers. Without this, the
     earlier generic `.container { grid-template-columns: repeat(auto-fit,
     minmax(280px,1fr)) }` rule leaks in and scatters each section's
     header + inner layout blocks across multiple columns. Inner layouts
     (.about-layout, .packages-grid, .estimator-layout, etc.) keep their
     own multi-column grids. The footer is not a <section>, so its
     two-column .container layout is unaffected. */
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px);
}



#hero-identity svg, .hero-visual svg, .footer-logo svg, .nav-brand svg {
  width: clamp(160px, 25vw, 500px);
  height: auto;
}

.hero-headline {
  font-size: clamp(2.5rem, 8vw, 6rem);
}

.hero-body {
  font-size: clamp(1rem, 2vw, 1.2rem);
}


.nav-menu.mobile-open {
  display: flex;
  flex-direction: column;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  z-index: 890;
  display: none;
}
.nav-overlay.mobile-open {
  display: block;
}

.footer-nav-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

html, body {
  overflow-x: hidden;
}

img, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}



.navbar, .footer {
  padding-top: max(env(safe-area-inset-top), 0px);
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
}





.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 5vw, 80px);
  align-items: center;
}
.hero-content {
  width: 100%;
  min-width: 0;
}
.hero-identity {
  justify-self: center;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.founder-img {
  width: 100%;
  max-height: clamp(240px, 55vw, 500px);
  object-fit: cover;
  border-radius: 32px;
}

#ai-trigger {
  position: fixed;
  bottom: max(env(safe-area-inset-bottom), 24px);
  right: max(env(safe-area-inset-right), 18px);
  z-index: 999;
}
body {
  padding-bottom: 120px;
}

.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  overflow-y: auto;
  background: rgba(7, 8, 15, 0.97);
  backdrop-filter: blur(30px);
  z-index: 9999;
  display: none;
}
.nav-menu.mobile-open {
  display: flex;
  flex-direction: column;
}

/* ── Desktop navigation (restored horizontal bar) ──────────────
   Above the mobile breakpoint the nav is a static horizontal row,
   not the fixed mobile drawer. The hamburger stays hidden (it is
   only shown at max-width: 768px). Without this the entire nav menu
   and language switcher are invisible/unreachable on desktop. */
@media (min-width: 769px) {
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
  }
  .nav-menu .nav-item { list-style: none; }
  .menu-toggle { display: none; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  z-index: 890;
  display: none;
  opacity: 0.6;
}
.nav-overlay.mobile-open {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* ================================================= */
/* LIGHT COLUMN EMERGENCY CONTAINMENT                */
/* ================================================= */







/* ================================================= */
/* PHOENIX ATMOSPHERE UNLOCK (SMOOTH HALO MODE)      */
/* ================================================= */

#hero-identity {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
  z-index: 2;
}

#hero-identity::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 60vw, 700px);
  height: clamp(220px, 60vw, 700px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.20) 0%,
    rgba(124, 58, 237, 0.12) 25%,
    rgba(124, 58, 237, 0.06) 45%,
    transparent 75%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: .9;
  will-change: transform, opacity;
}

.bg-glow, .hero-light, .hero-atmosphere, canvas, .particles {
  max-width: 100%;
  width: clamp(220px, 60vw, 700px);
  height: clamp(220px, 60vw, 700px);
  pointer-events: none;
  isolation: isolate;
  transform: none;
  overflow: visible;
}

/* ================================================= */
/* SECTION BLEED / GHOST OVERLAY FIX                 */
/* ================================================= */

section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
}

section > * {
  position: relative;
  z-index: 2;
}

.card, .estimator, .project-card, .service-card {
  position: relative;
  overflow: hidden;
  contain: layout;
}
