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

:root {
  --bg:        #1a0f2e;
  --purple:    #7c3aed;
  --purple-lt: #a78bfa;
  --purple-dim:#4c1d95;
  --text:      #f3eeff;
  --text-muted:#9d8bbf;
  --text-faint:#4e3d6e;
  --font: 'Avenir Next', 'Avenir', 'Century Gothic', sans-serif;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: #f3eeff;
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(26, 15, 46, 0.92) 0%,
    rgba(26, 15, 46, 0.72) 50%,
    rgba(26, 15, 46, 0.3) 100%
  );
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: relative;
  z-index: 10;
}

nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-lt);
  text-decoration: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: .5rem 3rem 3rem;
  max-width: 100%;
  position: relative;
  z-index: 10;
  text-align: right;
}

main > div {
  max-width: 680px;
  width: 100%;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f3eeff;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

h1 span {
  color: var(--purple-lt);
}

h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3eeff;
  margin-bottom: .75rem;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 0.6s ease forwards 0.2s;
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3eeff;
  margin-bottom: 0.6rem;
}

p {
  margin-top: .25rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  color: #f3eeff;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.7s ease forwards 0.65s;
}

strong {
  font-weight: 650;
}

li {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  color: #f3eeff;
  list-style: disc;
  margin-left: 3rem;
}

hr {
  margin-top: 20px;
  height: 2px;
  border: none;
  background: var(--text-faint);
}

section {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.7s ease forwards 0.85s;
}

section + section {
  margin-top: 1.5rem;
  animation-delay: 1s;
}

section > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

section > div.photo-grid {
  display: grid;
  flex-wrap: unset;
  justify-content: unset;
  margin-bottom: 0;
}

a.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--purple-dim);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f3eeff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: rgba(124, 58, 237, 0.2);
}

a.pill:hover {
  border-color: var(--purple-lt);
  background: rgba(124, 58, 237, 0.35);
}

a.pill span {
  font-size: 1rem;
  opacity: 0.45;
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
}

a.pill:hover span {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #231540;
  border: 1px solid var(--purple-dim);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  z-index: 10000;
  margin: auto;
}

.modal h3 { margin-bottom: 1rem; }

.modal p {
  margin-top: 0;
  opacity: 1;
  transform: none;
  animation: none;
  font-weight: 300;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #f3eeff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.modal-close:hover { opacity: 1; }

a.linktomodal {
  text-decoration: none;
  cursor: pointer;
  color: #f3eeff;
}

a.linktomodal:hover {
  text-decoration: underline;
  color: #f3eeff;
}

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

.banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

footer {
  padding: .75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 1.1s;
  position: relative;
  z-index: 10;
}

footer p {
  font-size: 1rem;
  color: #f3eeff;
  letter-spacing: 0.04em;
  margin-top: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  nav, main, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .bg-photo { background-position: 30% center; }
  .bg-overlay { background: linear-gradient(
    to left,
    rgba(26, 15, 46, 0.98) 0%,
    rgba(26, 15, 46, 0.92) 50%,
    rgba(26, 15, 46, 0.75) 100%
  ); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .banner,
  .photo-grid { max-width: calc(100vw - 3rem); }
}
