﻿/* ezhc.org landing â€” page-specific styles
   Reuses tokens.css, tokens-v2.css, typography.css, components.css.
   All new classes prefixed `ez-` to avoid collision. */

/* ========== BODY DEFAULTS ========== */
body[data-page="ezhc-landing"] {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
}

/* ========== NAV (full-width sticky bar, transparent over hero) ==========
   Matches the ezofsigmachi.org chapter-site nav style:
   - Full-width fixed bar
   - Transparent backdrop over dark hero (body[data-nav-transparent])
   - Fades to frosted white with bottom border once scrolled past hero
   - White text on transparent state, navy text on solid state
   - Same flow CTA button as the rest of the page
   Driven by /js/nav-scroll.js which toggles .is-scrolled on the .ez-nav. */
.ez-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  transition: background 300ms ease, border-color 300ms ease;
}

/* Transparent over the dark hero (default state on transparent-nav pages) */
[data-nav-transparent] .ez-nav:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Back to solid white once user scrolls past the hero */
[data-nav-transparent] .ez-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
}

.ez-nav__container {
  max-width: var(--container-wide, 1440px);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  background: transparent;
}

.ez-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 250ms ease;
}

.ez-nav__brand:hover { box-shadow: none; }

.ez-nav__crest {
  width: auto;
  height: 40px;
  display: block;
  object-fit: contain;
}

.ez-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ez-nav__brand-line1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  transition: color 250ms ease;
}

.ez-nav__brand-line2 {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.ez-nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ez-nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-sx-blue-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color 250ms ease, background-color 200ms ease;
}

.ez-nav__link:hover {
  color: var(--color-gold-text, var(--color-gold));
  background-color: rgba(249, 189, 61, 0.10);
}

.ez-nav__cta {
  /* no size overrides â€” let .btn--flow.btn--nav drive padding/height */
}

/* Transparent-over-hero state: switch text to white, lighten link hover */
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__brand-line1 {
  color: #fff;
}
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__brand-line2 {
  color: rgba(255, 255, 255, 0.72);
}
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__link {
  color: #fff;
}
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__link:hover {
  color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

/* CTA button takes white-on-dark treatment over hero, navy-on-light otherwise */
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__cta {
  color: #fff;
  background-color: rgba(249, 189, 61, 0.10);
  border-color: rgba(249, 189, 61, 0.65);
}
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__cta .btn-flow__arrow {
  stroke: #fff;
}
/* On hover, CTA fills with solid gold (override matches specificity of rest rule) */
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__cta:hover {
  background-color: var(--color-gold, #F9BD3D);
  border-color: var(--color-gold, #F9BD3D);
  color: var(--color-navy-900, #001629);
}
[data-nav-transparent] .ez-nav:not(.is-scrolled) .ez-nav__cta:hover .btn-flow__arrow {
  stroke: var(--color-navy-900, #001629);
}

@media (max-width: 640px) {
  .ez-nav__crest { height: 32px; }
  .ez-nav__brand-line2 { display: none; }
  .ez-nav__link { display: none; }
}

/* ========== HERO ========== */
.ez-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-bg-hero);
  color: var(--color-text-on-dark);
}

.ez-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ez-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Neutral bottom-only vignette â€” keeps the daytime sky/render colors true
   to the photo while darkening just enough at the bottom-left for the text
   to stay legible. No navy tint over the full image. */
.ez-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 25%,
    rgba(0, 0, 0, 0.10) 50%,
    transparent 70%
  );
}

.ez-hero__inner {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding-block: var(--space-20) var(--space-16);
  /* Half of the prior centered-container left edge (which was ~104px at 1440vw):
     keep responsive via clamp but cap at ~52px on wide viewports. */
  padding-inline: clamp(var(--space-4), 3.6vw, 52px) var(--container-pad);
  width: 100%;
}

.ez-hero__overline {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-6);
}

.ez-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-8);
  color: #fff;
  max-width: 18ch;
}

.ez-hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--space-10);
  max-width: 48ch;
}

.ez-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.ez-hero__actions .btn { min-height: 56px; }

@media (max-width: 640px) {
  .ez-hero__inner { padding: var(--space-16) var(--container-pad); }
  .ez-hero__actions .btn { min-height: 50px; }
  .ez-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.45) 35%,
      rgba(0, 0, 0, 0.15) 60%,
      transparent 80%
    );
  }
}

/* ========== PROGRESS BAND ========== */
.ez-progress {
  background: transparent;
  color: var(--color-text-on-dark);
  padding: 0;
}

