/* ============================================================
   CHAKIR SAID — BIM PORTFOLIO | DESIGN SYSTEM
   Premium Engineering Portfolio — Dark Futuristic BIM Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&family=Syne:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --c-bg:        #050810;
  --c-bg-2:      #080d1a;
  --c-bg-card:   #0b1120;
  --c-bg-glass:  rgba(11,17,32,0.75);
  --c-border:    rgba(0,210,255,0.12);
  --c-border-hi: rgba(0,210,255,0.35);

  --c-cyan:      #00d2ff;
  --c-cyan-dim:  rgba(0,210,255,0.15);
  --c-cyan-glow: rgba(0,210,255,0.08);
  --c-cyan-mid:  #00aacc;
  --c-gold:      #ffc94a;
  --c-gold-dim:  rgba(255,201,74,0.12);
  --c-green:     #00ff88;
  --c-green-dim: rgba(0,255,136,0.1);
  --c-red:       #ff4466;

  --c-text:      #e8edf5;
  --c-text-2:    #8a9ab8;
  --c-text-3:    #4a5a78;
  --c-white:     #ffffff;

  /* Gradients */
  --g-cyan:      linear-gradient(135deg, #00d2ff 0%, #0088cc 100%);
  --g-gold:      linear-gradient(135deg, #ffc94a 0%, #e08000 100%);
  --g-hero:      linear-gradient(160deg, #050810 0%, #080d1a 40%, #091220 100%);
  --g-card:      linear-gradient(135deg, rgba(11,17,32,0.9) 0%, rgba(8,13,26,0.95) 100%);

  /* Typography */
  --f-display:   'Syne', sans-serif;
  --f-body:      'Space Grotesk', sans-serif;
  --f-mono:      'JetBrains Mono', monospace;

  /* Scale */
  --t-xs:   0.72rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.35rem;
  --t-xl:   1.65rem;
  --t-2xl:  2.1rem;
  --t-3xl:  2.8rem;
  --t-4xl:  3.8rem;
  --t-5xl:  5rem;

  /* Spacing */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;
  --s-4: 1rem;     --s-6: 1.5rem;   --s-8: 2rem;
  --s-10: 2.5rem;  --s-12: 3rem;    --s-16: 4rem;
  --s-20: 5rem;    --s-24: 6rem;    --s-32: 8rem;

  /* Layout */
  --max-w:    1320px;
  --nav-h:    72px;
  --radius:   12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.64, 0, 0.78, 0);
  --dur-fast:  180ms;
  --dur-mid:   320ms;
  --dur-slow:  600ms;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-cyan-mid); border-radius: 999px; }

/* ── SELECTION ───────────────────────────────────────────── */
::selection { background: rgba(0,210,255,0.25); color: var(--c-white); }

/* ── GRID NOISE TEXTURE ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,210,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,210,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── LOADING SCREEN ──────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: var(--s-4);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
#page-loader.done { opacity: 0; visibility: hidden; }
.loader-logo { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 800; }
.loader-logo span { color: var(--c-cyan); }
.loader-bar {
  width: 200px; height: 2px; background: var(--c-border);
  border-radius: 999px; overflow: hidden;
}
.loader-bar-inner {
  height: 100%; width: 0; background: var(--g-cyan);
  border-radius: 999px;
  animation: loadBar 1.4s var(--ease-out) forwards;
}
@keyframes loadBar { to { width: 100%; } }
.loader-text { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-text-2); letter-spacing: 0.1em; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--s-8);
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(5,8,16,0.95);
  border-color: var(--c-border-hi);
}
.nav-inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--f-display); font-size: var(--t-lg); font-weight: 800;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: var(--s-2);
}
.nav-logo .accent { color: var(--c-cyan); }
.nav-logo .dot { color: var(--c-gold); }
.nav-links {
  display: flex; align-items: center; gap: var(--s-1);
}
.nav-link {
  font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.02em;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm);
  color: var(--c-text-2);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-cyan);
  background: var(--c-cyan-dim);
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--c-cyan);
  border-radius: 999px;
}
.nav-cta {
  font-size: var(--t-sm); font-weight: 600;
  padding: var(--s-2) var(--s-6);
  background: var(--g-cyan);
  color: var(--c-bg);
  border-radius: var(--radius-sm);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: var(--s-2); cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--c-text);
  border-radius: 999px; transition: all var(--dur-mid) var(--ease-out);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 999;
  background: rgba(5,8,16,0.97); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-6);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: var(--t-xl); font-weight: 600;
}

/* ── BREADCRUMBS ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-text-3); margin-bottom: var(--s-8);
}
.breadcrumb a { color: var(--c-text-2); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb .sep { color: var(--c-text-3); }
.breadcrumb .current { color: var(--c-cyan); }

/* ── LAYOUT PRIMITIVES ───────────────────────────────────── */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--s-8);
}
.section {
  padding: var(--s-24) 0;
  position: relative; z-index: 1;
}
.section-sm { padding: var(--s-16) 0; }
.section-lg { padding: var(--s-32) 0; }

