:root {
  --navy-950: #211a36;
  --navy-900: #2d2448;
  --navy-800: #493b70;
  --blue-500: #77639e;
  --blue-50: #f4f1f6;
  --slate-700: #514a60;
  --white: #ffffff;
  --border: #d6cfdd;
  --page-width: 1180px;
  --radius: 7px;
  --title-font: Baskerville, "Baskerville Old Face", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue-50);
  color: var(--navy-950);
  font-family: "Times New Roman", Times, serif;
  -webkit-font-smoothing: antialiased;
}

main { width: 100%; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: 7rem max(7vw, calc((100% - var(--page-width)) / 2)) 5rem;
  background: #332851;
}

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

.hero-portrait {
  width: min(100%, 390px);
  margin: 0;
  justify-self: end;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: #493b70;
  object-fit: cover;
  object-position: center;
}

.hero-portrait figcaption {
  margin-top: 0.75rem;
  color: #bfb3c5;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: right;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: #cfb4dc;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--white);
  font-family: var(--title-font);
  font-size: clamp(4.25rem, 12vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 0.82;
}

.hero-subtitle {
  max-width: 760px;
  margin: 2.5rem 0 0.85rem;
  color: #f0eaf2;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
}

.hero-note {
  max-width: 660px;
  margin: 0;
  color: #cbbfd0;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.4rem max(7vw, calc((100% - var(--page-width)) / 2));
  background: #332653;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 5px solid #b79ac2;
  box-shadow: 0 8px 24px rgba(33, 26, 54, 0.18);
}

.contact-strip a {
  padding: 0.62rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #f3ecf5;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-strip a:hover,
.contact-strip a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.projects-section {
  padding: 5.5rem max(7vw, calc((100% - var(--page-width)) / 2)) 7rem;
  background: var(--blue-50);
}

.projects-section h2 {
  margin: 0 0 2.75rem;
  color: var(--navy-950);
  font-family: var(--title-font);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(42, 32, 58, 0.07);
}

.project-text h3 {
  position: relative;
  margin: 0 0 1.35rem;
  padding-bottom: 0.65rem;
  color: var(--navy-950);
  font-family: var(--title-font);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.05;
  -webkit-text-stroke: 0.15px currentColor;
}

.project-text h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3.25rem;
  height: 3px;
  background: #806397;
  content: "";
}

.project-tag {
  margin: 0 0 0.85rem;
  color: #6f4f8b;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-tag span { color: #ab94b4; }

.project-text p {
  margin: 0 0 1rem;
  color: #302a39;
  font-size: 1.02rem;
  line-height: 1.72;
}

.project-text ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #302a39;
}

.project-text li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
  line-height: 1.55;
}

.project-text li::marker { color: var(--blue-500); }

.project-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #aa95b6;
  border-radius: 4px;
  background: linear-gradient(145deg, #f0eaf2, #e2d9e8);
  color: #725f7c;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a:focus-visible {
  outline: 3px solid #bea0ca;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .hero {
    min-height: 72vh;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 7% 3.5rem;
  }

  .hero h1 { font-size: clamp(3.6rem, 18vw, 6.5rem); }

  .hero-portrait {
    width: min(82%, 360px);
    justify-self: start;
  }

  .contact-strip {
    justify-content: flex-start;
    padding-inline: 7%;
  }

  .projects-section { padding: 4rem 7% 5rem; }

  .project-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image { min-height: 220px; }
}

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