:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --ink: #1a1c1e;
  --muted: #4a4f55;
  --card: #fffdf8;
  --accent: #0b6b5a;
  --shadow: 0 25px 60px rgba(20, 20, 20, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

.parallax {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(11, 107, 90, 0.15), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(198, 137, 76, 0.18), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(23, 68, 102, 0.12), transparent 48%),
    linear-gradient(120deg, #f7f2ea 0%, #f1efe5 40%, #efe9dd 100%);
  background-attachment: fixed;
  animation: drift 18s ease-in-out infinite alternate;
}

.page {
  padding: 6vh 6vw 10vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.title-wrap {
  width: min(1050px, 100%);
  position: relative;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  animation: fade-up 1s ease-out both;
}

.resume {
  width: min(1050px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 4.5rem);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(10, 10, 10, 0.05);
  animation: fade-up 1s ease-out 0.1s both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.resume:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 35px 80px rgba(20, 20, 20, 0.22);
}

.hero {
  display: grid;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-image {
  margin: calc(clamp(2rem, 5vw, 4.5rem) * -1);
  margin-bottom: 1.5rem;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  overflow: hidden;
  position: relative;
  background: #121214;
}

.hero-info {
  display: grid;
}

.avatar {
  width: 100%;
  object-fit: cover;
  object-position: center 6%;
  display: block;
  transition: transform 0.45s ease;
}

.hero-image:hover .avatar {
  transform: scale(1.03);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  margin: 0 0 1rem;
}

.title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
}

.summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
}

.contact span + span::before {
  content: "|";
  margin-right: 0.75rem;
  color: rgba(26, 28, 30, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 107, 90, 0.3);
  position: relative;
  transition: color 0.25s ease;
}

a::after,
.project-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(11, 107, 90, 0.8), rgba(255, 214, 170, 0.9));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

a:hover,
.contact a:focus-visible {
  color: var(--accent);
}

a:hover::after,
a:focus-visible::after,
.project-links a:hover::after,
.project-links a:focus-visible::after {
  transform: scaleX(1);
}

.section {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section:last-of-type {
  margin-bottom: 0;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.role,
.project {
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.role:first-of-type,
.project:first-of-type {
  border-top: none;
  padding-top: 0;
}

.role-head,
.project-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.role-head h3,
.project-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.role-title {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.role-meta {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}

.project-stack {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.project-links {
  margin: 0.4rem 0 0.8rem;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 107, 90, 0.35);
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: #0f7d69;
  transform: translateY(-1px);
}

ul {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.skills {
  display: grid;
  gap: 1.1rem;
}

.skills h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.skills p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.award {
  background: rgba(11, 107, 90, 0.08);
  padding: 1.2rem;
  border-radius: 18px;
}

.award-title {
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.award-meta {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact {
    text-align: center;
  }

  .split {
    grid-template-columns: 1fr;
  }
  .avatar {
    object-position: center 4%;
  }
}

@media (min-width: 768px) and (max-width: 1440px) {
  .avatar {
    object-position: center 4%;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 4vh 4vw 8vh;
  }

  .resume {
    padding: 2rem 1.6rem;
    border-radius: 20px;
  }

  h2 {
    font-size: 1.1rem;
  }
  .avatar {
    object-position: center 5%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}