.page-top { padding-top: calc(var(--nav-h) + var(--s-16)); }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-cyan); margin-bottom: var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--c-cyan);
}
.section-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(var(--t-2xl), 4vw, var(--t-4xl));
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: var(--s-4);
}
.section-title .hl { color: var(--c-cyan); }
.section-title .hl-gold { color: var(--c-gold); }
.section-desc {
  font-size: var(--t-md); color: var(--c-text-2);
  max-width: 560px; line-height: 1.7;
}
.section-header { margin-bottom: var(--s-16); }
.section-header.centered { text-align: center; }
.section-header.centered .section-eyebrow { justify-content: center; }
.section-header.centered .section-eyebrow::before { display: none; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  position: relative; overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--c-border-hi);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  opacity: 0; transition: opacity var(--dur-mid);
}
.card:hover::before { opacity: 0.6; }

.card-glass {
  background: var(--c-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

/* ── TAGS ────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 0.68rem;
  font-weight: 500; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  background: rgba(0,210,255,0.04);
  white-space: nowrap;
}
.tag.cyan { color: var(--c-cyan); border-color: rgba(0,210,255,0.3); background: rgba(0,210,255,0.08); }
.tag.gold { color: var(--c-gold); border-color: rgba(255,201,74,0.3); background: rgba(255,201,74,0.08); }
.tag.green { color: var(--c-green); border-color: rgba(0,255,136,0.3); background: rgba(0,255,136,0.08); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--t-sm);
  padding: var(--s-3) var(--s-8);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--g-cyan); color: var(--c-bg);
  box-shadow: 0 4px 24px rgba(0,210,255,0.25);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,210,255,0.35); }
.btn-secondary {
  background: transparent; color: var(--c-cyan);
  border: 1px solid var(--c-border-hi);
}
.btn-secondary:hover { background: var(--c-cyan-dim); transform: translateY(-2px); }
.btn-ghost { color: var(--c-text-2); }
.btn-ghost:hover { color: var(--c-cyan); }
.btn-gold { background: var(--g-gold); color: var(--c-bg); }
.btn-gold:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-lg { padding: var(--s-4) var(--s-10); font-size: var(--t-base); }

/* ── PROGRESS BARS ───────────────────────────────────────── */
.skill-bar { margin-bottom: var(--s-4); }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: var(--s-2); }
.skill-bar-name { font-size: var(--t-sm); font-weight: 500; color: var(--c-text); }
.skill-bar-pct { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-cyan); }
.skill-bar-track {
  height: 4px; background: var(--c-border);
  border-radius: 999px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; border-radius: 999px;
  background: var(--g-cyan);
  width: 0; transition: width 1.2s var(--ease-out);
}

/* ── STAT BOXES ──────────────────────────────────────────── */
.stat-box {
  text-align: center; padding: var(--s-6);
}
.stat-box .number {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(var(--t-3xl), 4vw, var(--t-4xl));
  color: var(--c-cyan); line-height: 1;
  margin-bottom: var(--s-2);
}
.stat-box .label {
  font-size: var(--t-sm); color: var(--c-text-2); font-weight: 500;
}

