/* YUVA PRERNA FOUNDATION — Editorial Design System */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    --ypf-ivory: #F8F5ED;
    --ypf-ivory-dark: #EFEBE0;
    --ypf-teal: #064E3B;
    --ypf-teal-mid: #176B57;
    --ypf-gold: #E85D04;
    --ypf-gold-light: #E9A23B;
    --ypf-sage: #DDE7D5;
    --ypf-text: #17342D;
    --ypf-text-muted: #66736F;
    --ypf-text-light: #8A9490;
    --ypf-border: #E4DFD4;
    --ypf-white: #FFFFFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-hand: 'Caveat', 'Playfair Display', Georgia, cursive;
    --max-width: 76rem;
    --header-h: 5rem;
    --radius: 0.65rem;
    --radius-lg: 1rem;
    --radius-pill: 999px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.ypf-site {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ypf-text);
    background: var(--ypf-ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video, iframe { max-width: 100%; height: auto; }
iframe { height: 100%; }

:focus-visible {
    outline: 3px solid var(--ypf-gold);
    outline-offset: 3px;
}

.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;
}

.ypf-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ypf-teal-mid);
}

.ypf-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ypf-gold);
    margin-bottom: 0.75rem;
    display: block;
}

.ypf-heading-xl {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ypf-text);
    margin: 0 0 1rem;
}

.ypf-heading-lg {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.ypf-lead {
    font-size: 1.125rem;
    color: var(--ypf-text-muted);
    max-width: 36rem;
    line-height: 1.7;
}

.ypf-mission-hindi {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--ypf-teal);
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--ypf-gold);
}

.ypf-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) { .ypf-container { padding: 0 2rem; } }

.ypf-section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.ypf-section--alt { background: var(--ypf-ivory-dark); }

/* Header */
.ypf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(248, 245, 237, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.ypf-header.is-scrolled {
    background: rgba(248, 245, 237, 0.96);
    border-bottom-color: var(--ypf-border);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.06);
}

.ypf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 1rem;
}

@media (min-width: 768px) { .ypf-header__inner { padding: 0 2rem; } }

.ypf-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--ypf-teal);
    min-width: 0;
    max-width: min(100%, calc(100vw - 9.5rem));
}

.ypf-brand img {
    height: 2.75rem;
    width: 2.75rem;
    object-fit: contain;
    flex-shrink: 0;
}

.ypf-brand__name {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ypf-teal);
    white-space: nowrap;
}

.ypf-brand__sub {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ypf-teal-mid);
    margin-top: 0.15rem;
    white-space: nowrap;
}

@media (max-width: 479px) {
    .ypf-brand__sub { display: none; }
    .ypf-brand__name { font-size: 0.85rem; max-width: 9.5rem; white-space: normal; }
}

.ypf-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

@media (min-width: 1100px) { .ypf-nav { display: flex; } }

.ypf-nav a {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ypf-text-muted);
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color var(--transition);
}

.ypf-nav a:hover { color: var(--ypf-teal); }

.ypf-nav a.is-active {
    color: var(--ypf-teal);
    font-weight: 600;
    background: transparent;
}

.ypf-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ypf-gold);
}

.ypf-header__actions { display: flex; align-items: center; gap: 0.5rem; }

.ypf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    color: var(--ypf-teal);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.ypf-icon-btn:hover {
    background: rgba(6, 78, 59, 0.06);
    border-color: var(--ypf-border);
}

.ypf-icon-btn--emergency { display: none; }
@media (min-width: 640px) { .ypf-icon-btn--emergency { display: inline-flex; } }

.ypf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.ypf-btn--primary,
.ypf-btn--donate {
    background: var(--ypf-gold);
    color: var(--ypf-white);
}

.ypf-btn--primary:hover,
.ypf-btn--donate:hover {
    background: #d45303;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
}

.ypf-btn--secondary,
.ypf-btn--outline {
    background: transparent;
    color: var(--ypf-teal);
    border: 1.5px solid var(--ypf-teal);
}

.ypf-btn--secondary:hover,
.ypf-btn--outline:hover {
    background: var(--ypf-teal);
    color: var(--ypf-white);
    transform: translateY(-2px);
}

.ypf-btn--ghost {
    background: transparent;
    color: var(--ypf-text-muted);
    border: 1px solid var(--ypf-border);
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
}

.ypf-btn--ghost:hover { color: var(--ypf-teal); border-color: var(--ypf-teal-mid); }
.ypf-btn--lg { padding: 0.95rem 1.65rem; font-size: 0.95rem; min-height: 54px; }
.ypf-btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.ypf-btn__arrow { transition: transform 0.25s ease; font-size: 0.8em; }
.ypf-btn:hover .ypf-btn__arrow { transform: translateX(3px); }

.ypf-header .ypf-btn--donate span { display: none; }
@media (min-width: 640px) {
    .ypf-header .ypf-btn--donate span { display: inline; }
}

.ypf-header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ypf-header .ypf-btn--donate {
    padding: 0.65rem 0.9rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .ypf-header .ypf-btn--donate {
        padding: 0.7rem 1.25rem;
    }
}

.ypf-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--ypf-teal);
    position: relative;
    z-index: 102;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.ypf-menu-btn:hover,
.ypf-menu-btn[aria-expanded="true"] {
    background: rgba(6, 78, 59, 0.06);
    border-color: var(--ypf-teal-mid);
    color: var(--ypf-teal);
}

@media (min-width: 1100px) {
    .ypf-menu-btn { display: none; }
}

#mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(248, 245, 237, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ypf-border);
    padding: 0.5rem 1.25rem 1.25rem;
    z-index: 101;
    flex-direction: column;
    max-height: calc(100vh - var(--header-h) - 0.5rem);
    overflow-y: auto;
    box-shadow: 0 16px 32px rgba(6, 78, 59, 0.1);
    -webkit-overflow-scrolling: touch;
}

