:root {
  --bg: #f7f2e8;
  --bg-soft: #efe5d6;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffaf2;
  --surface-alt: #f4eadc;
  --text: #2f241d;
  --muted: #6f6157;
  --line: rgba(120, 98, 78, 0.14);
  --accent: #d97745;
  --accent-strong: #c95f2d;
  --accent-soft: #f0c9a2;
  --accent-2: #8b6f47;
  --shadow: 0 24px 70px rgba(113, 76, 39, 0.12);
  --shadow-soft: 0 16px 36px rgba(125, 92, 60, 0.08);
  --radius: 24px;
  --nav-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 69, 0.18), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(240, 201, 162, 0.72), transparent 22%),
    linear-gradient(180deg, #f9f4eb 0%, #f7f2e8 46%, #efe6d7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(176, 141, 110, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 141, 110, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 86%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  color: #fff8f0;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-text,
.topbar-links a,
.button,
.project-tag,
.timeline-date,
.card-label,
.project-link {
  letter-spacing: 0.02em;
}

.brand-text {
  font-weight: 700;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.topbar-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease;
}

.topbar-links a:hover,
.topbar-links a.is-active {
  color: var(--text);
  background: rgba(217, 119, 69, 0.12);
  transform: translateY(-1px);
}

.hero {
  padding-bottom: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.feature-band,
.project-card,
.skill-panel,
.education-card,
.contact-section,
.timeline-item {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  padding: 48px;
  border-radius: 36px;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 69, 0.18), transparent 68%);
}

.hero-card {
  padding: 28px;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.lead,
.intro-grid p,
.timeline-item p,
.project-card p,
.education-card p,
.feature-band p,
.contact-grid a {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

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

.button.primary {
  color: #fff8f0;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 32px rgba(201, 95, 45, 0.18);
}

.button.secondary,
.button.ghost {
  border: 1px solid rgba(120, 98, 78, 0.16);
  background: rgba(255, 255, 255, 0.45);
}

.button.ghost {
  color: var(--accent-strong);
}

.card-label {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  gap: 18px;
}

.stat-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(120, 98, 78, 0.1);
}

.stat-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.18rem;
  color: var(--text);
}

.stat-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 44px 0 0;
  scroll-margin-top: calc(var(--nav-height) + 36px);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

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

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

.timeline-item {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  overflow: hidden;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 69, 0.16), transparent 68%);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.timeline-meta {
  margin: 0 0 12px;
  color: #4f423a;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(217, 119, 69, 0.11), rgba(240, 201, 162, 0.2)),
    var(--surface-strong);
}

.project-grid,
.skills-layout,
.education-grid {
  display: grid;
  gap: 18px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.skill-panel,
.education-card {
  padding: 24px;
  border-radius: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(113, 76, 39, 0.16);
  border-color: rgba(201, 95, 45, 0.24);
}

.project-tag {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  text-transform: uppercase;
  font-size: 0.82rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(217, 119, 69, 0.1);
  transition: transform 0.24s ease, background-color 0.24s ease;
}

.project-link:hover {
  transform: translateX(4px);
  background: rgba(217, 119, 69, 0.16);
}

.skills-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.education-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-2);
}

.contact-section {
  padding: 30px;
  border-radius: 30px;
}

.contact-grid {
  margin-top: 20px;
}

.contact-grid a {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(120, 98, 78, 0.1);
  background: rgba(255, 255, 255, 0.46);
  transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.contact-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 95, 45, 0.22);
  background: rgba(255, 250, 244, 0.9);
}

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

.reveal.delay-1 {
  transition-delay: 0.12s;
}

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

.section-spotlight {
  animation: section-spotlight 0.9s ease;
}

@keyframes section-spotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 69, 0);
  }

  35% {
    box-shadow: 0 0 0 18px rgba(217, 119, 69, 0.12);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 69, 0);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .feature-band,
  .skills-layout,
  .education-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid .project-card:last-child {
    grid-column: 1 / -1;
  }

  .skills-layout .skill-panel:last-child,
  .education-grid .education-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 132px;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .topbar-links,
  .hero-actions {
    flex-direction: column;
  }

  .intro-grid,
  .contact-grid,
  .hero-grid,
  .feature-band,
  .skills-layout,
  .education-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    border-radius: 28px;
  }

  .hero-copy,
  .hero-card,
  .feature-band,
  .contact-section {
    padding: 22px;
  }

  h1,
  h2 {
    max-width: 100%;
  }
}