/* ── GRIDS ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-8); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-hi), transparent);
  margin: var(--s-16) 0;
}

/* ── GLOW ORBS (ambient bg) ──────────────────────────────── */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: 0.12; z-index: 0;
}
.orb-cyan { background: var(--c-cyan); }
.orb-gold { background: var(--c-gold); }
.orb-blue { background: #0044ff; }

/* ── SCROLL REVEAL ANIMATIONS ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--dur-mid) var(--ease-out);
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 88vh; }
.lightbox-inner img { max-height: 88vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: -40px; right: 0;
  font-size: var(--t-xl); color: var(--c-text-2); cursor: pointer;
  transition: color var(--dur-fast);
}
.lightbox-close:hover { color: var(--c-cyan); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: var(--t-2xl); color: var(--c-text-2); cursor: pointer;
  transition: color var(--dur-fast);
}
.lightbox-nav:hover { color: var(--c-cyan); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

/* ── GALLERY GRID ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}
.gallery-item {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: var(--s-3); color: var(--c-text-3);
  font-size: var(--t-sm);
}
.gallery-placeholder .icon { font-size: var(--t-3xl); }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-8);
}
.filter-btn {
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text-2);
  background: transparent;
  transition: all var(--dur-fast);
}
.filter-btn:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.filter-btn.active { background: var(--c-cyan); color: var(--c-bg); border-color: var(--c-cyan); }

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-8);
  max-width: 480px;
  transition: border-color var(--dur-fast);
}
.search-bar:focus-within { border-color: var(--c-cyan); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  font: inherit; font-size: var(--t-sm); color: var(--c-text);
}
.search-bar input::placeholder { color: var(--c-text-3); }
.search-icon { color: var(--c-text-3); font-size: var(--t-base); }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: var(--s-8); }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
}
.timeline-item { position: relative; margin-bottom: var(--s-12); }
.timeline-item::before {
  content: ''; position: absolute;
  left: calc(-1 * var(--s-8) - 5px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 16px rgba(0,210,255,0.6);
}
.timeline-date {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-cyan); letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.timeline-title { font-size: var(--t-lg); font-weight: 600; color: var(--c-white); margin-bottom: var(--s-2); }
.timeline-body { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.7; }

/* ── PROJECT CARDS ───────────────────────────────────────── */
.project-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-mid) var(--ease-out);
  display: flex; flex-direction: column;
}
.project-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.project-card-image {
  aspect-ratio: 16/9;
  background: var(--c-bg-card);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-card-image .project-icon {
  font-size: 3rem; color: var(--c-text-3);
}
.project-card-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,16,0.8), transparent);
}
.project-card-body { padding: var(--s-6); flex: 1; display: flex; flex-direction: column; }
.project-card-type {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-cyan); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.project-card-title {
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700;
  color: var(--c-white); margin-bottom: var(--s-3); line-height: 1.2;
}
.project-card-meta {
  display: flex; gap: var(--s-4); margin-bottom: var(--s-4);
  font-size: var(--t-xs); color: var(--c-text-3);
}
.project-card-desc {
  font-size: var(--t-sm); color: var(--c-text-2);
  line-height: 1.65; flex: 1; margin-bottom: var(--s-4);
}
.project-card-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.project-card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); font-weight: 600;
  color: var(--c-cyan); transition: gap var(--dur-fast);
}
.project-card-link:hover { gap: var(--s-3); }

