/* ============================================================
   Phi Alpha Epsilon — site styles
   Swap brand colors here. Everything else derives from these.
   ============================================================ */
:root {
  --primary: #5e1b22;        /* PLACEHOLDER: chapter primary color */
  --primary-deep: #3b0f14;   /* PLACEHOLDER: darker shade of primary */
  --accent: #c9a227;         /* PLACEHOLDER: chapter accent color */
  --ink: #1b1717;
  --paper: #f6f1e7;
  --paper-2: #ece4d6;
  --tint: #f2e6e3;
  --muted: #6f6a66;
  --line: rgba(27, 23, 23, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.18);

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-motto: "Cormorant Garamond", Georgia, serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--dark { background: var(--primary-deep); color: var(--paper); }
.section--primary { background: var(--primary); color: var(--paper); }
.section--tint { background: var(--tint); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.display--xl { font-size: clamp(64px, 11vw, 168px); }
.display--lg { font-size: clamp(48px, 7vw, 104px); }
.display--md { font-size: clamp(36px, 4.5vw, 64px); }
.display--sm { font-size: clamp(28px, 3vw, 40px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.motto {
  font-family: var(--font-motto);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
}
.muted { color: var(--muted); }
.section--dark .muted, .section--primary .muted { color: rgba(246, 241, 231, 0.7); }

/* Placeholder marker: anything you still need to fill in */
.ph {
  background: rgba(201, 162, 39, 0.28);
  outline: 1px dashed rgba(201, 162, 39, 0.9);
  outline-offset: 1px;
  padding: 0 0.15em;
  border-radius: 2px;
}
.ph-img {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.05) 14px 15px),
    var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  min-height: 200px;
  border: 1px dashed rgba(27, 23, 23, 0.25);
}
.ph-img--dark {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.06) 14px 15px),
    rgba(255, 255, 255, 0.06);
  color: rgba(246, 241, 231, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}
.btn::after { content: "→"; font-size: 15px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.link {
  display: inline-flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.25s;
}
.link::after { content: "→"; }
.link:hover { border-color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--paper);
  transition: background 0.4s, box-shadow 0.4s, color 0.4s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-header.is-solid {
  background: var(--primary-deep);
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand__letters {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.06em;
}
.brand__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.88;
  position: relative;
  padding-block: 6px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 11px 18px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: currentColor;
  margin: 6px auto;
  transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 900px) {
  .site-header .wrap { height: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px var(--gutter);
    background: var(--primary-deep);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav a { font-family: var(--font-display); font-size: 40px; letter-spacing: 0.03em; }
  .nav .btn { margin-top: 20px; font-family: var(--font-body); font-size: 13px; }
  .site-header.menu-open { background: var(--primary-deep); }
  .site-header.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  color: var(--paper);
  background: var(--primary-deep);
  overflow: hidden;
}
.hero--short { min-height: min(60vh, 560px); }
.hero__media { position: absolute; inset: 0; }
.hero__media .ph-img { position: absolute; inset: 0; min-height: 0; border: 0; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(59,15,20,0.55) 0%, rgba(59,15,20,0.15) 40%, rgba(59,15,20,0.85) 100%);
}
.hero .wrap { position: relative; padding-block: 120px 64px; }
.hero__title { max-width: 12ch; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 24px;
}
.hero__foot .motto { max-width: 34ch; }

/* ---------- credo ---------- */
.credo { text-align: center; }
.credo .wrap { max-width: 880px; }
.crest {
  width: 96px; height: 96px;
  margin: 0 auto 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.credo h2 { color: var(--primary); margin-bottom: 20px; }
.credo .lead { max-width: 60ch; margin: 0 auto 32px; }

/* ---------- pillars (sticky scroll) ---------- */
.pillars__head { margin-bottom: clamp(40px, 6vw, 80px); }
.pillars__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.pillars__index {
  position: sticky;
  top: 110px;
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line-on-dark);
}
.pillars__index li { border-bottom: 1px solid var(--line-on-dark); }
.pillars__index a {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.3s, padding-left 0.3s var(--ease);
}
.pillars__index a small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.pillars__index a.is-active { opacity: 1; padding-left: 10px; }
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-block: 56px;
  border-top: 1px solid var(--line-on-dark);
  scroll-margin-top: 110px;
}
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar__num {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: rgba(246,241,231,0.78); margin-bottom: 22px; }
.pillar .ph-img { aspect-ratio: 4 / 3; min-height: 0; }
@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillars__index { position: static; display: none; }
  .pillar { grid-template-columns: 1fr; padding-block: 40px; }
}

