*{margin:0;padding:0;box-sizing:border-box}

:root {
 
  --accent:      #c4a87c;
  --accent-light: rgba(196,168,124,.1);
  --accent-mid:  rgba(196,168,124,.4);


  --bg-primary:  #121010;
  --bg-card:     #1a1715;
  --bg-elevated: #221f1c;
  --bg-section:  #0e0c0b;

  --text-primary:   #f5f0eb;
  --text-secondary: #9a9490;
  --text-muted:     #6b6562;


  --border:        rgba(255,255,255,.08);
  --border-strong:  rgba(255,255,255,.15);


  --nav-h: 64px;
  --side-pad: 6%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
}

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

nav {
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--side-pad);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(18,16,16,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}

.logo-img {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}
.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: .875rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-links a:last-child {
  border: 1px solid var(--accent);
  padding: .4rem 1.1rem;
  border-radius: 999px;
  color: var(--accent);
  transition: all .2s;
}
.nav-links a:last-child:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 199;
}
.mobile-menu a {
  padding: .9rem var(--side-pad);
  font-size: .9rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  display: block;
}
.mobile-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.btn:hover {
  background: #d4b88c;
  border-color: #d4b88c;
  box-shadow: 0 4px 20px rgba(196,168,124,.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
  margin-left: .75rem;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

section { padding: 4.5rem var(--side-pad); }

.accent-line {
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: .9rem;
}

h2.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -.5px;
  margin-bottom: .4rem;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: .92rem;
}

.bg-light {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--side-pad);
  width: 60px;
  height: 2px;
  background: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--text-muted);
}
footer em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: popIn .25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

.modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--text-primary);
}
.modal > p {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal .form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .85rem;
}
.modal .form-group label {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.modal .form-group input,
.modal .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .875rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s;
}
.modal .form-group input:focus,
.modal .form-group textarea:focus {
  border-color: var(--accent);
}
.modal .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.chat-bubble {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 400;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196,168,124,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(196,168,124,.45);
}

.chat-popup {
  position: fixed;
  bottom: 5rem;
  right: 1.75rem;
  z-index: 400;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  max-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  display: none;
  animation: popIn .2s ease;
}
.chat-popup.open { display: block; }
.chat-popup p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.chat-popup a {
  color: var(--accent);
  font-weight: 500;
}
.chat-popup-close {
  position: absolute;
  top: .6rem;
  right: .85rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--side-pad);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-blob {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,168,124,.12) 0%, rgba(196,168,124,.04) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,168,124,.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .75rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 15px rgba(74,222,128,.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-avatar { display: none; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: .9rem;
  font-size: .93rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  background: var(--bg-card);
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
  position: relative;
  cursor: default;
}
.stat:hover {
  border-color: var(--accent-mid);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(196,168,124,.08);
}

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
  transition: transform .3s ease;
}
.stat:hover .stat-num { transform: translateY(-2px); }

.stat-label {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: .2rem;
}

.stat-desc {
  font-size: .74rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow-y: auto;
  transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
  margin-top: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) transparent;
}
.stat:hover .stat-desc {
  max-height: 72px;
  opacity: 1;
  margin-top: .5rem;
}

.cert-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.cert-strip-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .78rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.cert-badge:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.cert-badge .cert-icon { font-size: 1rem; }

.cert-see-all {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  margin-top: .75rem;
  display: inline-block;
  padding: 0;
  text-decoration: none;
}
.cert-see-all:hover { text-decoration: underline; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.skill-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem;
  background: var(--bg-card);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  overflow: hidden;
  cursor: default;
}
.skill-card:hover {
  border-color: var(--accent-mid);
  border-top: 3px solid var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196,168,124,.08);
}

.skill-tag {
  display: inline-block;
  font-size: .68rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .65rem;
  font-weight: 500;
}
.tag-core { background: rgba(34,197,94,.1); color: #4ade80; }
.tag-growing { background: var(--accent-light); color: var(--accent); }

.skill-card h3 {
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--text-primary);
}

.skill-short {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: opacity .25s;
}

.skill-desc {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow-y: auto;
  transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
  margin-top: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) transparent;
}
.skill-card:hover .skill-short {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}
.skill-card:hover .skill-desc {
  max-height: 90px;
  opacity: 1;
  margin-top: .35rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -.5px;
  margin-bottom: .75rem;
  color: var(--text-primary);
}
.contact-text p {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: 1.75rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .875rem;
  color: var(--text-secondary);
}

.c-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  flex-shrink: 0;
  background: var(--bg-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-group label {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: .7rem .95rem;
  font-size: .875rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.projects-page { padding: 4rem var(--side-pad); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color .2s;
  text-decoration: none;
}
.back-btn:hover { color: var(--accent); }

.bucket-tabs {
  display: flex;
  gap: .65rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.tab {
  padding: .5rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-secondary);
  background: transparent;
  font-family: inherit;
  font-weight: 500;
}
.tab:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.tab-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.bucket-section { display: none; }
.bucket-section.active { display: block; }

.bucket-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.proj-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
}
.proj-card:hover {
  border-color: var(--accent-mid);
  border-left: 3px solid var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(196,168,124,.1);
}

.proj-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .95rem;
}

.proj-card h3 {
  font-size: .93rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text-primary);
}
.proj-card p {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.proj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
}
.proj-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: .68rem;
  padding: .15rem .5rem;
  color: var(--text-secondary);
}