/* ── EXPERIENCE CARDS ────────────────────────────────────── */
.exp-card {
  display: flex; gap: var(--s-8); align-items: flex-start;
}
.exp-card-logo {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 800;
  color: var(--c-cyan);
}
.exp-card-content { flex: 1; }
.exp-card-company {
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700;
  color: var(--c-white); margin-bottom: var(--s-1);
}
.exp-card-role {
  font-size: var(--t-sm); color: var(--c-cyan); font-weight: 500;
  margin-bottom: var(--s-2);
}
.exp-card-period {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-text-3); letter-spacing: 0.06em;
  margin-bottom: var(--s-4);
}
.exp-card-desc { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.7; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-cyan); margin-bottom: var(--s-6);
  display: flex; align-items: center; gap: var(--s-3);
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--c-cyan);
}
.hero-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(var(--t-3xl), 6vw, var(--t-5xl));
  line-height: 1.04; letter-spacing: -0.03em;
  color: var(--c-white); margin-bottom: var(--s-6);
}
.hero-title .name { color: var(--c-cyan); }
.hero-title .gradient-text {
  background: var(--g-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(var(--t-md), 2vw, var(--t-xl));
  color: var(--c-text-2); margin-bottom: var(--s-4);
  font-weight: 400;
}
.hero-desc {
  font-size: var(--t-md); color: var(--c-text-2);
  max-width: 560px; line-height: 1.7; margin-bottom: var(--s-10);
}
.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  margin-top: var(--s-10);
}
.hero-badge {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-text-2); letter-spacing: 0.06em;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--c-cyan); border-radius: 50%;
  box-shadow: 0 0 8px var(--c-cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* Hero visual grid */
.hero-visual {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px; z-index: 1;
  opacity: 0.08;
}
.hero-grid-lines {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(var(--c-cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-cyan) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(25deg) rotateZ(-5deg);
  animation: gridFloat 8s ease-in-out infinite;
}
@keyframes gridFloat {
  0%, 100% { transform: perspective(600px) rotateX(25deg) rotateZ(-5deg) translateY(0); }
  50% { transform: perspective(600px) rotateX(25deg) rotateZ(-5deg) translateY(-20px); }
}

/* ── CERT CARD ───────────────────────────────────────────── */
.cert-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: all var(--dur-mid) var(--ease-out);
  position: relative; overflow: hidden;
}
.cert-card:hover {
  border-color: var(--c-gold);
  box-shadow: 0 0 40px rgba(255,201,74,0.1);
  transform: translateY(-4px);
}
.cert-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle at top right, rgba(255,201,74,0.15), transparent);
}
.cert-icon { font-size: 2.5rem; }
.cert-issuer {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--c-gold); letter-spacing: 0.08em;
}
.cert-name { font-size: var(--t-md); font-weight: 600; color: var(--c-white); }
.cert-date { font-size: var(--t-xs); color: var(--c-text-3); }
.cert-badge {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-family: var(--f-mono); font-size: 0.65rem;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,201,74,0.12); color: var(--c-gold);
  border: 1px solid rgba(255,201,74,0.25);
}

/* ── SOFTWARE CARDS ──────────────────────────────────────── */
.software-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: all var(--dur-mid) var(--ease-out);
}
.software-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-4px);
}
.software-icon { font-size: 2.5rem; margin-bottom: var(--s-4); }
.software-name { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: var(--c-white); margin-bottom: var(--s-2); }
.software-level { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-cyan); margin-bottom: var(--s-4); }
.software-desc { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.65; margin-bottom: var(--s-4); }

/* ── WORKFLOW STEPS ──────────────────────────────────────── */
.workflow-step {
  display: flex; gap: var(--s-6); align-items: flex-start;
  padding: var(--s-6);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-mid);
  cursor: pointer;
}
.workflow-step:hover, .workflow-step.active {
  border-color: var(--c-cyan);
  background: rgba(0,210,255,0.04);
}
.workflow-step-num {
  font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 800;
  color: var(--c-cyan); opacity: 0.2; line-height: 1;
  min-width: 48px;
}
.workflow-step.active .workflow-step-num { opacity: 1; }
.workflow-step-icon { font-size: 2rem; }
.workflow-step-content { flex: 1; }
.workflow-step-title { font-size: var(--t-md); font-weight: 600; color: var(--c-white); margin-bottom: var(--s-2); }
.workflow-step-desc { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.65; }

/* ── CONTACT FORM ────────────────────────────────────────── */
.form-group { margin-bottom: var(--s-6); }
.form-label {
  display: block; font-size: var(--t-sm); font-weight: 500;
  color: var(--c-text-2); margin-bottom: var(--s-2);
  letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: var(--s-4);
  font: inherit; font-size: var(--t-sm);
  color: var(--c-text);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  resize: vertical;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0,210,255,0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-text-3); }
.form-textarea { min-height: 140px; }

/* ── CONTACT INFO ────────────────────────────────────────── */
.contact-item {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all var(--dur-fast);
}
.contact-item:hover { border-color: var(--c-border-hi); }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--c-cyan-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-lg); flex-shrink: 0;
}
.contact-item-label { font-size: var(--t-xs); color: var(--c-text-3); margin-bottom: 2px; }
.contact-item-value { font-size: var(--t-sm); font-weight: 500; color: var(--c-text); }

