/* =============================================
   RESET & CUSTOM PROPERTIES
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0E0E0D;
  --bg-secondary: #161614;
  --text:         #EEECEA;
  --text-muted:   #7A7A72;
  --accent:       #6A9EC8;
  --accent-hover: #8AB6D8;
  --accent-light: #0F1E2E;
  --border:       #252522;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 72px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --duration:   0.3s;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
img    { max-width: 100%; display: block; }
button { font-family: var(--font-sans); cursor: pointer; }


/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}


/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(14, 14, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  transition: opacity var(--duration);
}

.nav-logo:hover { opacity: 0.65; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--duration);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.nav-link.nav-cta::after { display: none; }

.nav-link.nav-cta:hover,
.nav-link.nav-cta.active {
  color: var(--bg);
  background: var(--accent-hover);
}


/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: var(--nav-height);
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  max-width: 720px;
  position: relative;
  padding: 5rem 0 3.5rem;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 2.25rem;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-divider {
  width: 0;
  height: 2px;
  background: var(--accent);
  margin: 0 0 1.75rem;
  animation: drawLine 1s var(--ease) 0.7s forwards;
}

@keyframes drawLine {
  from { width: 0; }
  to   { width: 72px; }
}

.hero-tagline {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.55;
  margin-bottom: 2.75rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}


/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* =============================================
   HERO VISUAL
   ============================================= */
.hero-visual {
  width: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--border);
  border-bottom: none;
  position: relative;
  background: linear-gradient(155deg, #0F1E2E 0%, #0A0E18 45%, #110E10 100%);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 20% 65%, rgba(106, 158, 200, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 78% 25%, rgba(106, 158, 200, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}


/* =============================================
   ABOUT SECTION (index only)
   ============================================= */
.about {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}

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

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.625rem;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.about-text p + p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}


/* =============================================
   PAGE HEADER  (experience + contact)
   ============================================= */
.page-header {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6rem;
}

.page-header-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4rem;
  align-items: end;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.page-header p {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 400px;
  font-weight: 300;
  line-height: 1.6;
}


/* =============================================
   EXPERIENCE TIMELINE
   ============================================= */
.experience-section {
  padding-bottom: 8rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.timeline-entry:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline-meta {
  padding-top: 0.25rem;
}

.timeline-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.timeline-type {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25em 0.625em;
}

.timeline-body {}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.4375rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-bullets li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 1.375rem;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--accent);
  font-size: 0.8125rem;
  line-height: inherit;
}


/* =============================================
   SKILLS SECTION  (experience page)
   ============================================= */
.skills-section {
  padding: 6rem 0 8rem;
  border-top: 1px solid var(--border);
}

.skills-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4rem;
  align-items: start;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}

.skill-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.skill-list {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .skills-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}


/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  padding-bottom: 8rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-info-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity var(--duration);
}

.contact-email-link:hover { opacity: 0.65; }

.contact-email-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #3A3A36;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--duration);
}

.footer-link:hover { color: var(--accent); }


/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) var(--delay, 0s) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease) var(--delay, 0s),
              transform 0.75s var(--ease) var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
  .about-inner,
  .page-header-inner,
  .timeline-entry,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-header { margin-bottom: 4rem; }
  .about { padding: 5rem 0; }

  .timeline-entry { padding: 2.5rem 0; gap: 1rem; }
  .timeline-type { margin-top: 0.25rem; }
}

@media (max-width: 540px) {
  :root { --nav-height: 64px; }

  .nav-links { gap: 1.5rem; }
  .nav-link  { font-size: 0.75rem; }

  .hero-content { padding: 3.5rem 0 2.5rem; }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn { width: 100%; }

  .contact-inner { gap: 3rem; }

  .footer-links { gap: 1.25rem; }
}