.proj-arrow {
  font-size: .78rem;
  color: var(--accent);
  margin-top: .85rem;
  font-weight: 600;
}

.case-page { padding: 4rem var(--side-pad); }

.case-visual {
  width: 100%;
  height: 220px;
  background: var(--bg-elevated);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 2px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
  gap: .5rem;
}
.case-visual span { font-size: 2rem; }

.case-img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.case-carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.case-carousel img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  height: auto;
  display: none;
  border-radius: 16px;
}

.case-carousel img.active {
  display: block;
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  background: rgba(255,255,255,.3);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.carousel-arrow {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: color .2s, border-color .2s;
  padding: 0;
}

.carousel-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.case-header { margin-bottom: 2rem; }
.case-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -.5px;
  margin-bottom: .4rem;
  color: var(--text-primary);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .85rem;
}
.meta-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem;
  padding: .25rem .75rem;
  color: var(--text-secondary);
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.case-block { margin-bottom: 2rem; }
.case-block h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--accent);
  margin-bottom: .75rem;
}
.case-block p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.result-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .75rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-weight: 500;
  margin: .2rem .2rem 0 0;
}

.placeholder-note {
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: .75rem;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .4rem;
}
.tool-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .75rem;
  padding: .22rem .65rem;
  color: var(--text-secondary);
}

.certs-page { padding: 4rem var(--side-pad); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.cert-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--bg-card);
  transition: border-color .2s, box-shadow .2s;
}
.cert-card:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 4px 16px rgba(196,168,124,.08);
}

.cert-card-icon  { font-size: 1.75rem; }
.cert-card-name  { font-size: .92rem; font-weight: 600; color: var(--text-primary); }
.cert-card-issuer{ font-size: .8rem; color: var(--text-secondary); }
.cert-card-year  { font-size: .75rem; color: var(--accent); font-weight: 500; }

.cert-placeholder-note {
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: .25rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.testimonial-carousel {
  position: relative;
}

.testimonial-track .testimonial-page {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-track .testimonial-page.active {
  display: grid;
}

.testimonial-carousel .carousel-controls {
  position: static;
  transform: none;
  justify-content: center;
  margin-top: 1.5rem;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.testimonial-quote {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: .25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

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

.author-name {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.author-role {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   CHATBOT WINDOW
   ═══════════════════════════════════════════ */
.chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 360px;
  max-height: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 450;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  overflow: hidden;
  animation: popIn .25s ease;
}
.chat-window.open {
  display: flex;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent);
}
.chat-header-name {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-primary);
}
.chat-header-status {
  font-size: .7rem;
  color: #4ade80;
}
.chat-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.chat-close:hover { color: var(--text-primary); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 350px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) transparent;
}

.chat-msg {
  display: flex;
}
.chat-msg.bot {
  justify-content: flex-start;
}
.chat-msg.user {
  justify-content: flex-end;
}

.chat-bubble-msg {
  max-width: 85%;
  padding: .65rem .9rem;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.6;
}
.chat-msg.bot .chat-bubble-msg {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble-msg {
  background: var(--accent);
  color: var(--bg-primary);
  border-bottom-right-radius: 4px;
}
.chat-bubble-msg a {
  color: var(--accent);
  text-decoration: underline;
}
.chat-msg.user .chat-bubble-msg a {
  color: var(--bg-primary);
}

/* Typing indicator */
.chat-bubble-msg.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: .75rem 1rem;
}
.chat-bubble-msg.typing .dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}
.chat-bubble-msg.typing .dot:nth-child(2) { animation-delay: .2s; }
.chat-bubble-msg.typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.chat-input-area {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.chat-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .82rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}
.chat-input:focus {
  border-color: var(--accent);
}
.chat-input::placeholder {
  color: var(--text-muted);
}
.chat-send {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.chat-send:hover {
  background: #d4b88c;
}

/* Intake form inside chat */
.chat-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 100%;
}
.chat-form-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.chat-form-group label {
  font-size: .72rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.chat-form-group input,
.chat-form-group select,
.chat-form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: .45rem .65rem;
  font-size: .78rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}
.chat-form-group input:focus,
.chat-form-group select:focus,
.chat-form-group textarea:focus {
  border-color: var(--accent);
}
.chat-form-group select {
  appearance: auto;
}
.chat-form-group textarea {
  resize: vertical;
  min-height: 50px;
}
.chat-form-submit {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: .55rem;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-top: .25rem;
  transition: background .2s;
}
.chat-form-submit:hover {
  background: #d4b88c;
}
.chat-form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Calendly button in chat */
.chat-calendly-btn {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent) !important;
  text-decoration: none !important;
  padding: .5rem .85rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  transition: background .2s;
}
.chat-calendly-btn:hover {
  background: var(--accent-mid);
}

@media (max-width: 768px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }

  .about-grid,
  .contact-wrapper,
  .case-body   { grid-template-columns: 1fr; gap: 2rem; }

  .hero h1     { font-size: 2.2rem; }
  .hero-blob   { width: 250px; height: 250px; top: -30px; right: -50px; }

  .project-cards-grid { grid-template-columns: 1fr; }
  .case-visual { height: 150px; }
  .modal       { padding: 1.75rem; }

  .chat-bubble { bottom: 1.25rem; right: 1.25rem; }
  .chat-popup  { right: 1.25rem; bottom: 4.5rem; }

  .nav-links a:last-child {
    border: none;
    padding: 0;
  }

  .chat-window {
    right: 0;
    bottom: 4.5rem;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
  }
}