:root {
  --bg: #0f1115;
  --bg-2: #161a22;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --card: rgba(18, 21, 29, 0.78);
  --text: #f5f5f7;
  --muted: #b5bcc8;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #ba7d5a;
  --primary-strong: #d59673;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --wrap: 1180px;
  --radius: 24px;
}

body.light {
  --bg: #f3eee8;
  --bg-2: #e8e0d7;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.82);
  --text: #231d1a;
  --muted: #705f56;
  --line: rgba(35, 29, 26, 0.08);
  --primary: #b97854;
  --primary-strong: #8f5c40;
  --shadow: 0 24px 60px rgba(83, 63, 49, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(186, 125, 90, 0.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(136, 99, 81, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  position: relative;
}

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

p {
  margin: 0;
  line-height: 1.72;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
}

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

.bg-orb {
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 24px;
  filter: blur(65px);
  opacity: 0.22;
  pointer-events: none;
}

.orb-1 {
  top: -70px;
  left: -60px;
  background: var(--primary);
}

.orb-2 {
  right: -120px;
  top: 180px;
  background: #6f7f91;
}

.wrap {
  width: min(calc(100% - 32px), var(--wrap));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.hero {
  padding: 38px 0 18px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: var(--shadow);
}

.card-soft {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.card-hero {
  padding: 36px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--surface) 80%, transparent)),
    linear-gradient(120deg, rgba(186, 125, 90, 0.10), rgba(255, 255, 255, 0));
}

.card-feature {
  padding: 30px;
  min-height: 100%;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.hero-role {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 700px;
}

.hero-summary {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}

.btn {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
}

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

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
}

.meta-list,
.chip-list,
.language-list,
.contact-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-list li,
.chip,
.language-pill,
.contact-actions a,
.social-links a {
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.chip,
.language-pill,
.contact-actions a,
.social-links a {
  color: var(--text);
}

.meta-list li {
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.portrait-shell {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  padding: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(186, 125, 90, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portrait-shell::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portrait-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.hero-panel-card {
  padding: 24px;
}

.mini-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.hero-panel-card h2 {
  font-size: 1.55rem;
  margin: 8px 0 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  padding: 18px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.stat-item span {
  color: var(--muted);
}

.section {
  padding: 26px 0;
}

.footer {
  margin: 48px auto;
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
}

.footer-meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.about-layout,
.business-layout,
.edu-layout {
  display: grid;
  gap: 18px;
}

.about-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.business-layout,
.edu-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.sidebar-stack .card,
.languages-card,
.card-soft {
  padding: 26px;
}

.card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.card h2 {
  margin-bottom: 16px;
}

.business-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(186, 125, 90, 0.2), rgba(255, 255, 255, 0.03)),
    color-mix(in srgb, var(--card) 96%, transparent);
}

.business-kicker {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.info-list {
  margin: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px 12px;
}

.info-list dt {
  color: var(--muted);
  font-weight: 600;
}

.info-list dd {
  margin: 0;
  font-weight: 600;
}

.timeline,
.project-grid {
  display: grid;
  gap: 16px;
}

.timeline-item,
.project-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timeline-item::before,
.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), transparent);
}

.timeline-meta {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-item h3,
.project-card h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
}

.timeline-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.project-card p+p,
.timeline-item p {
  margin-top: 10px;
}

.contact-card {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

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

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

@media (max-width: 980px) {

  .hero-main,
  .about-layout,
  .business-layout,
  .edu-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .portrait-shell {
    width: min(290px, 100%);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 22px), var(--wrap));
  }

  .site-header-wrapper {
    width: 100%;
  }


  .card-hero,
  .card-feature,
  .business-card,
  .timeline-item,
  .project-card,
  .contact-card,
  .sidebar-stack .card,
  .languages-card {
    padding: 22px;
  }

  .nav {
    justify-content: center;
    gap: 14px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
  }

  .site-header.menu-open {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .site-header.menu-open .nav {
    display: flex;
    flex-direction: column;
    position: static;
    background: none;
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 10px 0 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.menu-open .nav a,
  .site-header.menu-open .nav .theme-toggle {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .site-header.menu-open .nav a:last-child,
  .site-header.menu-open .nav .theme-toggle:last-child {
    border-bottom: none;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}