:root {
  --red:      #B01C2E;
  --red-dim:  rgba(176, 28, 46, 0.22);
  --white:    #EDE8E2;
  --black:    #070707;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Cinzel', serif;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

button {
  background-color: var(--red);
  border: 0;
  border-radius: 0.3em;
  color: var(--white);
  cursor: pointer;
  font-family: 'Montserrat', serif;
  font-weight: bold;
  padding: 0.7em 1.3em;
  animation: rise 1.3s ease 3.3s forwards;
}

.alumni, .undergrads {
  align-items: center;
  animation: rise 1s ease 2.5s forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: width 0.5s ease, opacity 0.5s ease;
  width: 33%;
}

.desktop { 
  display: flex;
}

.hidden {
  width: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.mobile {
  display: none;
  gap: 15px;
}

.social-bar {
  display: flex;
  flex-direction: row;
  gap: 1.3em;
  margin: 1.5em 0;
}

.stage {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33%;
}

/* ΘΧ — large military-red block letters */
.letters-primary {
  font-weight: 900;
  font-size: clamp(7rem, 24vw, 20rem);
  color: var(--red);
  letter-spacing: -0.01em;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(30px);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Thin red rule */
.divider {
  display: block;
  width: 0;
  height: 1px;
  background: var(--red);
  opacity: 0;
  margin: clamp(1.2rem, 3.5vw, 2.4rem) auto;
  animation: expand 0.65s ease 1.35s forwards;
}

/* ΕΨ — chapter Greek letters */
.letters-chapter {
  font-weight: 400;
  font-size: clamp(1.2rem, 4vw, 3.2rem);
  color: var(--white);
  letter-spacing: 0.6em;
  /* nudge left to visually compensate for letter-spacing on last glyph */
  padding-left: 0.6em;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.35s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

/* "Epsilon Psi Chapter" label */
.chapter-label {
  font-weight: 400;
  font-size: clamp(0.55rem, 1.1vw, 0.8rem);
  color: var(--white);
  letter-spacing: 0.45em;
  padding-left: 0.45em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  opacity: 0;
  animation: fadeOnly 0.8s ease 2.2s forwards;
}

#mobile-button-container {
  animation: rise 1s ease 2.5s forwards;
  margin-top: 2em;
  opacity: 0;
}

@media (max-width: 1100px) {
  .stage {
    margin: 0 1em;
  }
}

@media (max-width: 600px) {
  .mobile {
    display: flex;
  }

  .desktop {
    display: none;
  }
}

@media (max-width: 415px) {
  .stage {
    margin-right: 2em;
  }
}

@media (max-width: 310px) {
  .stage {
    margin-right: 3em;
  }
}


/* ── Keyframes ── */

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

@keyframes expand {
  to {
    width: clamp(100px, 18vw, 260px);
    opacity: 0.5;
  }
}

@keyframes fadeOnly {
  to { opacity: 0.65; }
}