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

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #334155;
  --accent-dark: #1e293b;
  --accent-soft: #f1f5f9;
  --accent-glow: rgba(51, 65, 85, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1100px;
  --radius: 14px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 1000;
  padding: 10px 18px; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  background: var(--accent); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; white-space: nowrap;
}
.nav-logo:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a {
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.lang-toggle {
  padding: 5px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); font-family: var(--font);
  transition: all var(--ease); white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; gap: 60px;
  padding: 120px 24px 80px; max-width: var(--max-w); margin: 0 auto;
}
.hero-content { flex: 1; min-width: 0; }
.hero-greeting { color: var(--accent); font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 12px;
  color: var(--text); white-space: nowrap;
}
.hero-title { font-size: clamp(1.1rem, 2.5vw, 1.35rem); color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.hero-tags { font-size: 0.95rem; color: var(--muted); margin-bottom: 8px; }
.hero-location { font-size: 0.9rem; color: var(--muted); margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Photo */
.hero-photo { flex-shrink: 0; }
.photo-placeholder {
  width: 220px; height: 220px; border-radius: 50%; background: var(--bg-alt);
  border: 2px dashed var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
}
.photo-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.photo-img {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--accent-soft); box-shadow: 0 8px 30px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--ease);
  border: none; font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 56px;
  letter-spacing: -0.02em; color: var(--text); position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; bottom: -10px; left: 0;
  width: 44px; height: 3px; background: var(--accent); border-radius: 2px;
}

/* About */
.about-content { max-width: 720px; font-size: 1.1rem; color: var(--muted); line-height: 1.85; }

/* Insights */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-pill {
  padding: 7px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all var(--ease); font-family: var(--font);
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.insights-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.insight-card {
  background: var(--card-bg, var(--surface)); border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius); padding: 28px; cursor: pointer; transition: all var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03); display: flex; flex-direction: column;
}
.insight-card:hover {
  border-color: var(--card-accent, var(--accent)); transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--card-glow, var(--accent-glow));
}
.insight-card.hidden { display: none; }

/* Category colors */
.insight-card[data-cat="martech-strategy"] {
  --card-bg: #f0f4f8; --card-border: #c8d6e5; --card-accent: #2c3e6b; --card-glow: rgba(44,62,107,0.1);
}
.insight-card[data-cat="ai-automation"] {
  --card-bg: #f3f0f9; --card-border: #d4cbe5; --card-accent: #5b4a8a; --card-glow: rgba(91,74,138,0.1);
}
.insight-card[data-cat="leadership"] {
  --card-bg: #f5f3f0; --card-border: #ddd5cb; --card-accent: #6b5a45; --card-glow: rgba(107,90,69,0.1);
}
.insight-card[data-cat="frameworks"] {
  --card-bg: #eef4f3; --card-border: #c4dad6; --card-accent: #2d5f56; --card-glow: rgba(45,95,86,0.1);
}
.insight-card[data-cat="reading"] {
  --card-bg: #f6f3ee; --card-border: #e0d8cc; --card-accent: #7a6b52; --card-glow: rgba(122,107,82,0.1);
}

.insight-category {
  display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--card-accent, var(--accent));
  background: rgba(255,255,255,0.6);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; align-self: flex-start;
}
.insight-title { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.insight-summary { font-size: 0.9rem; color: var(--muted); line-height: 1.65; flex: 1; }
.insight-date { font-size: 0.78rem; color: var(--muted); margin-top: 16px; opacity: 0.7; }

/* Slide Panel */
.panel-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0); pointer-events: none;
  transition: background 0.4s ease;
}
.panel-overlay.open { background: rgba(0,0,0,0.25); pointer-events: auto; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(560px, 92vw); background: var(--surface);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
}
.panel-overlay.open .panel { transform: translateX(0); }
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.panel-back {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: color var(--ease); padding: 0;
}
.panel-back:hover { color: var(--accent); }
.panel-back svg { width: 18px; height: 18px; }
.panel-header-actions { display: flex; align-items: center; gap: 4px; }
.panel-expand {
  background: none; border: none; width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; transition: all var(--ease);
}
.panel-expand:hover { background: var(--bg-alt); color: var(--text); }
.panel-expand svg { width: 18px; height: 18px; }
.panel-expand .icon-collapse { display: none; }
.panel.expanded .panel-expand .icon-expand { display: none; }
.panel.expanded .panel-expand .icon-collapse { display: block; }
.panel-close {
  background: none; border: none; width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; transition: all var(--ease);
  font-size: 1.4rem; line-height: 1;
}
.panel-close:hover { background: var(--bg-alt); color: var(--text); }
.panel-scroll {
  flex: 1; overflow-y: auto; padding: 36px 32px 48px;
  overscroll-behavior: contain;
}
.panel-meta {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.panel-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.panel-title {
  font-size: 1.65rem; font-weight: 700; color: var(--text);
  margin-bottom: 28px; line-height: 1.3; letter-spacing: -0.02em;
}
.panel-body p {
  color: var(--muted); font-size: 1.02rem; line-height: 1.9; margin-bottom: 20px;
}
.panel-body p:last-child { margin-bottom: 0; }
.panel-body p:first-child { color: var(--text); font-size: 1.05rem; }
.panel-body .content-image {
  margin: 28px 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt);
}
.panel-body .content-image img {
  width: 100%; height: auto; display: block;
}
.panel-body .content-image figcaption {
  padding: 10px 16px; font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Expanded state */
.panel.expanded {
  width: 100%; left: 0; right: 0;
  border-left: none;
  box-shadow: none;
}
.panel.expanded .panel-scroll {
  max-width: 720px; margin: 0 auto; padding: 40px 32px 60px;
}
.panel.expanded .panel-header {
  max-width: 720px; margin: 0 auto; padding: 20px 32px;
  border-bottom: none;
}
.panel-overlay.open.expanded-overlay { background: rgba(255,255,255,0.98); }

@media (max-width: 768px) {
  .panel { width: 100%; }
  .panel-scroll { padding: 28px 20px 40px; }
  .panel-header { padding: 16px 20px; }
  .panel-expand { display: none; }
}

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute; left: -40px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent);
}
.section-alt .timeline-marker { border-color: var(--bg-alt); }
.timeline-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.timeline-content:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow); }
.timeline-date { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.timeline-content h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.timeline-company { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.timeline-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: all var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px var(--accent-glow); }
.skill-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.skill-icon svg { width: 22px; height: 22px; color: var(--accent); }
.skill-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.skill-list { list-style: none; }
.skill-list li { color: var(--muted); font-size: 0.88rem; padding: 5px 0; border-bottom: 1px solid var(--border); }
.skill-list li:last-child { border-bottom: none; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 48px; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: flex-start; gap: 16px;
  transition: all var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.edu-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow); }
