:root {
  --plum: #540d6e;
  --pink: #ee4266;
  --yellow: #ffd23f;
  --teal: #3bceac;
  --green: #0ead69;
  --ink: #0f1324;
  --muted: #5c6078;
  --surface: #f7f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f9f7ff 0%, #f4fbf9 50%, #fdf9f2 100%);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  margin: 0 0 0.3em;
}

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

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(12, 17, 41, 0.06);
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--plum);
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-weight: 600;
}

.nav-links a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(84, 13, 110, 0.08);
  color: var(--plum);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 6vw;
  margin: 2rem 0 1rem;
  background: radial-gradient(circle at 20% 20%, rgba(84, 13, 110, 0.08), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(238, 66, 102, 0.08), transparent 30%),
              linear-gradient(120deg, rgba(255, 210, 63, 0.25), rgba(59, 206, 172, 0.1));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
}

.hero-text .lede {
  max-width: 42ch;
  margin: 0.6rem 0 1.2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(84, 13, 110, 0.2);
}

.button.ghost {
  background: var(--white);
  color: var(--plum);
  border-color: rgba(84, 13, 110, 0.2);
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.hero-image {
  margin: 0;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 17, 41, 0.06);
}

.hero-image img {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.section-card {
  margin: 2rem 6vw;
  padding: 2.6rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 17, 41, 0.05);
}

.section-card.alt {
  background: linear-gradient(180deg, rgba(84, 13, 110, 0.04), rgba(255, 210, 63, 0.05));
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
}

.body-text {
  font-size: 1.05rem;

  a {
    color: var(--teal);
    text-decoration: underline;
  }
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.highlight-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}

.highlight-list li {
  margin-bottom: 0.6rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.work-card {
  background: var(--white);
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(12, 17, 41, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.work-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.25rem;
}

.work-card h3 a {
  color: var(--ink);
  text-decoration: underline;
}

.work-card h3 a:hover,
.work-card h3 a:focus {
  color: var(--teal);
}

.card-text {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 12px;
  background: rgba(238, 66, 102, 0.12);
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.badge.accent {
  background: rgba(59, 206, 172, 0.15);
  color: var(--green);
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta li {
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  background: rgba(12, 17, 41, 0.06);
  font-weight: 600;
  color: var(--ink);
}

.section-card.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(84, 13, 110, 0.1), rgba(59, 206, 172, 0.12));
}

.site-footer {
  margin: 2rem 0 1.5rem;
  padding: 1.4rem 6vw 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--plum);
}

.footer-note {
  margin: 0;
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.logo-icon {
  width: 18px;
  height: 18px;
}

.project-hero {
  margin: 2rem 6vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.project-info {
  background: var(--white);
  border: 1px solid rgba(12, 17, 41, 0.06);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-list li {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(12, 17, 41, 0.06);
  font-weight: 600;
  color: var(--ink);
}

.media-block {
  background: var(--white);
  border: 1px solid rgba(12, 17, 41, 0.06);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin: 0;
  height: 100%;
}

.project-video {
  width: 100%;
  height: 92%;
  border-radius: 14px;
  border: 1px solid rgba(12, 17, 41, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--plum);
  margin: 1rem 6vw 0.5rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 6vw;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    width: 100%;
    margin-top: 0.8rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-card {
    padding: 2rem;
  }

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