:root {
  --bg: #f5f0e8;
  --bg-soft: #ede4d8;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #1b1f24;
  --muted: #5f6874;
  --line: rgba(27, 31, 36, 0.12);
  --accent: #0b6b73;
  --accent-strong: #0f8a92;
  --warm: #c56f3e;
  --shadow: 0 24px 80px rgba(40, 45, 52, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.section,
#home {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(12, 107, 115, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(197, 111, 62, 0.14),
      transparent 24%
    ),
    linear-gradient(180deg, #f8f4ee 0%, #f1e9de 100%);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.ambient-one {
  width: 320px;
  height: 320px;
  background: rgba(11, 107, 115, 0.14);
  top: -120px;
  left: -80px;
}

.ambient-two {
  width: 280px;
  height: 280px;
  background: rgba(197, 111, 62, 0.18);
  top: 120px;
  right: -90px;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(245, 240, 232, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar-spacer {
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.nav-cta,
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(11, 107, 115, 0.24);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  padding: 40px 0 28px;
}

.hero-copy,
.hero-card,
.section,
.skill-card,
.project-card,
.timeline article,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

h1 {
  font-size: clamp(2.7rem, 14vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.2rem;
}

.hero-text,
.about-grid p,
.project-card p,
.timeline p,
.contact-section p,
.skill-card p,
.profile-block p,
.highlight-list p,
.footer p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-meta div {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(27, 31, 36, 0.08);
}

.meta-value,
.meta-label,
.status-dot,
.pill,
.project-tag,
.timeline-year {
  display: block;
}

.meta-value {
  font-weight: 700;
  margin-bottom: 4px;
}

.meta-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-top,
.profile-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pill,
.status-dot,
.project-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill {
  color: var(--accent);
}

.status-dot {
  color: var(--warm);
}

.profile-block {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.highlight-list {
  display: grid;
  gap: 14px;
}

.highlight-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.highlight-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(11, 107, 115, 0.12);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.section {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 24px;
}

.about-grid,
.skills-grid,
.project-grid,
.split-section,
.contact-section {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.skill-card,
.project-card,
.timeline article,
.contact-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.skill-card {
  min-height: 160px;
}

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

.project-tag {
  color: var(--warm);
  margin-bottom: 16px;
}

.project-link {
  color: inherit;
  text-decoration: none;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.project-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.project-card li + li {
  margin-top: 10px;
}

.split-section {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

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

.timeline-year {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-section {
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.contact-card a {
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
}

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

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

.site-footer {
  padding: 1rem 0 2rem;
}

.site-footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .hero,
  .about-grid,
  .skills-grid,
  .project-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card {
    order: 0;
  }

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

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }

  .topbar-spacer {
    height: 150px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .hero-meta,
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .site-footer {
    border-top: var(--outline);
    padding: 1rem 0;
    text-align: center;
    color: var(--muted);
  }
}
