:root {
  --teal-dark: #0b3b35;
  --teal-mid: #2f6f63;
  --teal-light: #cfe8df;
  --ink: #10110f;
  --paper: #ffffff;
  --line: #e3e3e0;
  --muted: #5b5d59;
  --radius-pill: 999px;
  --font-display: "Archivo Black", sans-serif;
  --font-accent: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

ul { margin: 0; padding: 0; list-style: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-light {
  background: #fff;
  color: var(--teal-dark);
  font-size: 16px;
  padding: 16px 32px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-option {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.lang-option.is-active { opacity: 1; }

.lang-sep { opacity: 0.4; }

.nav-link-contact-mobile { display: none; }

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal-mid) 45%, var(--teal-light) 85%, var(--paper) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}

.headline .accent {
  font-family: var(--font-accent);
  font-style: italic;
  text-transform: none;
  color: var(--ink);
  font-size: 0.9em;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 220px;
  height: 280px;
  border-radius: 120px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.hero-bio {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-bio .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Section titles */
.section-title,
.big-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 36px;
  font-size: clamp(24px, 3vw, 36px);
}

.big-title--light { color: #fff; }

/* What I do */
.what-i-do {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.what-i-do-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

.skills-list { display: flex; flex-direction: column; }

.skills-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.skills-list .skills-row:last-child { border-bottom: 1px solid var(--line); }

.skills-row h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0;
  text-transform: uppercase;
}

.skills-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  align-self: center;
}

/* Why me */
.why-me {
  border-top: 1px solid var(--line);
  padding: 90px 0;
  background: #fafaf8;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
}

.why-col {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.why-col:first-child { border-left: none; padding-left: 0; }

.why-col--lead { display: flex; align-items: flex-start; }
.why-col--lead .section-title { margin: 0; }

.why-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.why-col h3 {
  font-size: 16px;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.why-col p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Experience */
.experience {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.timeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.exp-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.timeline .exp-card:last-child { border-bottom: 1px solid var(--line); }

.exp-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.exp-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.exp-company {
  margin: 0 0 16px;
  color: var(--teal-mid);
  font-weight: 600;
  font-size: 14.5px;
}

.exp-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.exp-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-mid);
}

/* Education */
.education {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}

.education-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 40px;
}

.edu-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.edu-list .edu-item:last-child { border-bottom: 1px solid var(--line); }

.edu-item h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.edu-school {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 4px;
}

.edu-meta {
  color: var(--teal-mid);
  font-weight: 600;
  font-size: 13px;
  margin: 0;
}

.languages-title {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 18px;
}

.languages li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.languages li:last-child { border-bottom: 1px solid var(--line); }
.languages li span:first-child { font-weight: 600; }
.languages li span:last-child { color: var(--muted); }

/* Contact */
.contact {
  padding: 110px 0;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  color: #fff;
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-text {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Contact form */
.contact-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.form-row--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  left: -9999px;
}

#formSubmit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

#formSubmit:disabled,
#formSubmit.is-sending {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  margin: 0;
}

.form-status.is-success { color: #bff5d8; }
.form-status.is-error { color: #ffd1d1; }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap { order: -1; margin-bottom: 24px; }
  .what-i-do-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
  .why-col { border-left: none; padding: 0; }
  .why-col--lead { grid-column: 1 / -1; }
  .skills-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .exp-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: var(--teal-dark);
    padding: 24px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .nav-link-contact-mobile { display: block; }
  .nav-bar { gap: 12px; }
}

@media (max-width: 480px) {
  .lang-toggle { padding: 6px 10px; font-size: 11px; }
  .form-row input,
  .form-row textarea { font-size: 14px; }
}
