/* ======================================================
   LEON ROSEN PORTFOLIO — styles.css
   Digital Bloodhound | Healthcare Marketing Analytics

   HOW TO EDIT:
   ─ Palette: change CSS variables in :root
   ─ Fonts: swap Google Fonts link in index.html and --font-* vars here
   ─ Section spacing: adjust --section-pad
   ─ Search "REPLACE" comments for placeholder areas
   ====================================================== */

/* ── CSS CUSTOM PROPERTIES ──────────────────────────────── */
:root {
  --bg-primary:      #0b1220;
  --bg-secondary:    #111d35;
  --bg-card:         #162035;
  --bg-card-hover:   #1c2b4a;

  --accent:          #38bdf8;
  --accent-warm:     #f59e0b;
  --accent-dim:      rgba(56, 189, 248, 0.12);
  --accent-border:   rgba(56, 189, 248, 0.22);

  --text-primary:    #e8f0fe;
  --text-muted:      #7a9abf;
  --text-faint:      #3d5470;

  --border:          rgba(56, 189, 248, 0.10);
  --border-hover:    rgba(56, 189, 248, 0.28);

  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:    'Space Grotesk', 'Inter', sans-serif;

  --radius:          8px;
  --radius-lg:       14px;
  --shadow:          0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg:       0 8px 40px rgba(0, 0, 0, 0.5);
  --transition:      0.2s ease;

  --nav-h:           64px;
  --section-pad:     96px;
  --container:       1160px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7dd3fc; }
ul { list-style: none; }

/* ── LAYOUT HELPERS ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section      { padding: var(--section-pad) 0; }
.section-alt  { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.section-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary  { background: var(--accent); color: #0b1220; border-color: var(--accent); }
.btn-primary:hover  { background: #7dd3fc; border-color: #7dd3fc; color: #0b1220; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-dim); transform: translateY(-2px); color: #7dd3fc; }
.btn-outline  { background: transparent; color: var(--text-muted); border-color: var(--text-faint); }
.btn-outline:hover  { border-color: var(--text-muted); color: var(--text-primary); transform: translateY(-2px); }
.btn-large    { padding: 15px 32px; font-size: 1rem; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 16, 28, 0.97);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(11, 18, 32, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand   { display: none;}
.nav-name    { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-primary); line-height: 1; }
.nav-tagline { font-size: 0.66rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover           { color: var(--text-primary); }
.nav-links a:hover::after    { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── NAV LOGO ────────────────────────────────────────────── */
/* Fixed-size container lets object-fit: cover fill the width
   and automatically crop the image's top/bottom black padding.
   mix-blend-mode: screen works here because backdrop-filter is removed. */
.nav-brand { overflow: hidden; }
.nav-brand a {
  display: block;
  width: 230px;
  height: 52px;
  line-height: 0;
  overflow: hidden;
}
.nav-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.82; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1220 0%, #0e1b30 55%, #0b1220 100%);
  /* isolation: isolate creates a compositing group so mix-blend-mode
     on .hero-logo blends against the hero background, not the page */
  isolation: isolate;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(56, 189, 248, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 45%);
  pointer-events: none;
}
.hero-content {
  max-width: 760px;
  text-align: center;
  position: relative;
  /* No z-index here — lets mix-blend-mode on .hero-logo blend
     against the hero background within the isolation context */
}
/* Hero logo — screened against the dark hero bg so the image's
   black areas disappear, leaving only the illustration visible */
.hero-logo-wrap {
  margin-bottom: 20px;
}
.hero-logo {
  max-width: min(700px, 92vw);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: screen;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 22px;
}
.hero-brand {
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative chart bars — z-index: -1 keeps them behind .hero-content
   now that hero-content no longer sets its own z-index */
.hero-visual {
  position: absolute;
  bottom: 48px; right: 8%;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}
.hero-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 130px;
}
.chart-bar {
  width: 18px;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--accent), rgba(56,189,248,0.3));
  border-radius: 3px 3px 0 0;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 18px;
}
.about-lead {
  font-size: 1.18rem !important;
  color: var(--text-primary) !important;
  font-weight: 500;
  line-height: 1.65 !important;
}
.about-quote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 28px;
  font-size: 1.08rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── COMPETENCIES ────────────────────────────────────────── */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.competency-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.competency-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.competency-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.competency-card:hover::before { opacity: 1; }
.competency-icon   { font-size: 1.7rem; margin-bottom: 12px; }
.competency-card h3 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.competency-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── WHAT I BUILD ────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: all var(--transition);
}
.work-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.work-card-icon { font-size: 2.1rem; margin-bottom: 18px; }
.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.work-card p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }

