/* About Us page */
.hero-about { background-image: url('/res/img/bg-hero-building-about.webp'); }
.hero-about .hero-photo { background-image: url('/res/img/hero-about-building.webp'); }

/* eyebrow + h2 between two divider lines */
.line-title { display: flex; align-items: center; gap: 10px; padding: 40px 40px 10px; }
.line-title::before, .line-title::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.line-title .titles { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 40px; text-align: center; }
.line-title-story { padding-top: var(--pad-global); }

.about-video { max-width: 1400px; margin: auto; padding: 20px var(--pad-global); }
.about-video iframe { display: block; width: 100%; aspect-ratio: 1238 / 704; border: 0; }

/* Jay's story: flows over two columns on desktop */
.origin { max-width: 1400px; margin: auto; padding: 30px 40px 40px; }
.origin h2 { display: none; }
.origin-text { column-count: 2; column-gap: 30px; }
.origin-text h3 { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--navy); break-after: avoid; }
.origin-text p { margin-bottom: 1.6em; font-size: 18px; font-weight: 300; line-height: 1.6; }
.origin-text p:last-child { margin-bottom: 0; }

/* quote over the Jay + Becky photo (people on the right half); grows with the width on wide screens so the photo isn't cropped at the top */
.jay-quote { display: flex; align-items: center; min-height: 524px; aspect-ratio: 2000 / 748; padding: 20px 80px; background: #fff url('/res/img/bg-jay-becky-about.webp') right center / cover no-repeat; }
.jay-quote figure { flex: 0 0 calc(50% - 5px); margin: 0; }
.jay-quote blockquote { margin: 0; padding: 10px; font-size: 32px; font-style: italic; font-weight: 300; line-height: 1.6; color: var(--gold); }
.jay-quote figcaption { display: flex; flex-direction: column; padding: 10px; border-top: 1px solid var(--gold); line-height: 1.5; color: var(--gold); }
.jay-quote figcaption strong { font-size: 18px; }
.jay-quote figcaption span { font-size: 12px; text-transform: uppercase; }
.jay-pic { display: none; }

.cta-jay { display: flex; align-items: flex-end; min-height: 500px; padding-top: 40px; background: url('/res/img/bg-blue1.webp') center / cover no-repeat; color: #fff; }
/* vertically centered in the whole band (the negative margin cancels the band's top padding, which is there for the photo) */
.cta-jay-text { flex: 1 1 0; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -40px; padding: 40px 40px 40px 60px; }
.cta-jay h2 { color: #fff; }
.cta-jay p { padding-bottom: 10px; font-size: 18px; font-weight: 300; line-height: 1.6; }
.cta-jay .btn { margin: 10px 0; }
.cta-jay-pic { flex: 1 1 0; }
.cta-jay-pic img { width: 100%; }

/* timeline: year + picture on one side of the center line, text on the other, alternating */
.timeline { max-width: 1400px; margin: auto; padding: 60px 40px; }
.tl-list { margin: 0; padding: 0; list-style: none; background: linear-gradient(var(--beige-border), var(--beige-border)) center / 1px 100% no-repeat; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; min-height: 236px; }
.tl-item::before { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 10px #fff; }
.tl-year { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 40px; }
.tl-item:nth-child(even) .tl-year { order: 2; flex-direction: row-reverse; justify-content: flex-end; }
.tl-year .yr { min-width: 159px; font: 400 100px/1 var(--font-display); color: var(--gold); text-align: center; }
.tl-pic { width: 150px; height: 150px; margin: 10px 40px; object-fit: cover; border: 5px solid #fff; filter: drop-shadow(0 4px 2px rgba(0,0,0,.15)); }
.tl-text { display: flex; flex-direction: column; justify-content: center; padding: 40px; font-size: 18px; font-weight: 300; line-height: 1.6; }
.tl-text ul { margin: 0; padding-left: 27px; }
.tl-actions { display: none; }

/* "Join the lifesaving network" donor + recipient band */
.dr-network { display: flex; align-items: flex-end; gap: 20px; min-height: 710px; background: url('/res/img/bg-blue2.webp') center / cover no-repeat; color: #fff; }
.dr-network-text { flex: 1 1 0; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 40px 0 60px; }
.dr-network h2 { color: #fff; }
.dr-network h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.dr-network p { padding-bottom: 10px; font-size: 18px; font-weight: 300; line-height: 1.6; }
.dr-network .btn { margin: 10px 0; }
.dr-network-pic { flex: 1 1 0; padding-top: 60px; }
.dr-network-pic img { width: 616px; }

@media (max-width: 1200px) {
    .jay-quote { padding: 20px 40px; }
    .jay-quote blockquote { font-size: 26px; }
    .tl-year { padding: 30px 20px; }
    .tl-year .yr { min-width: 0; font-size: 72px; }
    .tl-pic { margin: 10px 20px; }
    .tl-text { padding: 30px; }
    .cta-jay-text { padding: 40px 30px 40px 40px; }
    .dr-network-text { padding-left: 40px; }
}
@media (max-width: 991px) {
    .jay-quote blockquote { font-size: 22px; }
    .tl-year .yr { font-size: 56px; }
    .tl-pic { width: 110px; height: 110px; margin: 10px; }
    .tl-text { padding: 20px 30px; font-size: 16px; }
    .cta-jay h2, .dr-network h2 { font-size: 40px; }
}
@media (max-width: 768px) {
    .line-title-origin { display: none; }
    .line-title-story { padding: 40px 20px 20px; }
    .line-title-story::before, .line-title-story::after, .line-title-story .eyebrow { display: none; }
    .line-title-story .titles { padding: 0 30px; }
    .line-title h2 { font-size: 48px; }
    .about-video { padding: 0; }
    .about-video iframe { aspect-ratio: 390 / 220; }
    .origin { padding: 48px 20px 0; }
    .origin h2 { display: block; margin-bottom: 12px; font-size: 48px; }
    .origin-text { column-count: 1; }
    .origin-text p { margin-bottom: 1.5em; line-height: 1.5; }
    .jay-quote { display: block; min-height: 0; aspect-ratio: auto; padding: 22px 0 0; background: none; }
    .jay-quote figure { padding: 0 20px 48px; }
    .jay-quote blockquote { font-size: 32px; color: var(--navy); }
    .jay-quote figcaption { padding: 20px 10px; }
    .jay-quote figcaption strong { font-size: 20px; }
    .jay-quote figcaption span { font-size: 14px; text-transform: none; }
    .jay-quote figcaption br { display: none; }
    .jay-pic { display: block; aspect-ratio: 1; background: url('/res/img/bg-jay-about-mobile.webp') center / cover no-repeat; }
    .cta-jay { flex-direction: column; align-items: stretch; min-height: 0; padding-top: var(--pad-global); }
    .cta-jay-text { margin-top: 0; padding: 0 40px 20px; }
    .cta-jay .btn, .dr-network .btn, .tl-actions .btn-primary { width: 100%; padding: 20px 24px; }
    .timeline { padding: 0 20px 40px; }
    .tl-list { background: none; }
    .tl-item { display: block; min-height: 0; margin-bottom: 8px; padding-left: 56px; }
    .tl-item::before { left: 10px; top: 10px; margin: 0; box-shadow: none; }
    .tl-item::after { content: ''; position: absolute; left: 24px; top: 53px; bottom: 0; border-left: 1px solid var(--beige-border); }
    .tl-year, .tl-item:nth-child(even) .tl-year { flex-direction: column; align-items: stretch; gap: 15px; padding: 10px 0 0; }
    .tl-year .yr { font-size: 64px; text-align: left; }
    .tl-pic { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
    .tl-text { display: block; padding: 15px 0 0; font-size: 18px; line-height: 1.5; }
    /* about.js adds .collapsible: phones see the first eight years until "View Full Timeline" */
    .timeline.collapsible .tl-item:nth-child(n+9) { display: none; }
    .tl-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 20px; }
    .tl-more { display: none; }
    .timeline.collapsible .tl-more { display: inline-flex; }
    .dr-network { flex-direction: column; align-items: stretch; min-height: 0; padding-top: var(--pad-global); }
    .dr-network-text { padding: 0 40px; }
    .dr-network-pic { padding: 0; }
    .dr-network-pic img { width: 100%; }
}