#mobile-menu.is-open {
    display: flex;
}

#mobile-menu a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ypf-text);
    text-decoration: none;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--ypf-border);
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible {
    color: var(--ypf-teal);
}

body.ypf-menu-open {
    overflow: hidden;
}

@media (max-width: 1099px) {
    .ypf-header {
        z-index: 100;
    }
}

#nav-spacer { height: var(--header-h); }

/* Hero — premium organic editorial */
.ypf-hero {
    position: relative;
    padding: 0.5rem 0 2.5rem;
    background: var(--ypf-ivory);
    overflow: hidden;
}

.ypf-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ypf-hero__leaf {
    position: absolute;
    width: 7rem;
    height: 7rem;
    border-radius: 60% 40% 55% 45%;
    background: rgba(221, 231, 213, 0.55);
    filter: blur(0.5px);
}

.ypf-hero__leaf--1 { top: 12%; right: 4%; transform: rotate(18deg); }
.ypf-hero__leaf--2 { bottom: 8%; left: 42%; width: 5rem; height: 5rem; background: rgba(233, 162, 59, 0.12); }

.ypf-hero__blob {
    position: absolute;
    width: 18rem;
    height: 18rem;
    right: -6rem;
    top: 30%;
    border-radius: 45% 55% 50% 50%;
    background: radial-gradient(circle at 30% 30%, rgba(221, 231, 213, 0.7), transparent 70%);
}

.ypf-hero__stage {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1rem;
}

@media (min-width: 768px) {
    .ypf-hero__stage { padding: 1rem 2rem 1.5rem; gap: 2rem; }
}

@media (min-width: 1024px) {
    .ypf-hero__stage {
        grid-template-columns: 1fr 1fr;
        gap: 2.75rem;
        align-items: center;
        min-height: calc(100vh - var(--header-h) - 1.5rem);
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }
}

.ypf-hero__media {
    position: relative;
    outline: none;
    order: -1;
}

@media (min-width: 1024px) {
    .ypf-hero__media { order: 0; }
}

.ypf-hero__frame,
#photoStoryFeaturedWrap {
    position: relative;
    width: 100%;
    height: min(68vw, 420px);
    min-height: 280px;
    overflow: hidden;
    background: var(--ypf-ivory-dark);
    border-radius: 1.25rem 1.25rem 2.5rem 1.25rem;
    box-shadow: 0 18px 48px rgba(6, 78, 59, 0.12);
}

@media (min-width: 640px) {
    .ypf-hero__frame,
    #photoStoryFeaturedWrap {
        height: 480px;
        border-radius: 1.5rem 1.5rem 3.5rem 1.5rem / 1.5rem 1.5rem 4.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .ypf-hero__frame,
    #photoStoryFeaturedWrap {
        height: clamp(560px, 68vh, 720px);
        border-radius: 1.75rem 2.5rem 5.5rem 2rem / 1.75rem 2rem 6.5rem 2.25rem;
    }
}

#photoStoryFeatured {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: opacity 0.4s ease;
}

.ypf-hero__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(6, 78, 59, 0.28) 0%, transparent 42%),
        linear-gradient(to top, rgba(6, 78, 59, 0.45) 0%, transparent 38%);
}

.ypf-hero__handwrite {
    font-family: var(--font-hand);
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
}

.ypf-hero__handwrite--photo {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 3;
    color: #fff;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.ypf-hero__scribble {
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 99px;
    background: var(--ypf-gold);
    transform: rotate(-4deg);
}

.ypf-hero__quote-card {
    position: absolute;
    left: 0.85rem;
    bottom: 3.4rem;
    z-index: 3;
    max-width: min(88%, 17.5rem);
    padding: 1rem 1.15rem 1.1rem;
    color: #fff;
    background: var(--ypf-teal);
    border-radius: 1.75rem 0.65rem 1.9rem 0.85rem / 1.4rem 1.1rem 1.6rem 1.2rem;
    box-shadow: 0 12px 28px rgba(6, 78, 59, 0.28);
}

.ypf-hero__quote-card p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
}

.ypf-hero__quote-rule {
    display: block;
    width: 2.75rem;
    height: 2px;
    margin-top: 0.7rem;
    background: var(--ypf-gold);
    border-radius: 2px;
}

.ypf-hero__photo-foot {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.85rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 500;
}

.ypf-hero__photo-foot i { color: var(--ypf-sage); }

.ypf-hero__media-bar--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ypf-hero__copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 0.25rem 0 0;
}

.ypf-hero__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ypf-teal);
}

.ypf-hero__title-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ypf-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.ypf-hero__title-line,
.ypf-hero__title-accent {
    display: block;
    font-size: clamp(2.25rem, 6vw, 4.75rem);
}

.ypf-hero__title-line {
    color: var(--ypf-teal);
    position: relative;
}

.ypf-hero__title-line::after {
    content: '';
    position: absolute;
    left: 0.15em;
    bottom: 0.08em;
    width: 2.6em;
    height: 0.18em;
    background: rgba(232, 93, 4, 0.35);
    border-radius: 99px;
    z-index: -1;
}

.ypf-hero__title-accent { color: var(--ypf-gold); }

