:root {
  --pink-50: #fff3f7;
  --pink-100: #ffe1ea;
  --pink-200: #f9bfd1;
  --pink-700: #a92f62;
  --pink-900: #5d1733;
  --blue-50: #eef8fb;
  --blue-600: #257c91;
  --gold-100: #f7e6b7;
  --gold-600: #a77516;
  --cream: #fffaf2;
  --white: #ffffff;
  --ink: #24151b;
  --muted: #66545b;
  --line: rgba(93, 23, 51, 0.14);
  --shadow: 0 22px 60px rgba(93, 23, 51, 0.13);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 225, 234, 0.9), rgba(255, 250, 242, 0.96) 36rem),
    var(--pink-50);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(169, 47, 98, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 124, 145, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

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

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

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

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

ul {
  padding-left: 1.1rem;
}

li {
  margin: 0.35rem 0;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 124, 145, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  transform: translateY(-150%);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--pink-900);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(93, 23, 51, 0.1);
  background: rgba(255, 250, 252, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--container);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.text-logo {
  display: grid;
  line-height: 1.05;
  color: var(--pink-900);
  min-width: 13rem;
}

.text-logo span {
  font-size: 0.86rem;
  letter-spacing: 0;
}

.text-logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a[data-active="true"] {
  color: var(--pink-900);
  background: rgba(255, 225, 234, 0.72);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--pink-900);
}

.section-panel {
  padding: 5.5rem 0;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-grid,
.intro-grid,
.split-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--blue-600);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: var(--gold-600);
}

h1,
h2,
h3 {
  color: var(--pink-900);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.9rem);
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

h4 {
  margin-bottom: 0.4rem;
  color: var(--pink-900);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--pink-700);
  font-size: 1.18rem;
  font-weight: 800;
}

.hero-copy p:not(.hero-subtitle) {
  max-width: 680px;
  font-size: 1.05rem;
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.center-action {
  justify-content: center;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
}

.button svg,
.contact-links svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  color: var(--white);
  background: var(--pink-700);
  box-shadow: 0 14px 30px rgba(169, 47, 98, 0.24);
}

.button.secondary {
  color: var(--pink-900);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.headshot-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 251, 0.9)),
    var(--white);
  box-shadow: var(--shadow);
}

.headshot-card::before {
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid rgba(169, 47, 98, 0.18);
  border-radius: var(--radius);
  content: "";
}

.headshot-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--pink-100);
}

.headshot-card div {
  margin-top: 1rem;
  display: grid;
  gap: 0.1rem;
}

.headshot-card strong {
  color: var(--pink-900);
  font-size: 1.15rem;
}

.headshot-card span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 700px;
}

.section-heading.centered {
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.prose {
  padding: 2rem;
  border-left: 4px solid var(--gold-600);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.prose p:last-child {
  margin-bottom: 0;
}

.compact-work,
.projects-section,
.certifications-section,
.contact-section {
  background: rgba(255, 255, 255, 0.46);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
  max-width: 920px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  content: "";
  background: rgba(169, 47, 98, 0.18);
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1rem;
}

.experience-card > div:last-child,
.project-card,
.skill-card,
.badge-card,
.intro-stat,
.interest-panel,
.contact-form,
.contact-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(93, 23, 51, 0.08);
}

.experience-card > div:last-child {
  padding: 1.35rem;
}

.experience-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-600);
  font-size: 0.9rem;
  font-weight: 900;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  margin-top: 1.1rem;
  border: 5px solid var(--pink-50);
  border-radius: 50%;
  background: var(--pink-700);
  box-shadow: 0 0 0 1px rgba(169, 47, 98, 0.22);
}

.stat-grid,
.project-grid,
.skill-grid,
.badge-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--pink-900);
  color: var(--white);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.82);
}

.page-intro {
  padding: 4.5rem 0 3rem;
}

.page-intro h1 {
  font-size: clamp(2.7rem, 5vw, 4.9rem);
}

.intro-stat {
  padding: 1.5rem;
  border-top: 5px solid var(--blue-600);
}

.intro-stat strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--pink-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.skill-card,
.badge-card {
  padding: 1.35rem;
}

.project-card {
  display: grid;
  align-content: start;
}

.project-meta {
  min-height: 42px;
  display: flex;
  align-items: start;
  margin-bottom: 0.7rem;
}

.project-meta span {
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.project-card dt {
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue-600);
  font-weight: 900;
}

.badge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge-card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.badge-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 117, 22, 0.28);
  border-radius: 50%;
  color: var(--pink-900);
  background: var(--gold-100);
  font-size: 0.78rem;
  font-weight: 900;
}

.interests-section {
  background: rgba(238, 248, 251, 0.52);
}

.interest-panel {
  padding: 1.6rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.interest-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  color: var(--pink-900);
  background: var(--pink-50);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
}

.contact-grid {
  align-items: start;
}

.contact-copy,
.contact-form {
  padding: 1.5rem;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.contact-links a,
.contact-links > span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
}

.contact-links svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--pink-700);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--pink-900);
  font-weight: 900;
}

.contact-form .button {
  width: fit-content;
  border: 0;
}

.form-note {
  min-height: 1.4rem;
  margin: 0;
  color: var(--blue-600);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  background: rgba(255, 250, 242, 0.9);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-grid p {
  margin: 0;
}

.footer-grid div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-grid a {
  color: var(--pink-900);
  font-weight: 900;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 32px, 760px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links[data-open="true"] {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero-grid,
  .intro-grid,
  .split-layout,
  .contact-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .headshot-card {
    max-width: 460px;
    margin: 0 auto;
  }

  .stat-grid,
  .project-grid,
  .skill-grid,
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip .button {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 100%);
  }

  .nav-shell {
    min-height: 68px;
  }

  .text-logo {
    min-width: 0;
  }

  .text-logo strong {
    font-size: 1.12rem;
  }

  .nav-links {
    top: 68px;
    grid-template-columns: 1fr;
  }

  .section-panel {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.95rem, 11vw, 2.55rem);
  }

  .hero-actions,
  .center-action {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .prose,
  .contact-copy,
  .contact-form,
  .interest-panel,
  .experience-card > div:last-child,
  .project-card,
  .skill-card,
  .badge-card,
  .intro-stat {
    padding: 1rem;
  }

  .stat-grid,
  .project-grid,
  .skill-grid,
  .badge-grid,
  .project-card dl {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-grid div {
    display: grid;
    justify-content: start;
  }
}
