/* ==========================================================================
   Boys & Girls Clubs of Portland — Future Ready Club landing page
   Desktop layout is built on a 1656-unit design grid (the mockup width):
   --u = one design unit, scaling down with the viewport, capped at 1px.
   ========================================================================== */

@font-face { font-family: "Antonio"; src: url("../fonts/Antonio-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../fonts/Gotham-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Gotham Medium (price lines): the supplied file was empty, so this uses Book for now.
   When you have it, add fonts/Gotham-Medium.woff2 and point this src at it. */
@font-face { font-family: "Gotham"; src: url("../fonts/Gotham-Book.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../fonts/Gotham-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #181b35;
  --blue: #4499da;
  --green: #74c92c;
  --ink: #100f0d;
  --white: #fff;
  --u: calc(min(100vw, 1656px) / 1656);
  --head: "Antonio", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.2;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: none; }
picture { display: contents; }
picture > source { display: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
h1, h2 { text-wrap: balance; }
ul, ol { list-style: none; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 18px;
  font-weight: 900; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wrap { position: relative; width: 100%; max-width: 1656px; margin: 0 auto; }
.hl-blue { color: var(--blue); }
.hl-green { color: var(--green); }
.hl-navy { color: var(--navy); }

/* Inline SVG art */
.swoosh path, .hand path { fill: currentColor; }
.swoosh { color: #abd037; }
.hand { color: var(--white); }

/* ==========================================================================
   MOBILE / BASE (< 1000px)
   ========================================================================== */

/* Header */
.site-header .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 20px 16px;
}
.logo { width: 220px; height: auto; }
.tagline {
  font-weight: 900; font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--white); white-space: nowrap; margin-right: -.42em;
}

/* Hero */
.hero { position: relative; }
.hero-art {
  --crop: 780;
  --k: calc(100vw / (1674 - var(--crop)));
  position: relative; width: 100%; height: calc(689 * var(--k)); overflow: hidden;
}
.hero-art__img {
  position: absolute; left: calc(var(--crop) * var(--k) * -1); top: calc(-180 * var(--k));
  width: calc(1673.5 * var(--k)); height: calc(868 * var(--k));
}
.hero-art .hand { position: absolute; left: calc((842 - var(--crop)) * var(--k)); top: calc(112 * var(--k)); width: calc(214 * var(--k)); height: auto; }
.hero-art .swoosh--possible { position: absolute; left: calc((928 - var(--crop)) * var(--k)); top: calc(268 * var(--k)); width: calc(152 * var(--k)); height: auto; }

.hero-copy { position: relative; z-index: 3; padding: 0 24px 40px; margin-top: calc(-90 * (100vw / 894)); }
.hero h1 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 12.5vw, 70px); line-height: .963; letter-spacing: -.004em;
}
.hero h1 span { display: block; }
.swoosh--join { width: min(100%, 360px); height: auto; margin: 6px 0 22px 4px; }
.hero-copy p { font-size: 18px; line-height: 1.33; max-width: 34em; }

/* Commitment (stripes) */
.commit { position: relative; padding: 24px 16px 64px; }
.commit::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../images/mobile/background-stripes-830.webp") center top / cover no-repeat;
}
.commit .wrap { display: flex; flex-direction: column; gap: 0; }
.card { position: relative; z-index: 2; background: var(--white); color: var(--ink); }
.card h2 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  color: var(--navy); font-size: 40px; line-height: .95; letter-spacing: -.004em;
}
.card--levels { padding: 32px 20px 36px; }
.card--levels h2 span { display: block; }
.levels { margin-top: 28px; display: grid; gap: 30px; }
.level { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; }
.level img { width: 52px; height: 52px; }
.level h3 { font-weight: 900; font-size: 16px; line-height: 1.15; color: var(--blue); text-transform: uppercase; }
.level .price { font-weight: 800; font-size: 15px; margin-top: 4px; }
.level .desc { font-size: 15px; line-height: 1.33; margin-top: 8px; }
.lb { display: none; }

.card--form { padding: 40px 0; margin: 30px 0; }
.card--form h2 { padding: 0 20px 18px; }
/* GiveSmart's form fills the whole iframe and then adds 48px of padding top and bottom
   (.donation-form-styling), so it always overflows its own frame by 96px. It's cross-origin,
   so we can't restyle it. Instead: the iframe has scrolling="no" (no inner scrollbar), it's
   shifted up, and the wrapper clips the padding off both ends. Keep the iframe height
   comfortably taller than the form so nothing real ends up in the clipped bottom strip.
   Change --form-pad if GiveSmart changes its padding. */