/* ── CASE STUDIES / PORTFOLIO ───────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0b1220; font-weight: 700; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(356px, 1fr));
  gap: 22px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition);
}
.case-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.case-card.hidden { display: none; }

.case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.case-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.15);
  line-height: 1;
  flex-shrink: 0;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag {
  font-size: 0.67rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.3;
}
.case-section { margin-bottom: 14px; }
.case-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.case-section p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; }
.case-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.theme-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── TOOLS ───────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 36px;
}
.tool-group h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tool-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: default;
  transition: all var(--transition);
}
.tool-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── HEALTHCARE EXPERIENCE ───────────────────────────────── */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.experience-col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.exp-list { display: flex; flex-direction: column; gap: 8px; }
.exp-item {
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.89rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.exp-item:hover { border-color: var(--border-hover); color: var(--text-primary); }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-tag {
  display: inline-block;
  padding: 5px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.79rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.exp-tag:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ── GALLERY (Dashboards) ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-thumb {
  height: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  /* REPLACE: set background-image: url('assets/dashboards/filename.png'); background-size: cover; */
}
.gallery-thumb--blue   { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.gallery-thumb--teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.gallery-thumb--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gallery-thumb--green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.gallery-thumb--orange { background: linear-gradient(135deg, #f59e0b, #b45309); }
.gallery-thumb--navy   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.gallery-placeholder-label {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.gallery-icon { font-size: 2.8rem; opacity: 0.55; }
.gallery-info { padding: 18px 20px; }
.gallery-info h4 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.gallery-info p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 5px; }
.gallery-info strong { color: var(--text-primary); font-weight: 600; }

/* ── SLIDES ──────────────────────────────────────────────── */
.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.slide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.slide-thumb {
  height: 150px;
  background: linear-gradient(135deg, #1a2847, #1e3158);
  /* REPLACE: set background-image: url('assets/slides/slide-name.jpg'); background-size: cover; */
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.slide-thumb-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}
.slide-body { padding: 16px 18px; }
.slide-body p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.65; }

/* ── EXCEL TRAINING ──────────────────────────────────────── */
.excel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.excel-lead {
  font-size: 1.08rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 18px;
}
.excel-intro p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.excel-quote {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.excel-quote blockquote {
  font-size: 1rem;
  color: var(--text-primary);
  font-style: italic;
  font-weight: 500;
}
.excel-skills { display: flex; flex-direction: column; gap: 22px; }
.excel-skill-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.excel-skill-icon { font-size: 1.45rem; flex-shrink: 0; width: 36px; text-align: center; }
.excel-skill-item strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 3px;
}
.excel-skill-item p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── LEADERSHIP ──────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 20px;
}
.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all var(--transition);
}
.leadership-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.leadership-icon  { font-size: 1.9rem; margin-bottom: 14px; }
.leadership-card h3 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.leadership-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }

/* ── HOW I WORK ──────────────────────────────────────────── */
.howwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}
.howwork-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.howwork-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.howwork-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.howwork-item p { font-size: 0.94rem; color: var(--text-muted); line-height: 1.5; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; width: 36px; }
.contact-item strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.contact-item p { font-size: 0.94rem; color: var(--text-muted); }
.contact-item a { color: var(--text-muted); transition: color var(--transition); }
.contact-item a:hover { color: var(--accent); }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand  { font-family: var(--font-display); font-size: 0.97rem; color: var(--text-primary); font-weight: 600; }
.footer-privacy { font-size: 0.76rem; color: var(--text-faint); max-width: 660px; line-height: 1.7; }
.footer-copy    { font-size: 0.76rem; color: var(--text-faint); }

/* ── SCROLL FADE-IN ANIMATION (applied by JS) ────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid         { grid-template-columns: 1fr; }
  .about-stats        { grid-template-columns: repeat(4, 1fr); }
  .experience-grid    { grid-template-columns: 1fr; }
  .excel-layout       { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout     { grid-template-columns: 1fr; gap: 40px; }
  .howwork-grid       { grid-template-columns: 1fr; }
  .tools-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; }

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 18, 32, 0.98);
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }
  .nav-links.open  { display: flex; }
  .nav-toggle      { display: flex; }

  .hero-actions    { flex-direction: column; align-items: center; }
  .about-stats     { grid-template-columns: 1fr 1fr; }

  .case-grid         { grid-template-columns: 1fr; }
  .competency-grid   { grid-template-columns: 1fr; }
  .work-grid         { grid-template-columns: 1fr; }
  .gallery-grid      { grid-template-columns: 1fr; }
  .slide-grid        { grid-template-columns: 1fr; }
  .leadership-grid   { grid-template-columns: 1fr; }

  .filter-bar { gap: 8px; }
  .filter-btn { font-size: 0.77rem; padding: 6px 13px; }
}
.gallery-thumb[style*="background-image"] {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.gallery-thumb[style*="background-image"] .gallery-placeholder-label,
.gallery-thumb[style*="background-image"] .gallery-icon {
  display: none !important;
}
.slide-thumb[style*="background-image"] {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.slide-thumb[style*="background-image"] .slide-thumb-label {
  display: none !important;
}