.ypf-hero__handwrite--side {
    display: none;
    color: rgba(23, 52, 45, 0.28);
    font-size: 1.35rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

@media (min-width: 1100px) {
    .ypf-hero__handwrite--side { display: block; }
}

.ypf-hero__support {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: var(--ypf-text);
}

.ypf-br-desktop { display: none; }
@media (min-width: 768px) { .ypf-br-desktop { display: inline; } }

.ypf-hero__pillars {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

@media (min-width: 900px) {
    .ypf-hero__pillars {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.ypf-hero__pillars li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ypf-text);
    line-height: 1.3;
}

.ypf-hero__pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    font-size: 0.95rem;
}

.ypf-hero__pillar-icon--green {
    background: rgba(221, 231, 213, 0.9);
    color: var(--ypf-teal);
}

.ypf-hero__pillar-icon--orange {
    background: rgba(232, 93, 4, 0.12);
    color: var(--ypf-gold);
}

.ypf-hero__ctas {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.ypf-hero__ctas .ypf-btn { width: 100%; }

@media (min-width: 520px) {
    .ypf-hero__ctas {
        flex-direction: row;
        align-items: center;
    }
    .ypf-hero__ctas .ypf-btn { width: auto; }
}

.ypf-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.35rem;
    padding: 1rem 0.65rem;
    background: var(--ypf-sage);
    border: 1px solid rgba(6, 78, 59, 0.08);
    border-radius: 1.15rem;
}

@media (min-width: 640px) {
    .ypf-hero__stats { padding: 1.1rem 1.25rem; }
}

.ypf-hero__stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.25rem 0.4rem;
    text-align: left;
}

.ypf-hero__stat + .ypf-hero__stat {
    border-left: 1px solid rgba(6, 78, 59, 0.15);
}

.ypf-hero__stat > i {
    display: none;
    color: var(--ypf-teal);
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .ypf-hero__stat > i { display: inline-block; }
}

.ypf-hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    color: var(--ypf-teal);
    line-height: 1.1;
}

.ypf-hero__stat span {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--ypf-text-muted);
    line-height: 1.25;
}

@media (min-width: 640px) {
    .ypf-hero__stat span { font-size: 0.78rem; }
}

.ypf-hero__carousel {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
    position: relative;
}

.ypf-hero__nav {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ypf-hero__nav button,
.photo-story-nav button {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--ypf-border);
    background: var(--ypf-white);
    border-radius: 50%;
    color: var(--ypf-teal);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ypf-hero__nav button:hover,
.photo-story-nav button:hover {
    background: var(--ypf-sage);
    border-color: var(--ypf-teal-mid);
    transform: translateY(-1px);
}

.ypf-hero__filmstrip,
#photoStoryThumbs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.ypf-hero__filmstrip::-webkit-scrollbar,
#photoStoryThumbs::-webkit-scrollbar { display: none; }

.photo-story-thumb {
    flex-shrink: 0;
    width: 4.35rem;
    height: 3.1rem;
    border: 2px solid transparent;
    border-radius: 0.65rem;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    opacity: 0.55;
    background: none;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.photo-story-thumb.is-active {
    opacity: 1;
    border-color: var(--ypf-gold);
    transform: scale(1.06);
}

.photo-story-thumb:hover { opacity: 0.85; }

.photo-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ypf-hero__handwrite--carousel {
    display: none;
    position: absolute;
    right: -0.25rem;
    top: -1.6rem;
    color: rgba(23, 52, 45, 0.28);
    font-size: 1.15rem;
    text-align: right;
    line-height: 1;
}

@media (min-width: 1200px) {
    .ypf-hero__handwrite--carousel { display: block; }
}

.ypf-hero__segments {
    display: flex;
    gap: 0.35rem;
    margin-top: -0.35rem;
    padding-left: 2.9rem;
    padding-right: 2.9rem;
}

.ypf-hero__segment {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: rgba(6, 78, 59, 0.12);
    overflow: hidden;
}

.ypf-hero__segment.is-active {
    background: var(--ypf-gold);
}

.ypf-hero__segment.is-done {
    background: rgba(232, 93, 4, 0.45);
}

@media (max-width: 639px) {
    .ypf-hero__handwrite--photo {
        font-size: 1.35rem;
        top: 0.9rem;
        left: 0.9rem;
    }

    .ypf-hero__quote-card {
        bottom: 2.85rem;
        max-width: min(88%, 14.5rem);
        padding: 0.75rem 0.85rem;
    }

    .ypf-hero__quote-card p {
        font-size: 0.9rem;
    }

    .ypf-hero__segments {
        padding-left: 0;
        padding-right: 0;
    }

    .ypf-brand__name {
        max-width: 7.5rem;
        font-size: 0.8rem;
    }

    .ypf-icon-btn[href="#blog"] {
        display: none;
    }
}

/* legacy aliases kept for older selectors */
.ypf-hero__grid { display: contents; }
.photo-story-layout { display: contents; }
.photo-story-controls { display: none; }
.ypf-hero__brand { margin: 0; }
.ypf-hero__brand-hi {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ypf-text);
}
.ypf-hero__brand-en {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ypf-teal-mid);
}
.ypf-hero__headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 500;
    color: var(--ypf-teal);
    margin: 0 0 0.875rem;
    line-height: 1.3;
}
.ypf-hero__caption .photo-story-caption__category {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ypf-gold);
}
.ypf-hero__caption .photo-story-caption__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: var(--ypf-text);
}
.ypf-hero__caption .photo-story-caption__story {
    font-size: 0.875rem;
    color: var(--ypf-text-muted);
    line-height: 1.5;
}

/* Impact strip */
.ypf-impact-strip {
    border-top: 1px solid var(--ypf-border);
    border-bottom: 1px solid var(--ypf-border);
    background: var(--ypf-white);
    padding: 2rem 0;
}

.ypf-impact-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ypf-impact-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ypf-stat__number {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--ypf-teal);
}

.ypf-stat__label { font-size: 0.8125rem; color: var(--ypf-text-muted); }

/* Split layout */
.ypf-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .ypf-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.ypf-about-image {
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ypf-ivory-dark);
}

.ypf-about-image img { width: 100%; height: 100%; object-fit: cover; }

/* About + Founder (Shivam once) */
.ypf-about {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .ypf-about {
        grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
        gap: 3rem 3.25rem;
        align-items: start;
    }
}

