/* The Association: Eta Chapter alumni. Bruin blue on white, navy for depth. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #111418;
  --text-2: #3c4552;
  --muted: #5b6472;
  --line: rgba(17, 20, 24, 0.1);
  --blue: #2774ae;        /* UCLA blue */
  --blue-hi: #1f6396;
  --navy: #003b5c;
  --navy-deep: #00263c;
  --sky: #8bb8e8;
  --radius: 18px;
  --wrap: 1200px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow: 0 1px 2px rgba(0, 38, 60, 0.06), 0 12px 32px -16px rgba(0, 38, 60, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; margin: 0; color: var(--navy); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 56ch; }
.accent { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 0;
  font: 700 15px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px -12px rgba(39, 116, 174, 0.7); }
.btn-primary:hover { background: var(--blue-hi); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(0, 59, 92, 0.3); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9f1fa; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); border-color: var(--line); color: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; margin-top: 3px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; opacity: 0.7; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
.nav a:not(.btn):hover { opacity: 1; }
.site-header:not(.scrolled) .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.nav .btn { padding: 11px 20px; font-size: 14px; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Hero (photo, so it stays dark) */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 72px;
  color: #fff;
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); animation: slowzoom 18s var(--ease) forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 38, 60, 0.55) 0%, rgba(0, 38, 60, 0.2) 35%, rgba(0, 38, 60, 0.88) 85%, var(--navy-deep) 100%),
    radial-gradient(80% 60% at 15% 85%, rgba(39, 116, 174, 0.45), transparent 70%);
}
@keyframes slowzoom { to { transform: scale(1); } }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font-size: clamp(64px, 14vw, 196px); color: #fff; }
.hero h1 .accent { color: var(--sky); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }
.hero .lead { margin: 26px 0 34px; color: rgba(255, 255, 255, 0.86); }
.hero .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.hero .btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 54px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.04em;
}
.hero-meta b { color: #fff; font-weight: 600; }

/* Marquee */
.marquee {
  background: var(--blue); color: #fff;
  overflow: hidden; white-space: nowrap;
  padding: 16px 0;
}
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; letter-spacing: 0.03em; padding: 0 22px; }
.marquee-track span::after { content: "\25B2"; font-size: 0.5em; vertical-align: middle; margin-left: 44px; color: var(--sky); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 120px 0; position: relative; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(44px, 7vw, 96px); }
.section-head p { margin: 0; color: var(--text-2); max-width: 46ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 34px 30px 38px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 30px; }
.pillar:last-child { border-right: 0; }
.pillar .n { font-family: var(--display); font-size: 15px; color: var(--blue); letter-spacing: 0.1em; }
.pillar h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 34px; line-height: 1; margin: 18px 0 12px; color: var(--navy); }
.pillar p { margin: 0; color: var(--text-2); font-size: 16px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Moments grid */
.moments { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.moment {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2); color: #fff;
  text-decoration: none; box-shadow: var(--shadow);
}
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.moment:hover img { transform: scale(1.05); }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 38, 60, 0.9)); }
.moment .cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.moment .cap b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.moment .cap span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.m1 { grid-column: span 7; grid-row: span 4; }
.m2 { grid-column: span 5; grid-row: span 2; }
.m3 { grid-column: span 5; grid-row: span 2; }
.m4 { grid-column: span 4; grid-row: span 3; }
.m5 { grid-column: span 8; grid-row: span 3; }
@media (max-width: 860px) {
  .moments { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .m1 { grid-column: span 2; grid-row: span 2; }
  .m2, .m3 { grid-column: span 1; grid-row: span 2; }
  .m4 { grid-column: span 2; grid-row: span 2; }
  .m5 { grid-column: span 2; grid-row: span 2; }
  .moment .cap { left: 14px; right: 14px; bottom: 12px; }
  .moment .cap span { font-size: 12px; }
}

/* Steps (how joining works) */
.band-blue { background: var(--blue); color: #fff; overflow: hidden; }
.band-blue .display { color: #fff; }
.band-blue .eyebrow { color: #fff; }
.band-blue .section-head p { color: rgba(255, 255, 255, 0.88); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative;
  padding: 30px 28px 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.step .num { font-family: var(--display); font-size: 84px; line-height: 0.8; color: #fff; opacity: 0.9; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 22px 0 10px; }
.step p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 16px; }
.steps-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.steps-cta small { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.watermark { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: 0.1; color: #fff; pointer-events: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .watermark { width: 260px; } }

/* Dues band */
.dues {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(139, 184, 232, 0.3), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dues h2 { font-size: clamp(42px, 6vw, 80px); }
.dues p { color: var(--text-2); margin: 18px 0 0; max-width: 46ch; }
.price { font-family: var(--display); font-size: clamp(80px, 12vw, 150px); line-height: 0.85; color: var(--blue); }
.price small { font-family: var(--sans); font-size: 18px; color: var(--muted); font-weight: 500; margin-left: 6px; }
@media (max-width: 860px) { .dues { grid-template-columns: 1fr; padding: 34px 24px; } }

/* Instagram strip */
.ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 40px; }
.ig-strip a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; }
.ig-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig-strip a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .ig-strip { grid-template-columns: repeat(3, 1fr); } }
.handles { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.6); padding: 64px 0 36px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-end; }
.footer-big { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 9vw, 120px); line-height: 0.9; color: #fff; margin: 0; }
.footer-big .accent { color: var(--sky); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.8); }
.footer-links a:hover { color: var(--sky); }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
  .hero-media img { transform: none; }
}

/* ---------- Join + dues pages ---------- */
.page { min-height: 100svh; padding: 132px 0 90px; }
.page-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; gap: 36px; } }
.page h1 { font-size: clamp(56px, 9vw, 120px); }
.page .lead { margin-top: 22px; }
.aside-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.aside-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.aside-list .k { font-family: var(--display); color: var(--blue); font-size: 22px; line-height: 1; }
.aside-list b { display: block; font-weight: 600; color: var(--navy); }
.aside-list span { color: var(--text-2); font-size: 15px; }
.aside-list a { color: var(--blue); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .panel { padding: 24px 20px; border-radius: 20px; } }