.form-frame { --form-pad: 48px; overflow: hidden; }
.card--form iframe { width: 100%; border: 0; display: block; }

/* Photo strip: same composition at every width, always spanning the full screen */
.photo-strip { position: relative; z-index: 2; width: 100%; aspect-ratio: 1656 / 498; container-type: inline-size; }
.photo-strip img { position: absolute; height: auto; }
.photo-strip .p1 { left: 0; top: calc(54 * 100cqw / 1656); width: calc(641 * 100cqw / 1656); }
.photo-strip .p2 { left: calc(632 * 100cqw / 1656); top: 0; width: calc(565 * 100cqw / 1656); z-index: 1; }
.photo-strip .p3 { right: 0; top: 0; width: calc(495 * 100cqw / 1656); }

/* Steps */
.steps-section { position: relative; padding: 36px 20px 40px; text-align: center; }
.steps-section h2 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 9vw, 48px); line-height: 1; letter-spacing: -.004em;
}
.steps { margin: 32px auto 0; display: flex; flex-direction: column; align-items: center; }
.step { display: flex; flex-direction: column; align-items: center; }
.step__icon {
  --d: 128px;
  width: calc(var(--d) / var(--fit, 1)); height: calc(var(--d) / var(--fit, 1));
  margin: calc(var(--d) * (1 - 1 / var(--fit, 1)) / 2);
}
/* how much of each icon file the green circle fills */
.step__icon[src*="see-icon"]     { --fit: .7657; }
.step__icon[src*="imagine-icon"] { --fit: .7946; }
.step__icon[src*="try-icon"]     { --fit: .8637; }
.step__icon[src*="build-icon"]   { --fit: .7933; }
.step__icon[src*="earn-icon"]    { --fit: .7700; }
.step__icon[src*="launch-icon"]  { --fit: .8189; }
.step h3 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--green);
  font-size: 40px; line-height: 1; margin-top: 14px;
}
.step .swoosh { width: 120px; height: auto; margin-top: 6px; }
.step p { font-size: 18px; line-height: 1.2; margin-top: 8px; }
.step__arrow { display: block; width: 24px; height: auto; margin: 18px auto; transform: rotate(90deg); }
.steps-summary { font-weight: 900; color: var(--green); font-size: 17px; line-height: 1.25; margin: 36px auto 0; max-width: 40em; }
.steps-summary br { display: none; }

/* Sustain */
.sustain { position: relative; }
.sustain-copy { position: relative; z-index: 3; padding: 32px 24px 8px; }
.sustain h2 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 10vw, 56px); line-height: 1.07; letter-spacing: -.004em;
}
.sustain h2 span { display: block; }
.swoosh--sustain { width: 150px; height: 20px; margin: 10px 0 22px 4px; }
.sustain-copy p { font-size: 18px; line-height: 1.33; max-width: 34em; }
.sustain-copy .cta { font-weight: 900; font-size: 19px; line-height: 1.28; margin-top: 26px; }
.contact { margin-top: 26px; font-style: normal; }
.contact__label { font-size: 18px; }
.contact__name { font-size: 26px; line-height: 1.1; margin-top: 6px; }
.contact__title { font-size: 14px; text-transform: uppercase; }
.contact__email { font-size: 18px; display: inline-block; margin-top: 6px; text-decoration: none; }
.contact__email:hover, .contact__email:focus-visible { text-decoration: underline; }

