/* =========================================================
   FUNDRALLY — Lifestyle Fundraising
   Investor leave-behind landing page
   ========================================================= */

:root {
  /* Brand palette (from BrandKit) */
  --ink:      #231F20;   /* near-black */
  --bone:    #EEF0EF;   /* off-white */
  --paper:    #F8FAF9;
  --line:     #DDE0DE;
  --blue:     #5BC9F6;   /* signature sky blue */
  --blue-2:   #6FDEF7;
  --blue-3:   #92F2FC;
  --blue-mist:#E8F8FE;
  --gold:     #FFDC6E;   /* used SPARINGLY */
  --grey-1:   #3D393A;
  --grey-2:   #4D4849;
  --grey-3:   #70696A;
  --grey-4:   #A6A2A3;

  /* Type */
  --display: 'IBM Plex Sans Condensed', 'Helvetica Neue', sans-serif;
  --body:    'IBM Plex Sans', 'Helvetica Neue', sans-serif;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --max:    1320px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--blue); color: var(--ink); }

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

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid rgba(35, 31, 32, .08);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  height: 30px;
}

.nav__logo svg {
  height: 100%;
  width: auto;
  fill: var(--ink);
  transition: fill .3s var(--ease);
}

.nav__logo:hover svg { fill: var(--blue); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  color: var(--grey-2);
  transition: color .25s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px 6px 14px;
  background: var(--blue);
  /* flag-shape clip */
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}

@media (max-width: 800px) {
  .nav__links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(91, 201, 246, .15), transparent 60%),
    var(--bone);
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: .06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(60px, 8vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 28px;
  animation: rise .9s var(--ease) both;
}

.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(91,201,246,.25);
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 11vw, 168px);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 36px;
}

.hero__title span {
  display: block;
  animation: rise 1.05s var(--ease) both;
}

.hero__title span:nth-child(1) { animation-delay: .05s; }
.hero__title span:nth-child(2) { animation-delay: .15s; padding-left: clamp(20px, 4vw, 60px); }
.hero__title span:nth-child(3) { animation-delay: .25s; }

.hero__title--blue {
  color: var(--blue);
  font-style: italic;
  font-weight: 500;
}

.hero__sub {
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--grey-1);
  font-weight: 300;
  animation: rise 1s var(--ease) both;
  animation-delay: .4s;
}

/* hero photo with chevron / flag-shape mask */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  animation: rise 1.2s var(--ease) both;
  animation-delay: .35s;
}

.hero__photo {
  position: relative;
  width: 100%;
  height: 100%;
  /* the brand's signature flag-shape — tail cut to the right */
  clip-path: polygon(0 0, 100% 0, calc(100% - 60px) 50%, 100% 100%, 0 100%);
  background: var(--ink);
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.05);
  filter: contrast(1.05) saturate(.9);
  animation: zoomOut 2s var(--ease) both;
  animation-delay: .4s;
}

.hero__photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35,31,32,0) 50%, rgba(35,31,32,.35) 100%),
    linear-gradient(135deg, rgba(91,201,246,.15) 0%, transparent 50%);
  mix-blend-mode: multiply;
}

/* floating flag icon accent */
.hero__chip {
  position: absolute;
  background: var(--blue);
  padding: 12px 18px;
  /* same flag-shape as logo */
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  animation: floatChip 4s ease-in-out infinite;
}

.hero__chip svg {
  width: 36px;
  height: 12px;
  fill: var(--ink);
}

.hero__chip--1 {
  bottom: -22px;
  left: -18px;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__media {
    aspect-ratio: 4 / 3;
    max-width: 540px;
  }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  border-block: 1px solid var(--ink);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-block: 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  padding-left: 40px;
}

.marquee__sep {
  color: var(--blue);
  font-size: .55em;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-3);
  white-space: nowrap;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--ink);
}

.section-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -.02em;
}

.display em {
  color: var(--blue);
  font-weight: 500;
}

/* =========================================================
   VISION
   ========================================================= */
.vision {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
}

.vision__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.vision__label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.vision__body { max-width: 880px; }

.vision__body .lead {
  margin-top: 36px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--grey-1);
  font-weight: 300;
  max-width: 680px;
}

@media (max-width: 800px) {
  .vision__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(91,201,246,.15), transparent 60%);
  pointer-events: none;
}

.how .section-header {
  border-bottom-color: rgba(238,240,239,.15);
}

.how .section-num { color: rgba(238,240,239,.55); }
.how .section-title { color: var(--bone); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.step {
  padding: 32px 24px 32px 0;
  border-left: 1px solid rgba(238,240,239,.12);
  padding-left: 24px;
  position: relative;
  transition: background .4s var(--ease);
}

.step:first-child { border-left: none; padding-left: 0; }

.step__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 28px;
  margin-bottom: 32px;
}