.ypf-about__copy {
    padding-top: 0;
    min-width: 0;
}

.ypf-about__lead {
    max-width: 36rem;
    margin-top: 0.25rem;
}

.ypf-about__body {
    margin: 1rem 0 0;
    color: var(--ypf-text-muted);
    line-height: 1.7;
    max-width: 36rem;
}

.ypf-about__points {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.ypf-about__points li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ypf-teal);
}

.ypf-about__points i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ypf-sage);
    color: var(--ypf-teal);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ypf-founder {
    width: 100%;
    max-width: 28rem;
    margin: 0;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(6, 78, 59, 0.06);
    justify-self: stretch;
    /* Don't slide horizontally — it leaves a white gap beside the photo */
    transform: none !important;
    filter: none !important;
}

@media (min-width: 900px) {
    .ypf-founder {
        justify-self: end;
        max-width: none;
        width: 100%;
    }
}

.ypf-founder__photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        center top / cover no-repeat url('../images.optimized/team/shivam.jpg'),
        var(--ypf-ivory-dark);
}

.ypf-founder__photo img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

.ypf-founder__meta {
    padding: 1.15rem 1.35rem 1.4rem;
    border-top: 1px solid var(--ypf-border);
    background: var(--ypf-white);
}

.ypf-founder__meta h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    margin: 0.2rem 0 0.35rem;
    color: var(--ypf-teal);
}

.ypf-founder__role {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ypf-gold);
}

.ypf-founder__bio {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ypf-text-muted);
}

@media (max-width: 899px) {
    .ypf-founder {
        max-width: 24rem;
        margin-inline: auto;
    }
}

/* Team grid — volunteers only */
.ypf-team-intro {
    max-width: 38rem;
    margin-bottom: 2.25rem;
}

.ypf-team-intro .ypf-lead {
    margin-top: 0.35rem;
}

.ypf-team-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .ypf-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.ypf-team-card {
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: 1rem;
    overflow: hidden;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ypf-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(6, 78, 59, 0.08);
}

.ypf-team-card__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ypf-ivory-dark);
}

@media (max-width: 639px) {
    .ypf-team-card {
        display: grid;
        grid-template-columns: 7.5rem 1fr;
        align-items: stretch;
    }

    .ypf-team-card__photo {
        aspect-ratio: auto;
        min-height: 100%;
        align-self: stretch;
    }
}

.ypf-team-card__photo img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

.ypf-team-card__body {
    padding: 1rem 1.1rem 1.2rem;
}

.ypf-team-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.25rem;
    color: var(--ypf-text);
}

.ypf-team-card__role {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ypf-teal-mid);
}

.ypf-team-card__desc {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ypf-text-muted);
}

.ypf-team-cta {
    margin: 2rem 0 0;
}

/* Focus areas */
.ypf-focus-grid {
    display: grid;
    border-top: 1px solid var(--ypf-border);
}

@media (min-width: 768px) { .ypf-focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ypf-focus-grid { grid-template-columns: repeat(4, 1fr); } }

.ypf-focus-item {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--ypf-border);
    border-right: 1px solid var(--ypf-border);
}

.ypf-focus-item__icon { color: var(--ypf-teal); margin-bottom: 1rem; font-size: 1.25rem; }

.ypf-focus-item h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.ypf-focus-item p { font-size: 0.875rem; color: var(--ypf-text-muted); margin: 0; }

/* Impact */
.ypf-impact-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .ypf-impact-layout { grid-template-columns: 1fr 1.2fr; } }

.ypf-impact-stat-large {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    color: var(--ypf-teal);
    line-height: 1;
}

#impactPhotoGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.impact-photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    margin: 0;
}

.impact-photo--large { grid-row: span 2; aspect-ratio: auto; }
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }

.impact-photo figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.75rem;
    font-size: 0.75rem;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
}

/* Photo stories scroll */
.photo-stories-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.photo-stories-nav button {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--ypf-border);
    background: var(--ypf-white);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--ypf-teal);
}

#photoStoriesTrack {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.photo-story-card { flex: 0 0 min(85vw, 22rem); scroll-snap-align: start; }

.photo-story-card__image {
    aspect-ratio: 4 / 3;
    height: 16rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ypf-ivory-dark);
    margin-bottom: 1rem;
}

.photo-story-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-story-card__meta {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ypf-gold);
}

.photo-story-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0.375rem 0;
}

.photo-story-card__story { font-size: 0.875rem; color: var(--ypf-text-muted); margin: 0; }

/* Timeline */
.ypf-timeline { border-left: 2px solid var(--ypf-border); margin-left: 0.75rem; padding-left: 2rem; }

.ypf-timeline-item { position: relative; padding-bottom: 2.5rem; }

.ypf-timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 5px);
    top: 0.375rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ypf-teal);
}

.ypf-timeline-item__date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ypf-gold);
}

.ypf-timeline-item h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0.25rem 0 0.5rem; }
.ypf-timeline-item p { color: var(--ypf-text-muted); max-width: 36rem; }

.activity-card { cursor: pointer; }

/* News */
#blogGrid { display: grid; gap: 2rem; }
#blogCardsSlider { display: none; }

@media (min-width: 768px) {
    #blogGrid { grid-template-columns: repeat(3, 1fr); }
}

.ypf-news-card { border-top: 1px solid var(--ypf-border); padding-top: 1.5rem; }
.blog-card { cursor: pointer; }

.ypf-news-card__image {
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ypf-ivory-dark);
    margin-bottom: 1rem;
}

.ypf-news-card__image img { width: 100%; height: 100%; object-fit: cover; }

.ypf-news-card h3 { font-family: var(--font-display); font-size: 1.125rem; margin: 0 0 0.5rem; line-height: 1.35; }
.ypf-news-card p { font-size: 0.875rem; color: var(--ypf-text-muted); margin: 0; }