.footer-art {
  --k: calc(100vw / 873);
  position: relative; width: 100%; height: calc(865 * var(--k)); margin-top: 8px;
}
.footer-art > *, .footer-art img { position: absolute; height: auto; }
.footer-art .stripe { left: calc(-7 * var(--k)); top: calc(-16 * var(--k)); width: calc(879 * var(--k)); }
.footer-art .p4 { left: calc(97 * var(--k)); top: calc(19 * var(--k)); width: calc(478 * var(--k)); }
.footer-art .p5 { left: calc(461 * var(--k)); top: calc(19 * var(--k)); width: calc(420 * var(--k)); }
.footer-art .hand { left: calc(411 * var(--k)); top: calc(477 * var(--k)); width: calc(294 * var(--k)); }
.footer-art .swoosh--footer { left: calc(449 * var(--k)); top: calc(725 * var(--k)); width: calc(198 * var(--k)); color: #15143b; }

@media (min-width: 600px) and (max-width: 999.98px) {
  .hero-art { --crop: 420; }
  .hero-copy { padding: 0 40px 48px; margin-top: calc(-100 * (100vw / 1254)); }
  .commit { padding: 32px 40px 72px; }
  .card--levels { padding: 40px 36px 44px; }
  .level { grid-template-columns: 72px 1fr; column-gap: 20px; }
  .level img { width: 72px; height: 72px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; max-width: 720px; }
  .step__arrow { display: none; }
  .sustain-copy { padding: 40px 40px 8px; }
  .footer-art { --k: calc(min(100vw, 600px) / 873); width: calc(873 * var(--k)); margin-left: auto; }
}

/* ==========================================================================
   DESKTOP (≥ 1000px) — matches the 1656 mockup
   ========================================================================== */
@media (min-width: 1000px) {
  .site-header .wrap {
    flex-direction: row; justify-content: space-between; align-items: center;
    height: calc(166 * var(--u)); padding: 0 calc(65 * var(--u)) 0 calc(130 * var(--u)); gap: 0;
  }
  .logo { width: calc(524 * var(--u)); margin-top: calc(-2 * var(--u)); }
  .tagline { font-size: calc(28 * var(--u)); letter-spacing: .21em; margin-right: -.21em; margin-top: calc(-18 * var(--u)); }

  .hero { height: calc(450 * var(--u)); }
  .hero .wrap { height: 100%; }
  .hero-art {
    --k: var(--u);
    position: absolute; left: calc(-10 * var(--u)); top: calc(-2 * var(--u));
    width: calc(1674 * var(--u)); height: calc(689 * var(--u)); overflow: visible; z-index: 1;
  }
  .hero-art__img { left: 0; }
  .hero-art .hand { left: calc(842 * var(--k)); top: calc(112 * var(--k)); }
  .hero-art .swoosh--possible { left: calc(928 * var(--k)); top: calc(268 * var(--k)); }

  .hero-copy { position: absolute; left: calc(133 * var(--u)); top: calc(58 * var(--u)); padding: 0; margin: 0; width: calc(700 * var(--u)); }
  .hero h1 { font-size: calc(82 * var(--u)); line-height: calc(79 * var(--u)); }
  .swoosh--join { width: calc(462 * var(--u)); margin: calc(8 * var(--u)) 0 calc(36 * var(--u)) calc(7 * var(--u)); }
  .hero-copy p { font-size: calc(32 * var(--u)); line-height: calc(38.4 * var(--u)); margin-left: calc(5 * var(--u)); max-width: none; }

  .commit { padding: 0; }
  .commit::before {
    inset: 0 0 calc(-368 * var(--u)) 0;
    background-image: url("../images/background-stripes.webp");
    background-size: 100% 100%;
  }
  .commit .wrap {
    display: grid; align-items: start;
    grid-template-columns: calc(134 * var(--u)) calc(557 * var(--u)) calc(176 * var(--u)) calc(729 * var(--u));
  }
  .card h2 { font-size: calc(60 * var(--u)); line-height: calc(57 * var(--u)); letter-spacing: -.016em; }

  /* The form card sizes to the iframe; its last 38 units tuck under the photo strip */
  .card--form { grid-column: 2; grid-row: 1; margin: calc(46 * var(--u)) 0 calc(-38 * var(--u)); padding: 0; }
  .card--form h2 { padding: calc(21 * var(--u)) 0 calc(18 * var(--u)) calc(15 * var(--u)); white-space: nowrap; }

  .card--levels {
    grid-column: 4; grid-row: 1; margin-top: calc(150 * var(--u)); padding: calc(38 * var(--u)) calc(30 * var(--u)) calc(88 * var(--u)) calc(32 * var(--u));
  }
  .card--levels h2 { padding-left: calc(21 * var(--u)); }
  .levels { margin-top: calc(70 * var(--u)); gap: calc(36 * var(--u)); }
  .level { grid-template-columns: calc(116 * var(--u)) 1fr; column-gap: calc(20 * var(--u)); }
  .level img { width: calc(116 * var(--u)); height: calc(116 * var(--u)); margin-top: calc(4 * var(--u)); }
  .level h3 { font-size: calc(28 * var(--u)); line-height: calc(32 * var(--u)); }
  .level .price { font-size: calc(20 * var(--u));font-weight: 600 !important; line-height: calc(31.2 * var(--u)); margin-top: 0; }
  .level .desc { font-size: calc(26 * var(--u)); line-height: calc(31.2 * var(--u)); margin-top: calc(10 * var(--u)); }

  .steps-section { padding: calc(18 * var(--u)) 0 0; }
  .steps-section h2 { font-size: calc(74 * var(--u)); line-height: calc(80 * var(--u)); }
  .steps {
    margin-top: calc(39 * var(--u)); flex-direction: row; align-items: flex-start; justify-content: center;
    width: calc(1434 * var(--u)); margin-left: calc(112.5 * var(--u));
  }
  .step { width: calc(200 * var(--u)); flex: none; }
  .step__icon { --d: calc(200 * var(--u)); }
  .step h3 { font-size: calc(60 * var(--u)); line-height: calc(64 * var(--u)); margin-top: calc(18 * var(--u)); white-space: nowrap; }
  .step .swoosh { width: calc(157 * var(--u)); margin-top: calc(8 * var(--u)); }
  .step p { font-size: calc(32 * var(--u)); line-height: calc(38.4 * var(--u)); margin-top: calc(28 * var(--u)); white-space: nowrap; }
  .step__arrow {
    width: calc(29 * var(--u)); margin: calc(92 * var(--u)) calc(8.5 * var(--u)) 0; transform: none; flex: none;
  }
  .steps-summary { font-size: calc(32 * var(--u)); line-height: calc(38.4 * var(--u)); margin-top: calc(34 * var(--u)); max-width: none; }
  .steps-summary br { display: inline; }
  .lb { display: inline; }

  .sustain { height: calc(1066 * var(--u)); }
  .sustain .wrap { height: 100%; }
  .sustain-copy { position: absolute; left: calc(54 * var(--u)); top: calc(66 * var(--u)); padding: 0; width: calc(800 * var(--u)); }
  .sustain h2 { font-size: calc(74 * var(--u)); line-height: calc(79 * var(--u)); }
  .swoosh--sustain { width: calc(229 * var(--u)); height: calc(28 * var(--u)); margin: calc(20 * var(--u)) 0 calc(31 * var(--u)) calc(6 * var(--u)); }
  .sustain-copy p { font-size: calc(32 * var(--u)); line-height: calc(38.4 * var(--u)); margin-left: calc(15 * var(--u)); max-width: none; }
  .sustain-copy .cta { font-size: calc(36 * var(--u)); line-height: calc(46 * var(--u)); margin-top: calc(38 * var(--u)); white-space: nowrap; }
  .contact { margin: calc(34 * var(--u)) 0 0 calc(15 * var(--u)); }
  .contact__label { font-size: calc(32 * var(--u)); }
  .contact__name { font-size: calc(46 * var(--u)); line-height: calc(48 * var(--u)); margin-top: calc(4 * var(--u)); }
  .contact__title { font-size: calc(26 * var(--u)); line-height: calc(30 * var(--u)); }
  .contact__email { font-size: calc(32 * var(--u)); margin-top: calc(2 * var(--u)); }

  .footer-art {
    --k: var(--u);
    position: absolute; right: 0; bottom: 0; width: calc(873 * var(--u)); height: calc(865 * var(--u)); margin: 0;
  }
}

/* Wide screens: fade hero photo edges into the navy */
@media (min-width: 1700px) {
  .hero-art__img {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  }
}

/* ==========================================================================
   ANIMATION STATES — only applied when JS is running and motion is allowed
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js svg[data-animate]:not(.is-ready) path { visibility: hidden; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.3,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .slide { opacity: 0; transition: opacity 2s ease, transform 2.2s cubic-bezier(.2,.7,.3,1); }
  .js .slide[data-from="left"]  { transform: translate3d(-48px, 0, 0); }
  .js .slide[data-from="right"] { transform: translate3d(48px, 0, 0); }
  .js .slide[data-from="up"]    { transform: translate3d(0, -40px, 0); }
  .js .slide[data-from="down"]  { transform: translate3d(0, 40px, 0); }
  .js .slide.is-in { opacity: 1; transform: none; }
  .js .photo-strip picture:nth-child(2) .slide.is-in {transform: scale(.96) translate(-1.5%, -0.8%);}
  .js .photo-strip picture:nth-child(3) .slide.is-in {transform: scale(1.08) translate(4%, 4%);}
  .js .no-anim { transition: none !important; }

}

.step__arrow svg { width: 100%; height: auto; }

/* Keep bleeding art from creating horizontal scroll */
html { overflow-x: hidden; overflow-x: clip; }
.photo-strip, .sustain { overflow: hidden; overflow-x: clip; }
.hero { overflow-x: clip; }