/* ── PROJECT HERO ────────────────────────────────────────── */
.project-hero {
  padding-top: calc(var(--nav-h) + var(--s-16));
  padding-bottom: var(--s-16);
  position: relative;
  background: var(--g-hero);
  border-bottom: 1px solid var(--c-border);
}
.project-facts-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.project-fact { display: flex; justify-content: space-between; padding: var(--s-3) 0; border-bottom: 1px solid var(--c-border); }
.project-fact:last-child { border-bottom: none; }
.project-fact-label { font-size: var(--t-xs); color: var(--c-text-3); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.project-fact-value { font-size: var(--t-sm); font-weight: 600; color: var(--c-text); text-align: right; max-width: 60%; }

/* ── PROJECT NAV ─────────────────────────────────────────── */
.project-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-border);
  margin-top: var(--s-12);
}
.project-nav-link {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-sm); color: var(--c-text-2);
  transition: color var(--dur-fast);
}
.project-nav-link:hover { color: var(--c-cyan); }
.project-nav-link .small { font-size: var(--t-xs); color: var(--c-text-3); display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--c-border);
  padding: var(--s-12) 0 var(--s-8);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-12); margin-bottom: var(--s-12);
}
.footer-brand .logo {
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 800;
  margin-bottom: var(--s-3);
}
.footer-brand .logo .accent { color: var(--c-cyan); }
.footer-tagline { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.7; max-width: 280px; }
.footer-heading {
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-text-3); margin-bottom: var(--s-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-links a { font-size: var(--t-sm); color: var(--c-text-2); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--c-cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-8); border-top: 1px solid var(--c-border);
  font-size: var(--t-xs); color: var(--c-text-3);
}
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-sm); color: var(--c-text-2);
  transition: all var(--dur-fast);
}
.footer-social a:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

/* ── PAGE TRANSITION ─────────────────────────────────────── */
.page-transition {
  position: fixed; inset: 0; z-index: 8000;
  background: var(--c-bg);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s var(--ease-in);
  pointer-events: none;
}
.page-transition.enter { transform: scaleY(1); transform-origin: bottom; }
.page-transition.exit { transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease-out); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-visual { display: none; }
  .exp-card { flex-direction: column; gap: var(--s-4); }
  .hero-title { font-size: clamp(var(--t-2xl), 8vw, var(--t-4xl)); }
  :root { --s-24: 4rem; --s-32: 5rem; }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--s-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .project-nav { flex-direction: column; gap: var(--s-4); }
}

/* ── UTILITIES ───────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-8 { margin-bottom: var(--s-8); }
.text-center { text-align: center; }
.text-cyan { color: var(--c-cyan); }
.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-text-2); }
.font-mono { font-family: var(--f-mono); }
.font-display { font-family: var(--f-display); }
.wrap { flex-wrap: wrap; }

/* hidden until filtered */
.hidden { display: none !important; }

/* ── NOTIFICATION TOAST ──────────────────────────────────── */
.toast {
  position: fixed; bottom: var(--s-8); right: var(--s-8); z-index: 9999;
  background: var(--c-bg-card); border: 1px solid var(--c-cyan);
  border-radius: var(--radius); padding: var(--s-4) var(--s-6);
  font-size: var(--t-sm); color: var(--c-text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(100px); opacity: 0;
  transition: all var(--dur-mid) var(--ease-out);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ════════════════════════════════════════════════════════════════════════
   EXPERIENCE GALLERIES — additive only (reuses existing tokens/identity)
   Per-discipline responsive galleries, captions, empty states, covers.
   ════════════════════════════════════════════════════════════════════════ */
.exp-gallery { margin-top: var(--s-8); }
.exp-gallery .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item .gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-3) var(--s-4);
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em;
  color: var(--c-white);
  background: linear-gradient(to top, rgba(5,8,16,0.88), rgba(5,8,16,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  pointer-events: none;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-3); min-height: 150px;
  border: 1px dashed var(--c-border); border-radius: var(--radius);
  background: var(--c-bg-card); color: var(--c-text-3);
  font-family: var(--f-mono); font-size: var(--t-sm); letter-spacing: 0.04em; text-align: center;
}
.gallery-empty .gallery-empty-icon { font-size: var(--t-3xl); opacity: 0.55; }

/* Projects-delivered cards with optional cover image */
.exp-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-6); }
.exp-proj-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.exp-cover {
  height: 180px; position: relative; overflow: hidden; background: var(--c-bg-2);
  display: flex; align-items: center; justify-content: center;
}
.exp-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.exp-proj-card:hover .exp-cover img { transform: scale(1.05); }
.exp-cover .exp-cover-ph { font-size: var(--t-4xl, 2.4rem); color: var(--c-text-3); opacity: 0.7; }
.exp-proj-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