.ypf-news-card--external {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition);
    cursor: pointer;
}

.ypf-news-card--external:hover { transform: translateY(-2px); }

.ypf-news-card--external:hover h3 { color: var(--ypf-teal); }

.ypf-news-card__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ypf-teal);
}

/* CTA */
.ypf-cta-band {
    background: var(--ypf-teal);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.ypf-cta-band .ypf-heading-lg { color: white; max-width: 28rem; margin: 0 auto 1rem; }
.ypf-cta-band p { color: rgba(255,255,255,0.8); max-width: 32rem; margin: 0 auto 2rem; }
.ypf-cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.ypf-cta-band .ypf-btn--secondary {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.ypf-cta-band .ypf-btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Contact */
.ypf-contact-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .ypf-contact-grid { grid-template-columns: 1fr 1.2fr; } }

.ypf-contact-list { list-style: none; padding: 0; margin: 0; }
.ypf-contact-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--ypf-border); }

.ypf-contact-list strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ypf-text-light);
    margin-bottom: 0.25rem;
}

.ypf-contact-list a { color: var(--ypf-teal); text-decoration: none; font-weight: 500; }

#contactForm { display: flex; flex-direction: column; gap: 1rem; }

#contactForm input, #contactForm textarea {
    font-family: var(--font-body);
    padding: 0.75rem 1rem;
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius);
    background: var(--ypf-white);
}

#contactForm input:focus, #contactForm textarea:focus {
    outline: none;
    border-color: var(--ypf-teal-mid);
}

/* Footer */
.ypf-footer {
    background: var(--ypf-text);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 2rem;
}

.ypf-footer__grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) { .ypf-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.ypf-footer h4 { font-family: var(--font-display); color: white; margin: 0 0 1rem; }
.ypf-footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.875rem; display: block; padding: 0.25rem 0; cursor: pointer; }
.ypf-footer a:hover { color: white; }
.ypf-footer__brand { font-family: var(--font-display); font-size: 1.25rem; color: white; margin-bottom: 0.75rem; }
.ypf-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.45); }
.ypf-footer__social { display: flex; gap: 1rem; margin-top: 1rem; }

.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; }
.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; height: 3rem;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
}

#admin-details { display: none; }

/* Modal / overlay utilities (replaces Tailwind for modals) */
.hidden { display: none !important; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.bg-black { background: #000; }
.bg-opacity-50 { --tw-bg-opacity: 0.5; }
.bg-opacity-75 { --tw-bg-opacity: 0.75; }
.bg-white { background: #fff; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.w-full { width: 100%; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.relative { position: relative; }
.absolute { position: absolute; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.grid { display: grid; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
[class*="bg-opacity-"] { background-color: rgba(0,0,0,var(--tw-bg-opacity, 0.5)); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ypf-reveal,
    .ypf-reveal-child,
    .ypf-hero-anim,
    .ypf-word,
    .ypf-stat__number {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ─── Plantation Project Page ─── */
.project-hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--ypf-border);
    background: linear-gradient(180deg, var(--ypf-ivory-dark) 0%, var(--ypf-ivory) 100%);
}

.project-hero__org {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ypf-teal);
    margin: 0.5rem 0 1rem;
}

.project-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

@media (min-width: 768px) {
    .project-facts { grid-template-columns: repeat(4, 1fr); }
}

.project-fact {
    padding: 1rem;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius);
}

.project-fact__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ypf-text-light);
    margin-bottom: 0.35rem;
}

.project-fact__value {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ypf-teal);
}

.project-areas {
    font-size: 0.9375rem;
    color: var(--ypf-text-muted);
    margin: 0;
}

.project-layout {
    display: grid;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .project-layout {
        grid-template-columns: 14rem 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.project-toc {
    display: none;
}

@media (min-width: 1024px) {
    .project-toc {
        display: block;
        position: sticky;
        top: calc(var(--header-h) + 1rem);
        max-height: calc(100vh - var(--header-h) - 2rem);
        overflow-y: auto;
        padding-right: 0.5rem;
    }
}

.project-toc h2 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    margin: 0 0 0.75rem;
    color: var(--ypf-text);
}

.project-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.project-toc li { margin-bottom: 0.35rem; }

.project-toc a {
    color: var(--ypf-text-muted);
    text-decoration: none;
}

.project-toc a:hover { color: var(--ypf-teal); }

.project-doc {
    max-width: 48rem;
}

.project-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--ypf-border);
}

.project-section:last-of-type { border-bottom: none; }

.project-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--ypf-text);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.project-section h2 span {
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ypf-gold);
    letter-spacing: 0.04em;
}

.project-section h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--ypf-teal);
}

.project-section p {
    color: var(--ypf-text-muted);
    line-height: 1.75;
    margin: 0 0 1rem;
}

.project-section ul,
.project-section ol {
    color: var(--ypf-text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.project-section li { margin-bottom: 0.35rem; }

.project-quote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--ypf-gold);
    background: rgba(26, 77, 71, 0.04);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--ypf-teal);
    line-height: 1.5;
}

.project-highlight {
    font-size: 1.125rem;
    color: var(--ypf-text) !important;
}

.project-chips {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-chips li {
    margin: 0 !important;
    padding: 0.375rem 0.875rem;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ypf-teal);
}

.project-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius);
}

.project-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.project-table-wrap th,
.project-table-wrap td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--ypf-border);
    color: var(--ypf-text-muted);
}

.project-table-wrap th {
    background: var(--ypf-ivory-dark);
    color: var(--ypf-text);
    font-weight: 600;
    white-space: nowrap;
}

.project-table-wrap tr:last-child td { border-bottom: none; }

.project-cards {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}

