:root {
  --bg: #f4efe7;
  --bg-soft: rgba(255, 250, 243, 0.72);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --text: #171e2b;
  --muted: #566070;
  --accent: #9f5d2f;
  --accent-strong: #7d431e;
  --line: rgba(23, 30, 43, 0.1);
  --shadow: 0 20px 80px rgba(38, 35, 31, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
  --section-gap: clamp(4rem, 8vw, 7rem);
  --card-padding: clamp(1.35rem, 2vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(205, 147, 95, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(94, 121, 160, 0.18), transparent 28%),
    linear-gradient(180deg, #fbf7f1 0%, #efe5d8 100%);
  line-height: 1.6;
}

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

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

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -10rem;
  left: -14rem;
  background: rgba(189, 124, 63, 0.22);
}

.ambient-right {
  right: -12rem;
  top: 10rem;
  background: rgba(94, 121, 160, 0.18);
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(23, 30, 43, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(23, 30, 43, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 180ms ease, transform 180ms ease;
}

.section {
  padding: var(--section-gap) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: stretch;
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

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

.hero h1,
.section-heading h2,
.site-footer h2,
.highlight-band h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  max-width: 11ch;
}

.hero-lead,
.hero-support,
.panel p,
.project-card p,
.project-points li,
.highlight-band p,
.experience-card p,
.skills-grid p,
.profile-meta dd {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-lead {
  max-width: 60ch;
  margin: 1.5rem 0 0;
}

.hero-support {
  max-width: 58ch;
  margin: 1rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.2rem 0 2.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.button:hover,
.site-nav a:hover,
.project-links a:hover,
.footer-links a:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff8f2;
  background: linear-gradient(135deg, #1f2f44 0%, #9f5d2f 100%);
  box-shadow: 0 16px 36px rgba(42, 46, 58, 0.24);
}

.button-secondary {
  border-color: rgba(23, 30, 43, 0.15);
  background: rgba(255, 255, 255, 0.48);
}

.button-secondary:hover {
  box-shadow: 0 10px 26px rgba(42, 46, 58, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-metrics article,
.profile-card,
.panel,
.project-card,
.highlight-band,
.site-footer {
  border: 1px solid rgba(23, 30, 43, 0.08);
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
}

.metric-value {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  font-weight: 800;
}

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

.profile-card {
  padding: clamp(1.5rem, 2vw, 2rem);
  border-radius: var(--radius-xl);
  align-self: start;
}

.profile-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #1f2f44 0%, #9f5d2f 100%);
  color: #fff7f0;
  font-weight: 800;
  font-size: 1.3rem;
}

.profile-role {
  margin: 0 0 0.3rem;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.profile-card h2,
.project-card h3,
.panel h3 {
  margin: 0;
  font-size: 1.45rem;
}

.profile-meta {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.profile-meta div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.profile-meta dt {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.profile-meta dd {
  margin: 0;
}

.skills-layout {
  display: grid;
  gap: 1.5rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 0.4rem;
}

.section-heading h2,
.site-footer h2,
.highlight-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.panel,
.project-card,
.highlight-band,
.site-footer,
.experience-card {
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
}

.project-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
  margin-top: 2rem;
}

.project-card-featured {
  grid-column: span 2;
  background:
    linear-gradient(140deg, rgba(255, 250, 242, 0.86), rgba(246, 234, 220, 0.82)),
    var(--bg-soft);
}

.project-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.project-card:hover,
.panel:hover,
.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(38, 35, 31, 0.14);
  border-color: rgba(23, 30, 43, 0.14);
}

.project-kicker {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.project-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.project-points li + li {
  margin-top: 0.45rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.tag-row span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(23, 30, 43, 0.06);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.project-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.project-links a,
.footer-links a {
  color: var(--accent-strong);
  font-weight: 700;
}

.experience-card h3 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.summary-copy {
  margin-top: 1rem;
  max-width: 70ch;
}

.summary-copy p + p {
  margin-top: 1rem;
}

.summary-block {
  max-width: 100%;
  padding: clamp(1.5rem, 2.2vw, 2.2rem);
  border: 1px solid rgba(23, 30, 43, 0.08);
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.summary-rail__title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-points-wrap {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23, 30, 43, 0.12);
}

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

.summary-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

.summary-points li + li {
  margin-top: 1rem;
}

.summary-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2f44 0%, #9f5d2f 100%);
}

.summary-points strong,
.summary-points span {
  display: block;
}

.summary-points strong {
  margin-bottom: 0.2rem;
  color: var(--text);
  font-size: 1rem;
}

.summary-points span {
  color: var(--muted);
}

.experience-card {
  border: 1px solid rgba(23, 30, 43, 0.08);
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.final-project-card {
  margin-top: 1.8rem;
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.experience-meta {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}

.highlight-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(31, 47, 68, 0.95), rgba(83, 57, 34, 0.92));
  color: #fff6ef;
}

.highlight-band .eyebrow,
.highlight-band p {
  color: rgba(255, 246, 239, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

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

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

@media (max-width: 960px) {
  .hero,
  .highlight-band,
  .site-footer,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .experience-head {
    flex-direction: column;
  }

  .experience-meta {
    white-space: normal;
  }

  .project-card-featured {
    grid-column: auto;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 1.2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .panel,
  .project-card,
  .highlight-band,
  .site-footer,
  .profile-card,
  .experience-card {
    padding: 1.25rem;
  }
}