.ez-progress__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

.ez-progress .text-overline { color: var(--color-gold); }

.ez-progress__raised {
  font-family: var(--font-display);
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ez-progress__raised-amt {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-gold);
}

.ez-progress__raised-of {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0;
  font-family: var(--font-body);
}

.ez-progress__bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-8) 0;
}

.ez-progress__bar-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  box-shadow: 0 0 24px rgba(249, 189, 61, 0.5);
}

.ez-progress__detail {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
}

.ez-progress__detail strong {
  color: #fff;
  font-weight: 600;
}

/* ========== HOUSE FACTS ========== */
.ez-facts {
  background: transparent;
  padding: 0;
}

.ez-facts__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.ez-facts__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: var(--space-4) 0 var(--space-16);
  max-width: 22ch;
  color: var(--color-sx-blue-dark);
}

/* Title + CTA share a row at the top of the facts card. Title hugs the left
   at its natural 22ch max-width; the CTA wrapper fills the remaining empty
   space and centers the button inside it — so the button reads as the visual
   anchor of the top-right area. Stacks on narrow viewports. */
.ez-facts__header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.ez-facts__header .ez-facts__title {
  margin: 0;
  flex: 0 0 auto;
}

.ez-facts__cta {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

@media (max-width: 720px) {
  .ez-facts__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .ez-facts__cta {
    justify-content: flex-start;
  }
}

.ez-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

.ez-facts__card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  border-top: 4px solid var(--color-gold);
  box-shadow: var(--shadow-card);
}

.ez-facts__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: var(--color-sx-blue-dark);
}

.ez-facts__label {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* ========== HOUSE VIEW CAROUSEL ========== */
.ezhc-carousel {
  position: relative;
  width: 100%;
  display: block;
}
.ezhc-carousel:focus { outline: none; }
.ezhc-carousel:focus-visible {
  outline: 2px solid var(--color-gold, #F9BD3D);
  outline-offset: 4px;
  border-radius: var(--radius-lg, 16px);
}

.ezhc-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-navy-900, #001629);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 24px 70px -36px rgba(0, 22, 41, 0.45);
}

.ezhc-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.ezhc-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.ezhc-carousel__slide[hidden] {
  display: block;
}
.ezhc-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ezhc-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem) var(--space-5, 1.25rem);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 22, 41, 0.85) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}
.ezhc-carousel__caption-num {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold, #F9BD3D);
}
.ezhc-carousel__caption-label {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.25;
}

.ezhc-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-navy-900, #001629);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px -8px rgba(0, 22, 41, 0.6);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.ezhc-carousel__btn svg { width: 24px; height: 24px; }
.ezhc-carousel__btn:hover {
  background: var(--color-navy-900, #001629);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.ezhc-carousel__btn:focus-visible {
  outline: 2px solid var(--color-gold, #F9BD3D);
  outline-offset: 3px;
}
.ezhc-carousel__btn--prev { left: var(--space-4, 1rem); }
.ezhc-carousel__btn--next { right: var(--space-4, 1rem); }

@media (max-width: 720px) {
  .ezhc-carousel__track { aspect-ratio: 4 / 3; }
  .ezhc-carousel__btn { width: 40px; height: 40px; }
  .ezhc-carousel__btn svg { width: 20px; height: 20px; }
}

/* ========== RICK PULL-QUOTE ========== */
.ez-quote {
  background: transparent;
  padding: 0;
  position: relative;
}

.ez-quote__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

/* Split layout â€” text left, portrait right. Used on the Rick lead-donor card
   to match the donors-page treatment with a ceremonial gold-bordered headshot. */
.ez-quote__inner--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  text-align: left;
  padding: 0;
}

@media (min-width: 768px) {
  .ez-quote__inner--split {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: clamp(var(--space-10), 5vw, var(--space-16));
  }
}

.ez-quote__body-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ez-quote__media {
  margin: 0;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border: 4px solid var(--color-gold, #F9BD3D);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 12px 32px rgba(0, 22, 41, 0.10);
  background: rgba(0, 22, 41, 0.04);
}

@media (min-width: 768px) {
  .ez-quote__media { margin-inline: 0; }
}

.ez-quote__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ez-quote .text-overline { color: var(--color-gold-text); }

.ez-quote__body {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-sx-blue-dark);
  margin: var(--space-6) 0 var(--space-10);
  letter-spacing: -0.01em;
  position: relative;
  padding: 0 var(--space-4);
}

.ez-quote__body::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-gold);
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-full);
}