@media (min-width: 640px) {
    .project-cards { grid-template-columns: repeat(3, 1fr); }
    .project-cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .project-cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.project-card {
    padding: 1.25rem;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius);
}

.project-card h3 {
    margin: 0 0 0.5rem !important;
    font-size: 1rem !important;
}

.project-card p {
    font-size: 0.875rem;
    margin: 0 !important;
}

.project-steps {
    counter-reset: step;
    list-style: none !important;
    padding: 0 !important;
}

.project-steps li {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    border-bottom: 1px solid var(--ypf-border);
    margin: 0 !important;
}

.project-steps li:last-child { border-bottom: none; }

.project-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--ypf-teal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-grid-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem 1rem;
    list-style: disc;
}

@media (min-width: 640px) {
    .project-grid-list { grid-template-columns: repeat(3, 1fr); }
}

.project-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125rem !important;
    background: var(--ypf-ivory-dark);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    color: var(--ypf-teal) !important;
}

.project-governance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 1.5rem 0;
    text-align: center;
}

.project-governance div {
    padding: 0.75rem 1.5rem;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--ypf-teal);
    min-width: min(100%, 20rem);
}

.project-governance span {
    color: var(--ypf-text-light);
    font-size: 1.25rem;
}

.project-prepared {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--ypf-ivory-dark);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--ypf-text-muted);
    line-height: 1.7;
}

.project-prepared .ypf-btn {
    margin: 0.25rem;
}

/* Team / Founder photos */
.ypf-founder-photo {
    position: relative;
}

.ypf-founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ypf-founder-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(28,36,34,0.75));
    color: #fff;
}

.ypf-founder-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
}

.ypf-founder-caption span {
    font-size: 0.8125rem;
    opacity: 0.9;
}

.ypf-team-featured {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: var(--ypf-white);
    border: 1px solid var(--ypf-border);
    border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .ypf-team-featured {
        grid-template-columns: 16rem 1fr;
        align-items: center;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.ypf-team-featured__photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ypf-ivory-dark);
}

.ypf-team-featured__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ypf-team-featured__info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0.35rem 0 0.5rem;
    color: var(--ypf-text);
}

.ypf-team-featured__info > p {
    margin: 0;
    color: var(--ypf-text-muted);
}

.ypf-team-featured__bio {
    margin: 1rem 0 1.25rem !important;
    line-height: 1.65;
}

.ypf-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ypf-team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.ypf-team-card {
    text-align: center;
}

.ypf-team-card__photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ypf-ivory-dark);
    margin-bottom: 0.875rem;
    border: 1px solid var(--ypf-border);
}

.ypf-team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ypf-team-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    margin: 0 0 0.25rem;
    color: var(--ypf-text);
}

.ypf-team-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ypf-text-muted);
}

/* ===== Plantation page — clean minimal ===== */
.plant-hero {
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(26, 77, 71, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(196, 122, 26, 0.08), transparent 50%),
        var(--ypf-ivory);
}

.plant-hero__inner {
    max-width: 42rem;
}

.plant-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ypf-teal);
    margin: 0.75rem 0 1.25rem;
}

.plant-hero__lead {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--ypf-text-muted);
    margin: 0 0 1.75rem;
    max-width: 36rem;
}

.plant-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.plant-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.plant-section--tight {
    padding-top: 1rem;
}

.plant-section--alt {
    background: var(--ypf-white);
    border-top: 1px solid var(--ypf-border);
    border-bottom: 1px solid var(--ypf-border);
}

.plant-narrow {
    max-width: 36rem;
}

.ypf-heading-md {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ypf-text);
    margin: 0.5rem 0 1rem;
}

.plant-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.plant-facts__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    color: var(--ypf-teal);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.plant-facts__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--ypf-text-muted);
}

.plant-areas {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.25rem;
}

@media (min-width: 640px) {
    .plant-areas { grid-template-columns: repeat(3, 1fr); }
}

.plant-areas li {
    font-size: 1.0625rem;
    color: var(--ypf-text);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ypf-border);
}

.plant-team-lead {
    margin-bottom: 2rem;
}

/* Team: large Shivam + small volunteer cards */
.plant-team-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .plant-team-layout {
        grid-template-columns: 1.15fr 1fr;
        gap: 1.75rem;
        align-items: stretch;
    }
}

.plant-card {
    min-width: 0;
}

.plant-card__photo {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ypf-ivory-dark);
}

.plant-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.plant-card__meta {
    margin-top: 0.75rem;
}

.plant-card__meta .ypf-eyebrow {
    margin-bottom: 0.25rem;
}

.plant-card__meta h3 {
    font-family: var(--font-display);
    margin: 0 0 0.2rem;
    color: var(--ypf-text);
    line-height: 1.2;
}

.plant-card__meta p {
    margin: 0;
    color: var(--ypf-text-muted);
}

/* Large card — Shivam */
.plant-card--large .plant-card__photo {
    aspect-ratio: 3 / 4;
    max-height: 28rem;
}

.plant-card--large .plant-card__meta h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.plant-card--large .plant-card__meta p {
    font-size: 0.9375rem;
}

/* Small cards — volunteers in a row */
.plant-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    align-content: start;
}

