:root {
  --plum: #16201f;
  --muted: #64706f;
  --paper: #fff8fb;
  --soft: #f7eff3;
  --panel: #ffffff;
  --line: #d9ddd7;
  --accent: #b452cc;
  --accent-2: #d464bd;
  --lilac: #8d6fd1;
  --white: #ffffff;
  --gradient-hero: linear-gradient(135deg, #fff8fb 0%, #f7eff3 54%, #f3eef7 100%);
  --gradient-soft: linear-gradient(180deg, #fff8fb 0%, #f7eff3 100%);
  --wash-soft:
    radial-gradient(circle at 12% 10%, rgba(212, 100, 189, 0.08), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(141, 111, 209, 0.1), transparent 30%),
    var(--gradient-soft);
  --shadow-soft: 0 24px 70px rgba(22, 32, 31, 0.12);
  --shadow-glow: 0 0 80px rgba(180, 82, 204, 0.16);
  --display: "Fraunces", "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: light;
  font-family: var(--body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash-soft);
  color: var(--plum);
  font-family: var(--body);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 251, 0.72);
  border-bottom: 1px solid rgba(217, 221, 215, 0.48);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1152px) / 2 + 24px));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 34px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.brand:hover {
  color: var(--accent);
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

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

.button.primary,
.header-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(180, 82, 204, 0.22);
  color: var(--plum);
}

.header-button {
  justify-self: end;
  min-height: 36px;
  padding: 0 18px;
}

.section-label,
.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 78px);
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.72fr);
  min-height: 830px;
  overflow: hidden;
  padding: 160px max(24px, calc((100vw - 1152px) / 2 + 24px)) 110px;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 248, 0.9), rgba(255, 248, 251, 0.84) 50%, rgba(255, 248, 251, 0.98)),
    linear-gradient(135deg, rgba(22, 32, 31, 0.05), rgba(141, 111, 209, 0.08)),
    url("assets/hero-gradient.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 1;
  position: absolute;
  z-index: -2;
}

.hero::after {
  background:
    radial-gradient(circle at 78% 34%, rgba(141, 111, 209, 0.08), transparent 30%),
    radial-gradient(circle at 14% 18%, rgba(212, 100, 189, 0.05), transparent 32%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-copy {
  min-width: 0;
}

.hero .kicker {
  margin-bottom: 34px;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.98;
  margin-bottom: 28px;
  max-width: 930px;
}

h1 span,
.contact h2 span {
  color: var(--accent-2);
}

.hero-text {
  color: var(--muted);
  font-size: 1.17rem;
  line-height: 1.55;
  max-width: 590px;
}

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

.hero-photo {
  align-self: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 248, 0.46)),
    radial-gradient(circle at 35% 20%, rgba(212, 100, 189, 0.08), transparent 42%);
  border: 1px solid rgba(22, 32, 31, 0.08);
  border-radius: 32px;
  box-shadow: 0 26px 80px rgba(22, 32, 31, 0.12);
  margin: 0;
  padding: 10px;
  position: relative;
}

.hero-photo::before {
  background:
    radial-gradient(circle, rgba(141, 111, 209, 0.12), transparent 62%);
  content: "";
  height: 76%;
  left: -12%;
  position: absolute;
  top: 8%;
  width: 82%;
  z-index: -1;
}

.hero-photo::after {
  display: none;
}

.hero-photo img {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  box-shadow: none;
  height: auto;
  object-fit: cover;
  object-position: center top;
  position: relative;
  width: 100%;
  z-index: 1;
}

.about,
.work,
.experience,
.contact {
  padding-left: max(24px, calc((100vw - 1152px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1152px) / 2 + 24px));
}

.about {
  background: var(--paper);
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  min-height: 0;
  padding-bottom: 128px;
  padding-top: 128px;
}

.about-main {
  max-width: 760px;
}

.about h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 26px;
}

.about-main > p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 710px;
}

.stat-row {
  display: grid;
  gap: 90px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 54px;
  max-width: 610px;
}

.stat-row strong {
  color: var(--accent);
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
}

.stat-row span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
}

.work {
  background: var(--paper);
  padding-bottom: 128px;
  padding-top: 128px;
}

.work-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 58px;
}

.work-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin: 16px 0 0;
}

.work-heading > p {
  color: var(--muted);
  margin-bottom: 8px;
}

.work-list {
  border-bottom: 1px solid rgba(217, 221, 215, 0.72);
  border-top: 1px solid rgba(217, 221, 215, 0.72);
}

.work-item {
  align-items: start;
  border-bottom: 1px solid rgba(217, 221, 215, 0.72);
  display: grid;
  gap: 28px;
  grid-template-columns: 70px minmax(360px, 1.2fr) minmax(260px, 0.95fr) 24px;
  padding: 32px 0;
  transition: background 180ms ease, transform 180ms ease;
}

.work-item:hover {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding-left: 16px;
  padding-right: 16px;
  transform: translateY(-1px);
}

.work-item time,
.experience-card time {
  color: var(--muted);
  font-size: 0.9rem;
}

.work-item h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0;
}

.work-item p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.work-item a {
  color: var(--accent);
  font-size: 1.32rem;
  line-height: 1;
  text-decoration: none;
}

.experience {
  background: var(--paper);
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(520px, 1.3fr);
  min-height: 0;
  padding-bottom: 128px;
  padding-top: 128px;
}

.experience-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 16px 0 22px;
}

.experience-copy p:not(.section-label) {
  color: var(--muted);
  max-width: 340px;
}

.experience-list {
  display: grid;
  gap: 10px;
}

.experience-card {
  align-items: start;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(22, 32, 31, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 100px;
  padding: 24px 28px;
}

.experience-card h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.experience-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact {
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 100, 189, 0.08), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(141, 111, 209, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 251, 0.72), rgba(247, 239, 243, 0.98)),
    url("assets/hero-gradient.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  min-height: 620px;
  padding-bottom: 128px;
  padding-top: 128px;
  text-align: center;
}

.contact h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  margin: 22px auto 32px;
  max-width: 790px;
}

.contact > p:not(.section-label) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
  max-width: 610px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 48px;
}

.footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  min-height: 96px;
  padding: 0 7.7vw;
}

.footer p {
  margin-bottom: 0;
}

.footer address {
  font-family: var(--body);
  font-style: italic;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 16px 24px;
  }

  .header-button {
    justify-self: start;
  }

  h1 {
    font-size: 4.55rem;
  }

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

  .hero-photo {
    max-width: 420px;
  }

  .about,
  .experience {
    grid-template-columns: 1fr;
  }

  .experience {
    padding-top: 110px;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .work-item a {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero,
  .about,
  .work,
  .experience,
  .contact {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .hero-photo::before,
  .hero-photo::after {
    display: none;
  }

  h1 {
    font-size: 3.35rem;
  }

  .about h2,
  .experience-copy h2,
  .work-heading h2 {
    font-size: 2.25rem;
  }

  .contact h2 {
    font-size: 2.85rem;
  }

  .stat-row {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .work-heading,
  .experience-card,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-card {
    display: flex;
  }
}