.edu-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  background: var(--accent-soft); display: flex; align-items: center;
  justify-content: center; margin-top: 2px;
}
.edu-icon svg { width: 22px; height: 22px; color: var(--accent); }
.edu-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.edu-place { font-size: 0.85rem; color: var(--muted); }

/* Languages */
.languages-bar { border-top: 1px solid var(--border); padding-top: 32px; }
.languages-bar h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.lang-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 8px 20px; background: var(--accent-soft);
  border: 1px solid var(--border); border-radius: 100px; font-size: 0.88rem;
  color: var(--text); font-weight: 500;
}

/* Contact */
.contact-centered { max-width: 520px; }
.contact-intro { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 0.95rem; transition: color var(--ease);
}
.contact-link:hover { color: var(--accent); }
.contact-link svg { width: 22px; height: 22px; min-width: 22px; color: var(--accent); }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); text-align: center; }
.footer p { color: var(--muted); font-size: 0.85rem; }

/* Consent Banner */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.consent-banner.visible { transform: translateY(0); }
.consent-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px;
}
.consent-inner p {
  flex: 1; font-size: 0.9rem; color: var(--muted); line-height: 1.6;
}
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn { padding: 10px 20px; font-size: 0.85rem; }

/* Consent Toggle Icon */
.consent-toggle {
  position: fixed; bottom: 20px; left: 20px; z-index: 250;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--ease);
  opacity: 0; pointer-events: none;
}
.consent-toggle.visible { opacity: 1; pointer-events: auto; }
.consent-toggle:hover {
  border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow);
  transform: scale(1.08);
}
.consent-toggle svg { width: 20px; height: 20px; color: var(--muted); }
.consent-toggle:hover svg { color: var(--accent); }

@media (max-width: 768px) {
  .consent-inner { flex-direction: column; gap: 16px; text-align: center; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; justify-content: center; }
}

/* Site Gate */
.site-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.site-gate.unlocked { display: none; }
.gate-box { text-align: center; max-width: 360px; width: 100%; }
.gate-title {
  font-size: 1.3rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.gate-text { font-size: 0.95rem; color: var(--muted); margin-bottom: 28px; }
.gate-input {
  width: 100%; padding: 13px 18px; border-radius: 10px;
  border: 1px solid var(--border); font-family: var(--font);
  font-size: 0.95rem; color: var(--text); background: var(--bg);
  outline: none; transition: border-color var(--ease);
  margin-bottom: 14px; text-align: center; letter-spacing: 0.05em;
}
.gate-input:focus { border-color: var(--accent); }
.gate-input.shake {
  animation: shake 0.4s ease;
}
.gate-btn { width: 100%; justify-content: center; }
.gate-error {
  font-size: 0.85rem; color: #dc2626; margin-top: 12px;
  min-height: 1.2em;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero {
    flex-direction: column-reverse; padding-top: 100px;
    min-height: auto; padding-bottom: 60px; gap: 32px;
  }
  .hero-name { white-space: normal; }
  .photo-placeholder, .photo-img { width: 160px; height: 160px; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 36px; }
  .skills-grid, .edu-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px; margin: 16px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
}
