﻿:root {
  --ink: #1d1a17;
  --paper: #f4efe9;
  --paper-2: #efe6dc;
  --accent: #d1742f;
  --accent-2: #2f6b5a;
  --muted: #6a625a;
  --shadow: rgba(29, 26, 23, 0.15);
  --radius: 22px;
  --max-width: 1100px;
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fef6ef 0%, #f4efe9 50%, #efe6dc 100%);
  min-height: 100vh;
  line-height: 1.5;
}

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

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

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

.bg-orbit {
  position: fixed;
  inset: -10vh auto auto -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(209, 116, 47, 0.18), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(29, 26, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 26, 23, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -3;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(244, 239, 233, 0.8);
  border-bottom: 1px solid rgba(29, 26, 23, 0.08);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(29, 26, 23, 0.2);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  transform: scaleX(1);
}

.lang-toggle {
  border: 1px solid rgba(29, 26, 23, 0.2);
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 0;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: #f8f5f0;
  padding: 22px 24px;
  display: grid;
  align-content: start;
  gap: 18px;
  box-shadow: 18px 0 40px rgba(29, 26, 23, 0.2);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 20;
}

.mobile-nav a {
  font-size: 18px;
  color: var(--ink);
}

.mobile-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-bottom: 10px;
}

.mobile-nav.show {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 31, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 15;
}

.mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  padding: 80px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 10px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-role {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(209, 116, 47, 0.3);
}

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

.btn.ghost {
  border-color: rgba(29, 26, 23, 0.2);
  background: transparent;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(29, 26, 23, 0.12);
  box-shadow: 0 30px 60px var(--shadow);
  padding: 26px;
}

.hero-card-inner {
  display: grid;
  gap: 16px;
}

.card-title {
  font-weight: 600;
  font-size: 18px;
}

.card-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  background: rgba(47, 107, 90, 0.1);
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--paper-2);
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
}

.section-header p {
  color: var(--muted);
  max-width: 560px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.about-text {
  font-size: 17px;
  color: var(--muted);
}

.about-highlights {
  display: grid;
  gap: 16px;
}

.highlight {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(29, 26, 23, 0.12);
  background: #fffaf5;
}

.highlight h3 {
  margin-bottom: 8px;
}

.project-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
}

.project-card {
  background: #fffaf5;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(29, 26, 23, 0.12);
  box-shadow: 0 18px 40px var(--shadow);
  display: grid;
  gap: 12px;
}

.project-card h3 {
  font-size: 20px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.project-meta span {
  border: 1px solid rgba(29, 26, 23, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.project-link {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  background: #fffaf5;
  border-radius: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(29, 26, 23, 0.12);
  display: grid;
  gap: 8px;
}

.timeline-role {
  font-weight: 600;
}

.timeline-meta {
  color: var(--muted);
  font-size: 14px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(29, 26, 23, 0.15);
  background: #fffaf5;
  font-size: 14px;
}

.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: var(--radius);
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card .btn.ghost {
  border-color: rgba(244, 239, 233, 0.4);
  color: var(--paper);
}

.site-footer {
  padding: 30px 0 50px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .header-inner {
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-flex;
    order: 1;
  }

  .logo {
    order: 2;
  }

  .lang-toggle {
    order: 3;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .contact-card {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .lang-toggle {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .hero-role {
    font-size: 19px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .hero-card,
  .project-card,
  .timeline-item {
    padding: 18px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(92%, var(--max-width));
  }

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

  .hero-cta .btn {
    width: 100%;
  }

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

  .hero-meta .dot {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav {
    gap: 14px;
    font-size: 14px;
  }
}