.step__flag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--blue);
  transition: fill .3s var(--ease);
}

.step__num span {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink);
  z-index: 1;
}

.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--bone);
  margin-bottom: 14px;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(238,240,239,.7);
  font-weight: 300;
}

.step:hover .step__flag { fill: var(--blue-3); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-left: none; border-top: 1px solid rgba(238,240,239,.12); padding-top: 28px; padding-left: 0; }
  .step:first-child, .step:nth-child(2) { border-top: none; padding-top: 0; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-top: 1px solid rgba(238,240,239,.12) !important; padding-top: 28px !important; }
  .step:first-child { border-top: none !important; padding-top: 0 !important; }
}

/* =========================================================
   WHO WE SERVE
   ========================================================= */
.serve {
  padding: clamp(80px, 11vw, 160px) 0;
  background: var(--bone);
}

.serve__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.serve__card {
  position: relative;
  padding: 36px 32px 110px;
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 320px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}

.serve__card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.serve__cardhead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.serve__index {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.serve__card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1;
  color: var(--ink);
}

.serve__card p {
  color: var(--grey-1);
  font-size: 16px;
  line-height: 1.55;
  max-width: 36ch;
}

.serve__corner {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 80px;
  height: 50px;
  background: var(--blue);
  /* flag tail */
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 30% 0, 0 50%);
  transition: width .35s var(--ease), height .35s var(--ease);
}

.serve__card:hover .serve__corner {
  width: 110px;
  height: 70px;
}

.serve__card--np .serve__corner { background: var(--blue); }
.serve__card--participants .serve__corner { background: var(--ink); }
.serve__card--sponsors .serve__corner { background: var(--gold); }

@media (max-width: 900px) {
  .serve__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   A BETTER WAY
   ========================================================= */
.better {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
}

.section-header--light { border-bottom-color: rgba(238,240,239,.15); }
.section-header--light .section-num { color: rgba(238,240,239,.55); }
.section-header--light .section-title { color: var(--bone); }

.better__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(238,240,239,.12);
}

.better__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid rgba(238,240,239,.12);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}

.better__item:nth-child(2n) {
  padding-left: 32px;
  border-left: 1px solid rgba(238,240,239,.12);
}

.better__item:hover {
  background: rgba(91,201,246,.06);
}

.better__bullet {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--blue);
  line-height: 1.3;
}

.better__item h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 8px;
  letter-spacing: -.005em;
}

.better__item p {
  color: rgba(238,240,239,.65);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 42ch;
}

@media (max-width: 800px) {
  .better__list { grid-template-columns: 1fr; }
  .better__item:nth-child(2n) { padding-left: 0; border-left: none; }
}

/* =========================================================
   MISSION
   ========================================================= */
.mission {
  padding: clamp(80px, 11vw, 160px) 0;
  background: var(--paper);
}

.mission__statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 17ch;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.mission__statement em {
  color: var(--blue);
  font-weight: 500;
}

.mission__cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.case {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.case__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* flag-shape clip on photo too */
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 50%, 100% 100%, 0 100%);
  background: var(--ink);
}

.case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.05);
  transition: transform 1s var(--ease), filter .6s var(--ease);
}

.case:hover .case__photo img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05);
}

.case__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.005em;
}

.case__text strong {
  font-weight: 700;
}

.mission__close {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--grey-1);
  max-width: 720px;
  border-left: 3px solid var(--blue);
  padding-left: 24px;
}

@media (max-width: 800px) {
  .mission__cases { grid-template-columns: 1fr; }
}

/* =========================================================
   CLOSING
   ========================================================= */
.closing {
  position: relative;
  padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 12vw, 160px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--blue-mist) 100%);
  overflow: hidden;
  text-align: center;
}

.closing__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: .05;
  pointer-events: none;
}

.closing__pre {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 40px;
}

.closing__tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 220px);
  line-height: .85;
  letter-spacing: -.025em;
  color: var(--ink);
}

.closing__tag span {
  display: block;
}

.closing__tag span:nth-child(2) {
  padding-left: clamp(40px, 8vw, 140px);
}

.closing__tag--accent {
  color: var(--blue);
  font-weight: 500;
  text-align: right;
  font-style: italic;
}

.closing__tag--accent em {
  font-style: italic;
  font-weight: 700;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 56px 0 36px;
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  height: 32px;
  width: auto;
  fill: var(--bone);
}

.footer__brand p {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(238,240,239,.55);
  font-weight: 300;
}

.footer__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(238,240,239,.55);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomOut {
  from { transform: scale(1.18); }
  to   { transform: scale(1.05); }
}

@keyframes floatChip {
  0%,100% { transform: translateY(0) rotate(0); }
  50%     { transform: translateY(-8px) rotate(-1deg); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
}