@media (max-width: 639px) {
    .plant-card-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plant-card--small .plant-card__photo {
        max-height: 16rem;
        aspect-ratio: 16 / 10;
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    .plant-card-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .plant-card--small .plant-card__photo {
        max-height: 11rem;
        aspect-ratio: 3 / 4;
    }
}

.plant-card--small .plant-card__photo {
    aspect-ratio: 3 / 4;
    max-height: 11rem;
}

@media (min-width: 900px) {
    .plant-card--small .plant-card__photo {
        max-height: 14rem;
    }
}

.plant-card--small .plant-card__meta {
    margin-top: 0.5rem;
    text-align: center;
}

.plant-card--small .plant-card__meta h3 {
    font-size: clamp(0.75rem, 1.6vw, 0.9375rem);
}

.plant-card--small .plant-card__meta p {
    font-size: 0.6875rem;
}

.plant-steps {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: plant-step;
}

.plant-steps li {
    counter-increment: plant-step;
    position: relative;
    padding: 1rem 0 1rem 2.75rem;
    border-bottom: 1px solid var(--ypf-border);
    color: var(--ypf-text-muted);
    line-height: 1.55;
}

.plant-steps li:last-child { border-bottom: none; }

.plant-steps li::before {
    content: counter(plant-step);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--ypf-teal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-steps strong {
    color: var(--ypf-text);
}

.plant-cta {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(26, 77, 71, 0.04), transparent 60%),
        var(--ypf-ivory);
}

.plant-cta .plant-narrow { margin-inline: auto; }

.plant-cta p {
    color: var(--ypf-text-muted);
    margin: 0 0 1.5rem;
}

.plant-cta .plant-hero__cta {
    justify-content: center;
}

/* ─── Motion: scroll reveal + text animation ─── */
.ypf-reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    filter: blur(4px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.ypf-reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

.ypf-reveal--left {
    transform: translateX(-1.5rem);
}

.ypf-reveal--right {
    transform: translateX(1.5rem);
}

.ypf-reveal--scale {
    transform: scale(0.96);
}

.ypf-reveal-stagger .ypf-reveal-child {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
}

.ypf-reveal-stagger.is-in .ypf-reveal-child {
    opacity: 1;
    transform: none;
}

/* Hero entrance */
.ypf-hero-anim {
    opacity: 0;
    transform: translateY(1.15rem);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--hero-delay, 0ms);
}

.ypf-hero.is-ready .ypf-hero-anim {
    opacity: 1;
    transform: none;
}

.ypf-hero__media.ypf-hero-anim {
    transform: translateY(1rem) scale(0.985);
}

.ypf-hero.is-ready .ypf-hero__media.ypf-hero-anim {
    transform: none;
}

/* Word-by-word text animation */
[data-text-animate] .ypf-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--hero-delay, 180ms) + var(--i, 0) * 55ms);
}

.ypf-hero.is-ready [data-text-animate] .ypf-word,
.ypf-reveal.is-in [data-text-animate] .ypf-word {
    opacity: 1;
    transform: none;
}