.progress { display: flex; gap: 8px; margin-bottom: 30px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.progress i.on::after { transform: scaleX(1); }
.step-label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.panel h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4vw, 44px); line-height: 1; margin: 0 0 26px; color: var(--navy); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[hidden] { display: none; }
.fs-anim { animation: fsin 0.5s var(--ease); }
@keyframes fsin { from { opacity: 0; transform: translateX(18px); } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field[hidden] { display: none; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid rgba(17, 20, 24, 0.16);
  background: #fff;
  color: var(--text);
  font: 16px/1.3 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39, 116, 174, 0.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c62828; }
.err { display: block; font-size: 13px; color: #c62828; margin-top: 6px; }
.err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 11px 16px; border-radius: 999px;
  border: 1px solid rgba(17, 20, 24, 0.18); color: var(--text-2); background: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--text-2); margin: 6px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); font: 600 15px var(--sans); cursor: pointer; padding: 10px 0; }
.link-btn:hover { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fdecea; color: #8e1c1c; font-size: 14px; }
.form-alert[hidden] { display: none; }

.done[hidden] { display: none; }
.done .badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; margin-bottom: 24px; animation: pop 0.6s var(--ease); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.done h2 { color: var(--navy); }
.done p { color: var(--text-2); }

#paypal-button-container { min-height: 50px; }
.paypal-wrap { margin-top: 26px; }
.note { font-size: 14px; color: var(--muted); }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #e9f1fa; color: var(--navy); font-size: 15px; }
.notice[hidden] { display: none; }
.notice a { color: var(--blue); }