/* Left-anchor the gold divider when the quote sits in the split layout. */
.ez-quote__inner--split .ez-quote__body {
  padding: 0;
  margin: var(--space-4) 0 var(--space-8);
}
.ez-quote__inner--split .ez-quote__body::before {
  margin: 0 0 var(--space-6);
}

.ez-quote__attribution {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ez-quote__attribution strong {
  color: var(--color-sx-blue-dark);
  font-weight: 600;
}

/* ========== DONATE BAND ========== */
.ez-cta {
  background: transparent;
  padding: 0;
}

.ez-cta__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

.ez-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: var(--space-4) 0 var(--space-12);
  color: var(--color-sx-blue-dark);
  max-width: 28ch;
  margin-inline: auto;
}

.ez-cta__tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
  text-align: left;
}

.ez-cta__tier {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.ez-cta__tier-amt {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold-text);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.ez-cta__tier-detail {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.ez-cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.ez-cta__actions .btn { min-height: 56px; }

.ez-cta__legal {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: var(--space-6) 0 0;
}

.ez-cta__legal a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== FOOTER ========== */
.ez-footer {
  background: var(--color-sx-blue-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-20) 0 var(--space-10);
}

.ez-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
}

.ez-footer__crest {
  width: auto;
  height: 96px;
  display: block;
  margin-bottom: var(--space-4);
  object-fit: contain;
}

.ez-footer__tagline {
  font-size: var(--text-base);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--space-4);
  max-width: 32ch;
}

.ez-footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold);
  margin: 0;
  letter-spacing: 0.02em;
}

.ez-footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-4);
}

.ez-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ez-footer__list a,
.ez-footer__email a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.ez-footer__list a:hover,
.ez-footer__email a:hover {
  color: var(--color-gold);
}

.ez-footer__address {
  font-style: normal;
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--space-3);
}

.ez-footer__email {
  margin: 0;
  font-size: var(--text-base);
}

.ez-footer__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 var(--space-2);
}

.ez-footer__eyebrow--secondary {
  margin-top: var(--space-4);
}

.ez-footer__phone {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.82);
}

.ez-footer__phone a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.ez-footer__phone a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.ez-footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-16) auto 0;
  padding: var(--space-8) var(--container-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.ez-footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .ez-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ========== UTILITY: text-overline + text-center if not present in components ========== */
.text-overline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0;
}

.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  background: #fff;
  color: var(--color-sx-blue-dark);
  z-index: 1000;
  clip: auto;
  white-space: normal;
}

/* ========== SECTION CARD (rounded-3xl bordered wrapper) ==========
   Wraps each content section in a bordered, rounded, subtly tinted card.
   Inspired by the shadcn/Tailwind "rounded-3xl border bg-muted/20" pattern. */
.ez-section {
  padding: var(--space-12) var(--container-pad);
}

.ez-section-card {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(var(--space-10), 5vw, var(--space-20)) clamp(var(--space-6), 4vw, var(--space-12));
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-card);
}

.ez-section-card--cream {
  background: var(--color-cream-50);
}

.ez-section-card--paper {
  background: var(--color-paper);
}

.ez-section-card--tinted {
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-cream-50) 100%);
}

.ez-section-card--dark {
  background: var(--color-sx-blue-dark);
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ========== EYEBROW PILL ==========
   Pill-shaped section overline (rounded-full + tinted bg + small label). */
.ez-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.95rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sx-blue-dark);
  background: rgba(249, 189, 61, 0.18);
  border: 1px solid rgba(249, 189, 61, 0.35);
  border-radius: var(--radius-full);
  margin: 0 0 var(--space-5);
}

.ez-eyebrow-pill--on-dark {
  color: var(--color-gold);
  background: rgba(249, 189, 61, 0.12);
  border-color: rgba(249, 189, 61, 0.30);
}

/* Center the pill when used in a center-aligned section */
.ez-section-card[data-align="center"] .ez-eyebrow-pill,
.ez-progress .ez-eyebrow-pill,
.ez-cta .ez-eyebrow-pill {
  display: inline-flex;
}

/* ========== HOVER LIFT (inner cards) ==========
   Subtle 6px translate + shadow boost on hover.
   Guard against touch devices to avoid stuck-hover state. */
@media (hover: hover) {
  .ez-facts__card,
  .ez-cta__tier {
    transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 300ms cubic-bezier(0.23, 1, 0.32, 1),
                border-color 300ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .ez-facts__card:hover,
  .ez-cta__tier:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 22, 41, 0.10), 0 4px 8px rgba(0, 22, 41, 0.06);
  }
  .ez-cta__tier:hover {
    border-color: rgba(249, 189, 61, 0.6);
  }
}