/* Stat count pulse when revealed */
.ypf-stat.is-in .ypf-stat__number,
.ypf-impact-stat-large.is-in {
    animation: ypfStatPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ypfStatPop {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ypf-focus-item,
.ypf-timeline-item,
.plant-card,
.ypf-news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ypf-focus-item:hover,
.plant-card:hover {
    transform: translateY(-3px);
}

.ypf-btn {
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ypf-btn:hover {
    transform: translateY(-1px);
}

.ypf-btn:active {
    transform: translateY(0);
}

.ypf-btn--primary:hover {
    box-shadow: 0 8px 20px rgba(196, 122, 26, 0.28);
}

/* Mobile focus grid borders */
@media (max-width: 767px) {
    .ypf-focus-item {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .ypf-impact-strip__grid {
        gap: 1.25rem 1rem;
    }

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

    .ypf-cta-band__actions .ypf-btn {
        width: 100%;
        max-width: 20rem;
    }

    .ypf-timeline {
        margin-left: 0.35rem;
        padding-left: 1.5rem;
    }

    .ypf-timeline-item::before {
        left: calc(-1.5rem - 5px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ypf-focus-item:nth-child(2n) {
        border-right: none;
    }
}

@media (min-width: 1024px) {
    .ypf-focus-item:nth-child(4n) {
        border-right: none;
    }
}

/* Safe area + tiny screens */
@supports (padding: max(0px)) {
    .ypf-header__inner,
    .ypf-container {
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
}

@media (max-width: 379px) {
    .ypf-hero__brand-hi {
        font-size: 1.65rem;
    }

    .ypf-brand__name {
        font-size: 0.8125rem;
    }

    .ypf-btn--lg {
        padding: 0.8rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════
   Responsive polish — hero + all sections
   ═══════════════════════════════════════════ */
html, body {
    max-width: 100%;
}

.ypf-hero__stage,
.ypf-hero__copy,
.ypf-hero__media,
.ypf-hero__title-wrap,
.ypf-about,
.ypf-about__copy,
.ypf-founder,
.ypf-team-grid,
.ypf-team-card,
.ypf-impact-layout,
.ypf-contact-grid,
.ypf-footer__grid,
.ypf-container,
#blogGrid {
    min-width: 0;
}

.ypf-hero__support,
.ypf-lead,
.ypf-about__lead,
.ypf-about__body,
.ypf-founder__bio,
.ypf-team-card__desc,
.ypf-stat__label,
.ypf-focus-item p,
.ypf-timeline-item p,
.ypf-news-card p,
.ypf-hero__stat span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

#photoStoryFeaturedWrap {
    isolation: isolate;
}

#photoStoryFeatured {
    z-index: 0;
    opacity: 1;
}

.ypf-hero__vignette { z-index: 1; }

.ypf-hero__handwrite--photo,
.ypf-hero__quote-card,
.ypf-hero__photo-foot,
.ypf-hero__media-bar {
    z-index: 2;
}

.ypf-impact-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ypf-stat {
    min-width: 0;
}

.ypf-stat__label {
    line-height: 1.3;
    max-width: 100%;
}

/* —— Mobile (≤639px) —— */
@media (max-width: 639px) {
    .ypf-section {
        padding: clamp(2.5rem, 8vw, 3.5rem) 0;
    }

    .ypf-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ypf-header__inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        gap: 0.5rem;
    }

    .ypf-brand__sub {
        display: none !important;
    }

    .ypf-brand__name {
        max-width: 8.5rem;
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: normal;
    }

    .ypf-hero {
        padding-bottom: 1.5rem;
    }

    .ypf-hero__stage {
        padding: 0.5rem 1rem 1rem;
        gap: 1.25rem;
    }

    .ypf-hero__frame,
    #photoStoryFeaturedWrap {
        height: 230px;
        min-height: 210px;
        border-radius: 1rem 1rem 2rem 1rem;
    }

    .ypf-hero__handwrite--photo {
        display: none;
    }

    .ypf-hero__quote-card {
        left: 0.65rem;
        bottom: 2.5rem;
        max-width: min(90%, 12.5rem);
        padding: 0.7rem 0.8rem;
    }

    .ypf-hero__quote-card p {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .ypf-hero__photo-foot {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.65rem;
        font-size: 0.68rem;
    }

    .ypf-hero__copy {
        gap: 0.9rem;
    }

    .ypf-hero__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .ypf-hero__title-line,
    .ypf-hero__title-accent {
        font-size: clamp(2rem, 9.5vw, 2.6rem);
    }

    .ypf-hero__support {
        font-size: 1rem;
        line-height: 1.55;
        max-width: none;
    }

    .ypf-hero__pillars {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem 0.75rem;
    }

    .ypf-hero__pillars li {
        font-size: 0.72rem;
        gap: 0.35rem;
    }

    .ypf-hero__pillar-icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.85rem;
    }

    .ypf-hero__ctas {
        flex-direction: column;
    }

    .ypf-hero__ctas .ypf-btn {
        width: 100%;
        min-height: 48px;
    }

    .ypf-hero__stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.85rem 1rem;
        border-radius: 0.9rem;
    }

    .ypf-hero__stat {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 0.65rem;
        padding: 0.35rem 0;
    }

    .ypf-hero__stat + .ypf-hero__stat {
        border-left: none;
        border-top: 1px solid rgba(6, 78, 59, 0.12);
        padding-top: 0.65rem;
    }

    .ypf-hero__stat > i {
        display: inline-block;
        width: 1.1rem;
        text-align: center;
    }

    .ypf-hero__stat strong {
        font-size: 1.25rem;
    }

    .ypf-hero__stat span {
        font-size: 0.78rem;
    }

    .ypf-hero__carousel {
        gap: 0.35rem;
    }

    .ypf-hero__nav button,
    .photo-story-nav button {
        width: 2.1rem;
        height: 2.1rem;
    }

    .photo-story-thumb {
        width: 3.5rem;
        height: 2.5rem;
    }

    .ypf-hero__handwrite--carousel {
        display: none !important;
    }

    .ypf-impact-strip {
        padding: 1.5rem 0;
    }

    .ypf-impact-strip__grid {
        gap: 1rem 0.75rem;
    }

    .ypf-stat__number {
        font-size: 1.5rem;
    }

    .ypf-stat__label {
        font-size: 0.7rem;
    }

    .ypf-founder {
        max-width: none;
        margin-inline: 0;
    }

    .ypf-founder__photo {
        aspect-ratio: 4 / 5;
        max-height: 22rem;
    }

    .ypf-team-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .ypf-team-card {
        display: grid;
        grid-template-columns: 6.75rem 1fr;
    }

    .ypf-team-card__body {
        padding: 0.85rem 0.9rem;
    }

    .ypf-team-card__body h3 {
        font-size: 1rem;
    }

    .ypf-team-card__desc {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ypf-focus-grid {
        grid-template-columns: 1fr;
    }

    .ypf-focus-item {
        border-right: none !important;
        padding: 1.35rem 0;
    }

    .ypf-cta-band {
        padding: 3rem 0;
        text-align: center;
    }

    .ypf-cta-band__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ypf-cta-band__actions .ypf-btn {
        width: 100%;
        max-width: none;
    }

    .ypf-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #blogGrid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .ypf-footer__grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .ypf-timeline {
        margin-left: 0.25rem;
        padding-left: 1.35rem;
    }
}

/* —— Small tablet (640–899px) —— */
@media (min-width: 640px) and (max-width: 899px) {
    .ypf-hero__stage {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem 1.5rem;
    }

    .ypf-hero__frame,
    #photoStoryFeaturedWrap {
        height: 380px;
    }

    .ypf-hero__pillars {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ypf-about {
        grid-template-columns: 1fr;
    }

    .ypf-founder {
        max-width: 22rem;
        margin-inline: auto;
    }

    .ypf-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ypf-team-card {
        display: block;
    }

    .ypf-focus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ypf-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .ypf-footer__grid > :first-child {
        grid-column: 1 / -1;
    }
}

/* —— Large tablet / small laptop (900–1023px) —— */
@media (min-width: 900px) and (max-width: 1023px) {
    .ypf-hero__stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ypf-hero__frame,
    #photoStoryFeaturedWrap {
        height: 440px;
        max-width: 40rem;
        margin-inline: auto;
    }

    .ypf-hero__copy {
        max-width: 42rem;
        margin-inline: auto;
    }

    .ypf-hero__pillars {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* —— Desktop fine-tune —— */
@media (min-width: 1024px) {
    .ypf-hero__stage {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }

    .ypf-hero__frame,
    #photoStoryFeaturedWrap {
        height: clamp(520px, 64vh, 680px);
    }

    .ypf-hero__copy {
        gap: 1.05rem;
    }
}

/* Prevent decorative blobs from causing overflow */
.ypf-hero__decor {
    overflow: hidden;
    max-width: 100%;
}

.ypf-hero__blob {
    max-width: 40vw;
}

@media (max-width: 767px) {
    .ypf-hero__leaf,
    .ypf-hero__blob {
        opacity: 0.45;
    }

    .ypf-hero__leaf--2 {
        display: none;
    }
}
