/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #1a1a1a;
  --border:   #222222;
  --text:     #e8e8e8;
  --muted:    #888888;
  --accent:   #F59E0B;
  --accent2:  #D97706;
  --font:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', monospace;
  --radius:   8px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #000; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: #000; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
}

.hero-content {
  max-width: 700px;
  padding: 80px 0;
}

.hero-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-large { font-size: 15px; padding: 14px 32px; }

/* ── Stats ────────────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.stat-item:hover { background: var(--bg3); }
.stat-item:nth-child(4n) { border-right: none; }
.stat-item:nth-last-child(-n+4) { border-bottom: none; }

.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-small {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.stat-plus { font-size: 1.6rem; font-weight: 400; }
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}
.stat-context {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ── Section common ───────────────────────────────────────── */
.section-header { margin-bottom: 3.5rem; }
.section-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 500px; }

/* ── Services ─────────────────────────────────────────────── */
.services { padding: 6rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-card:hover { background: var(--bg2); }
.service-icon { font-size: 1.4rem; margin-bottom: 1rem; color: var(--accent); opacity: 0.85; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; }

/* Full-width 5th card */
.service-card--full {
  grid-column: 1 / -1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.service-card--full:hover { background: var(--bg3); }
.service-card-full-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.service-card-full-inner .service-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.service-card-full-inner > div { flex: 1; }
.accent-tag {
  color: var(--accent) !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
.service-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.service-tag {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

/* ── Social Proof ─────────────────────────────────────────── */
.proof {
  padding: 6rem 0;
  background: var(--bg2);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-card {
  background: var(--bg2);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.proof-card:hover { background: var(--bg3); }
.proof-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.proof-type {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.proof-year {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.proof-card h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.proof-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Experience ───────────────────────────────────────────── */
.experience { padding: 6rem 0; }
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-meta { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 3px; }
.timeline-date { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.timeline-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.timeline-company { font-size: 14px; color: var(--accent); margin-bottom: 0.75rem; font-weight: 600; }
.timeline-content p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 0.75rem; }

.role-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.role-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.role-item:last-child { border-bottom: none; }

.role-item--promoted {
  background: var(--bg2);
  position: relative;
}
.role-item--promoted::before {
  content: '↑';
  position: absolute;
  left: -18px;
  font-size: 11px;
  color: var(--accent);
  opacity: 0.6;
}

.role-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.role-period {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ── About / Advisor Profile ──────────────────────────────── */
.about {
  padding: 6rem 0;
  background: var(--bg2);
}
.about .section-header { margin-bottom: 2.5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

/* Photo */
.about-photo { display: flex; flex-direction: column; gap: 1rem; }

.photo-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  background: var(--bg3);
  filter: grayscale(100%);
  transition: filter 0.4s ease;
  width: 100%;
  max-width: 160px;
}
.photo-wrap:hover { filter: grayscale(60%); }
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.photo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.photo-title {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.about-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.pillar:last-child { border-bottom: none; }
.pillar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.pillar p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
}

/* Sidebar */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.about-education {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.edu-card {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.edu-card:last-child { border-bottom: none; }
.edu-degree { font-size: 13px; font-weight: 600; margin-bottom: 0.25rem; }
.edu-school { font-size: 13px; color: var(--muted); margin-bottom: 0.25rem; }
.edu-year { font-size: 11px; color: var(--accent); letter-spacing: 0.05em; }

.about-langs-block, .about-based {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--bg);
}
.lang-item {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0;
}
.lang-item .mono { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }
.based-value { font-size: 14px; color: var(--text); font-weight: 500; }

/* ── Contact ──────────────────────────────────────────────── */
.contact { padding: 6rem 0; }
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.contact-inner > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Form */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--border);
}
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field select option { background: var(--bg3); }
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-actions { margin-top: 0.5rem; }
.form-actions .btn { width: 100%; justify-content: center; }

.form-status {
  font-size: 13px;
  text-align: center;
  min-height: 1.5rem;
  border-radius: var(--radius);
  padding: 0;
  transition: all 0.3s ease;
}
.form-status.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 10px;
}
.form-status.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 10px;
}

/* Email reveal */
.contact-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.contact-alt-label {
  font-size: 13px;
  color: var(--muted);
}
.reveal-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.reveal-btn:hover { opacity: 0.7; }
.revealed-email {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.revealed-email a {
  color: var(--accent);
  text-decoration: none;
}
.revealed-email a:hover { text-decoration: underline; }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}
.contact-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-links a:hover { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer .mono { font-size: 12px; color: var(--muted); }
.footer-note { font-size: 12px; color: var(--border); }

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 160px 1fr; gap: 2.5rem; }
  .about-sidebar { display: none; }
}

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 130px 1fr; gap: 2rem; }
  .photo-wrap { max-width: 130px; }
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 100px 1fr; gap: 1.5rem; }
  .photo-wrap { max-width: 100px; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .container { padding: 0 1.25rem; }
}