/* ========== A MESSAGE FROM RICK â€” quote + video ==========
   Ported from sigma-chi-site (the-house.html / home.css 1295â€“1361),
   simplified for the static (non-scroll-jack) variant only. */
.ez-rick-quote {
  text-align: center;
  margin: 0 auto var(--space-12);
  max-width: 60ch;
}

.ez-rick-quote__body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--color-sx-blue-dark);
  margin: 0 0 var(--space-6);
  position: relative;
  padding: 0 var(--space-4);
}

.ez-rick-quote__body p {
  margin: 0;
}

.ez-rick-quote__body::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
}

.ez-rick-quote__attribution {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0;
}

.ez-rick-quote__attribution strong {
  color: var(--color-sx-blue-dark);
  font-weight: 700;
}

/* Video card â€” click-to-play, Vimeo iframe injected on demand */
.ez-rick-video {
  position: relative;
  width: 100%;
  max-width: min(92vw, 1100px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0a0f1a;
  border-radius: var(--radius-2xl, 20px);
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(0, 22, 41, 0.45);
  isolation: isolate;
}

.ez-rick-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease, transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.ez-rick-video__play {
  position: absolute;
  inset: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  font-family: inherit;
}

.ez-rick-video__play-icon {
  width: 88px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ez-rick-video__play:hover .ez-rick-video__play-icon {
  transform: scale(1.08);
}

.ez-rick-video__play-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ez-rick-video__mount {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ez-rick-video__mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Activated state: poster + play button fade out, iframe takes over */
.ez-rick-video.is-activated .ez-rick-video__poster,
.ez-rick-video.is-activated .ez-rick-video__play {
  opacity: 0;
  pointer-events: none;
}

.ez-rick-video.is-activated .ez-rick-video__mount {
  z-index: 3;
}

.ez-rick-video__cta {
  margin: var(--space-6, 1.5rem) auto 0;
  max-width: min(92vw, 1100px);
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .ez-rick-video__play-icon { width: 64px; height: 64px; }
  .ez-rick-video__play-label { font-size: var(--text-sm); }
  .ez-rick-video__cta { margin-top: var(--space-4, 1rem); }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .ez-progress__bar-fill { box-shadow: none; }
  .ez-facts__card,
  .ez-cta__tier {
    transition: none;
  }
  .ez-facts__card:hover,
  .ez-cta__tier:hover {
    transform: none;
  }
}

/* ============================================================
   PAGE TRANSITION - gold curtain with Sigma Chi crest.
   JS (page-transition.js) injects .sx-page-curtain into <body>
   and toggles .is-leaving / .is-arriving on the body.
   ============================================================ */
.sx-page-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-gold, #F9BD3D);
  transform: translateY(-100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.sx-page-curtain__crest {
  width: clamp(72px, 9vw, 112px);
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  filter: drop-shadow(0 12px 32px rgba(0, 22, 41, 0.22));
  will-change: opacity, transform;
}

/* === LEAVING (out): curtain drops from top to cover, crest fades in.
   Single smooth in-out cubic for a premium feel. === */
body.is-leaving .sx-page-curtain {
  transform: translateY(0);
  transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);
}
body.is-leaving .sx-page-curtain__crest {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 215ms cubic-bezier(0.22, 1, 0.36, 1) 200ms,
    transform 290ms cubic-bezier(0.34, 1.32, 0.64, 1) 200ms;
}

/* === ARRIVING (in): curtain held at full coverage with crest visible,
   then crest fades out and curtain retracts UP off the top edge,
   revealing the new page beneath. === */
body.is-arriving .sx-page-curtain {
  transform: translateY(0);
}
body.is-arriving .sx-page-curtain__crest {
  opacity: 1;
  transform: scale(1);
}

body.is-arriving-out .sx-page-curtain {
  transform: translateY(-100%);
  transition: transform 430ms cubic-bezier(0.65, 0, 0.35, 1) 70ms;
}
body.is-arriving-out .sx-page-curtain__crest {
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 160ms cubic-bezier(0.4, 0, 0.6, 1),
    transform 215ms cubic-bezier(0.4, 0, 0.6, 1);
}

/* Reduced motion: kill all curtain animation, JS already no-ops. */
@media (prefers-reduced-motion: reduce) {
  .sx-page-curtain { display: none !important; }
}