:root {
  --bg: #f4efe7;
  --bg-strong: #eadfce;
  --surface: rgba(255, 250, 245, 0.76);
  --surface-strong: #fff9f3;
  --text: #181511;
  --muted: #655a4f;
  --line: rgba(24, 21, 17, 0.12);
  --accent: #c6632b;
  --accent-deep: #7c2f14;
  --shadow: 0 18px 60px rgba(69, 36, 11, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 99, 43, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(124, 47, 20, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f1ea 0%, #efe6da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 21, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 21, 17, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

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

.topbar,
.hero,
.intro-panel,
.metric,
.timeline-item,
.skill-card,
.education-panel,
.contact-panel {
  backdrop-filter: blur(18px);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 249, 243, 0.62);
  box-shadow: var(--shadow);
}

.wordmark,
.topbar a,
.button,
.social-links a,
.contact-list a {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 249, 243, 0.9);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
}

.wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.topbar-links a:hover,
.social-links a:hover,
.contact-list a:hover,
.wordmark:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  margin-top: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.9), rgba(234, 223, 206, 0.8)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 99, 43, 0.26), rgba(198, 99, 43, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 28px;
  margin-top: 28px;
}

.eyebrow,
.section-kicker,
.card-label,
.timeline-date,
.education-years {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.hero-title,
.timeline-company,
.timeline-role,
.card-value,
.metric-value {
  font-family: "Archivo", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-title {
  margin: 16px 0 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--muted);
}

.hero-summary,
.intro-panel p,
.timeline-body p,
.timeline-body li,
.skill-card p,
.contact-list,
.education-panel p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-summary {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.button-solid {
  background: var(--text);
  border-color: var(--text);
  color: #fff7ef;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.hero-card,
.intro-panel,
.metric,
.timeline-item,
.skill-card,
.education-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card-section + .hero-card-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card-label,
.card-value {
  margin: 0;
}

.card-value {
  font-size: 1.08rem;
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(198, 99, 43, 0.12);
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a,
.contact-list a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.section {
  margin-top: 28px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro-panel {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.project-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(124, 47, 20, 0.05), rgba(255, 250, 245, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-actions {
  display: flex;
  flex-shrink: 0;
}

.project-header h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.project-subtitle,
.project-summary,
.project-details p,
.project-details li {
  color: var(--muted);
  line-height: 1.7;
}

.project-subtitle {
  margin: 8px 0 0;
  font-weight: 700;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(198, 99, 43, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.project-demo-link {
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff7ef;
}

.project-demo-link:hover {
  transform: translateY(-1px);
  background: #2a241e;
  border-color: #2a241e;
}

.project-github-link {
  border: 1px solid rgba(42, 36, 30, 0.18);
  background: rgba(255, 247, 239, 0.9);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.project-github-link:hover {
  transform: translateY(-1px);
  background: rgba(198, 99, 43, 0.12);
  border-color: rgba(198, 99, 43, 0.3);
}

.project-summary {
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.project-details {
  margin-top: 18px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-details p {
  margin: 0;
}

.project-details ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.intro-panel p {
  margin: 0;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 22px;
}

.metric-value {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 26px;
}

.timeline-item.featured {
  background:
    linear-gradient(180deg, rgba(198, 99, 43, 0.08), rgba(255, 250, 245, 0.85)),
    var(--surface);
}

.timeline-company,
.timeline-role,
.timeline-date,
.timeline-body p,
.timeline-body ul {
  margin: 0;
}

.timeline-company {
  font-size: 1.45rem;
  font-weight: 800;
}

.timeline-role {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--muted);
}

.timeline-date {
  margin-top: 14px;
}

.timeline-body ul {
  margin-top: 14px;
  padding-left: 18px;
}

.skills-section .skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 24px;
}

.skill-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.skill-card p {
  margin: 0;
}

.education-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.education-panel,
.contact-panel {
  padding: 28px;
}

.education-panel h2,
.contact-panel h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.education-panel p,
.contact-panel p {
  margin: 8px 0 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .timeline-item,
  .education-contact,
  .skills-section .skill-grid,
  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar,
  .hero,
  .intro-panel,
  .project-card,
  .timeline-item,
  .skill-card,
  .education-panel,
  .contact-panel,
  .metric {
    border-radius: 22px;
  }

  .topbar {
    padding: 14px;
  }

  .topbar-links {
    gap: 10px;
  }

  .topbar-links a:not(.button) {
    display: none;
  }

  .hero {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .hero-summary,
  .intro-panel p,
  .timeline-body p,
  .timeline-body li,
  .skill-card p,
  .contact-list,
  .education-panel p {
    font-size: 0.98rem;
  }

  .timeline-item {
    padding: 22px;
  }

  .project-card {
    padding: 22px;
  }

  .project-header {
    flex-direction: column;
  }

  .project-actions {
    align-items: flex-start;
  }
}
