:root {
  --cream: #f7f4ef;
  --cream2: #f0ebe2;
  --ink: #1c1a17;
  --ink-light: #6b6458;
  --ink-lighter: #a09890;
  --accent: #3d6b5e;
  --accent-light: #eef4f2;
  --accent2: #8c6a3f;
  --border: rgba(28,26,23,0.1);
  --card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 64px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247,244,239,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-text { animation: fadeUp 0.8s ease both; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
h1 {
  font-family: 'Lora', serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
h1 em { font-style: italic; color: var(--accent); }
.hero-body {
  font-size: 17px;
  color: var(--ink-light);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 300;
}
.cissp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(61,107,94,0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 36px;
}
.cissp-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61,107,94,0.25); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-visual { display: flex; flex-direction: column; gap: 14px; animation: fadeUp 0.9s ease 0.15s both; }
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(28,26,23,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(28,26,23,0.08); }
.info-card-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-green { background: var(--accent-light); }
.icon-warm { background: #fdf3e8; }
.icon-slate { background: #edf0f5; }
.icon-purple { background: #f0edf8; }
.info-card-icon svg { width: 19px; height: 19px; }
.info-card-label { font-size: 11px; color: var(--ink-lighter); margin-bottom: 2px; letter-spacing: 0.02em; }
.info-card-value { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ── SHARED ── */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 100px 64px; }
.section-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 52px; }
.section-num { font-size: 13px; color: var(--ink-lighter); letter-spacing: 0.05em; flex-shrink: 0; }
h2 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

/* ── ABOUT ── */
#about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: start; }
.about-text p { color: var(--ink-light); font-size: 16px; line-height: 1.85; margin-bottom: 20px; font-weight: 300; }
.about-text p strong { color: var(--ink); font-weight: 500; }
.about-text p:last-child { margin-bottom: 0; }

.about-aside { display: flex; flex-direction: column; gap: 16px; }

.aside-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.aside-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28,26,23,0.06); }
.aside-card-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-lighter);
  margin-bottom: 10px;
}
.aside-card-content { font-size: 14px; color: var(--ink-light); line-height: 1.6; font-weight: 300; }
.aside-card-content strong { color: var(--ink); font-weight: 500; }

.credential-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.credential-row:last-child { border-bottom: none; padding-bottom: 0; }
.credential-row:first-child { padding-top: 0; }
.cred-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cred-icon svg { width: 15px; height: 15px; }
.cred-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.cred-status { font-size: 11px; color: var(--ink-lighter); margin-top: 1px; }

/* ── EXPERIENCE ── */
#experience { background: var(--cream2); }
.exp-intro {
  font-size: 17px;
  color: var(--ink-light);
  font-weight: 300;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 52px;
}
.exp-intro strong { color: var(--ink); font-weight: 500; }

.exp-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.exp-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.exp-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(28,26,23,0.07); }
.exp-stat-value {
  font-family: 'Lora', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.exp-stat-label { font-size: 14px; color: var(--ink-light); font-weight: 300; line-height: 1.4; }

.exp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.exp-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.exp-detail-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28,26,23,0.06); }
.exp-detail-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.exp-detail-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.exp-detail-icon.warm { background: #fdf3e8; }
.exp-detail-icon.slate { background: #edf0f5; }
.exp-detail-icon svg { width: 16px; height: 16px; }
.exp-detail-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.exp-detail-body { font-size: 13px; color: var(--ink-light); line-height: 1.7; font-weight: 300; }

/* ── SKILLS ── */
#skills { background: var(--cream); }
.skills-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.skill-block:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(28,26,23,0.07); }
.skill-block-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-block-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.skill-block-icon.warm { background: #fdf3e8; }
.skill-block-icon.slate { background: #edf0f5; }
.skill-block-icon svg { width: 16px; height: 16px; }
.skill-block-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 11px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--ink-light);
  transition: all 0.2s;
}
.tag:hover { background: var(--accent-light); border-color: rgba(61,107,94,0.2); color: var(--accent); }

/* ── GALLERY ── */
#gallery { background: var(--cream2); }
.gallery-intro {
  font-size: 16px;
  color: var(--ink-light);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 44px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,26,23,0.12); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--cream2);
  color: var(--ink-lighter);
}
.gallery-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }
.gallery-placeholder span { font-size: 12px; letter-spacing: 0.05em; opacity: 0.6; }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28,26,23,0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: white;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 16px; height: 16px; }

/* ── CONTACT ── */
#contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-text { font-size: 17px; color: var(--ink-light); line-height: 1.8; margin-bottom: 32px; font-weight: 300; }
.contact-text strong { color: var(--ink); font-weight: 500; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  transition: all 0.25s;
}
.contact-link:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); transform: translateX(4px); }
.contact-link-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.25s;
}
.contact-link-icon svg { width: 16px; height: 16px; transition: color 0.25s; }
.contact-link:hover .contact-link-icon { background: var(--accent); border-color: var(--accent); }
.contact-link:hover .contact-link-icon svg { color: white; }
.contact-note {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.contact-note-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.contact-note p { font-size: 15px; color: var(--ink-light); line-height: 1.8; font-weight: 300; font-family: 'Lora', serif; font-style: italic; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 64px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-lighter);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.85); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; padding: 100px 24px 60px; gap: 40px; }
  .section-wrap { padding: 72px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .exp-stat-row { grid-template-columns: 1fr 1fr; }
  .exp-detail-grid { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 560px) {
  .exp-stat-row { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
}