/* ---------- split (housing) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split .ph-img { aspect-ratio: 5 / 4; }
.split h2 { color: var(--primary); margin-bottom: 18px; }
.split p { margin-bottom: 28px; max-width: 46ch; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- marquee (signature) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 28px;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.marquee::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed rgba(27,23,23,0.35);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 40s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: baseline;
  gap: 40px;
  padding-inline: 20px;
  white-space: nowrap;
  position: relative;
  background: var(--paper);
}
.marquee__item .display { font-size: clamp(56px, 8vw, 120px); color: var(--primary); }
.marquee__item .latin { font-family: var(--font-motto); font-style: italic; font-size: clamp(24px, 3vw, 40px); color: var(--muted); }
.marquee__item .dot { color: var(--accent); font-size: 24px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.stats__intro p { max-width: 40ch; margin-bottom: 28px; }
.stats__list { list-style: none; margin: 0; padding: 0; }
.stats__list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
}
.stats__list li:first-child { border-top: 1px solid var(--line-on-dark); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  color: var(--accent);
  min-width: 3.5ch;
}
.stat__label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

/* ---------- carousel (brothers) ---------- */
.carousel__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.carousel__head p { max-width: 44ch; }
.carousel__ctrl { display: flex; gap: 10px; }
.carousel__ctrl button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.carousel__ctrl button:hover { background: var(--ink); color: var(--paper); }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.card .ph-img { aspect-ratio: 3 / 4; margin-bottom: 16px; }
.card h3 { margin-bottom: 4px; }
.card .role { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .carousel__head { flex-direction: column; align-items: flex-start; } }

/* ---------- news ---------- */
.news__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.news__head h2 { color: var(--primary); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post { text-decoration: none; color: inherit; }
.post .ph-img { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.post__meta { display: flex; gap: 12px; align-items: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post__tag { background: var(--tint); color: var(--primary); padding: 3px 8px; font-weight: 700; }
.post h3 { transition: color 0.25s; }
.post:hover h3 { color: var(--primary); }
@media (max-width: 900px) { .news__grid { grid-template-columns: 1fr; } }

/* ---------- generic stub blocks (secondary pages) ---------- */
.stub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.stub__item { padding: 32px; background: #fff; border: 1px solid var(--line); }
.stub__item h3 { color: var(--primary); margin-bottom: 12px; }
.prose { max-width: 68ch; }
.prose h2 { color: var(--primary); margin-bottom: 18px; }
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.form input, .form textarea, .form select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-deep); color: var(--paper); overflow: hidden; }
.site-footer .wrap { padding-block: 72px 0; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer__big { list-style: none; margin: 0; padding: 0; }
.footer__big a {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  opacity: 0.9;
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.footer__big a:hover { color: var(--accent); padding-left: 8px; }
.footer__cta p { max-width: 36ch; margin-bottom: 24px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-block: 48px;
}
.footer__cols h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols a { text-decoration: none; opacity: 0.8; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; }
.footer__social { display: flex; gap: 14px; margin-top: 18px; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}
.footer__social a:hover { background: var(--accent); color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; opacity: 0.6; padding-bottom: 32px; }
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 15vw, 240px);
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  color: rgba(246,241,231,0.12);
  margin-bottom: -0.12em;
  user-select: none;
}
@media (max-width: 800px) {
  .footer__top, .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn::after, .nav a::after { transition: none; }
}

/* Hero placeholder label sits in the top-right corner so it never collides with the title */
.hero__media .ph-img { align-items: start; justify-items: end; padding-top: 100px; }
@media (max-width: 900px) { .hero__media .ph-img { padding-top: 84px; } }
