html { scroll-behavior: smooth; }

:root {
    --au-green:      #2d8a55;
    --au-green-dark: #0f2010;
    --au-green-mid:  #3a7a4a;
    --au-mint:       #a8f0c6;
    --au-cream:      #f8f6f1;
    --au-ink:        #111;
    --au-muted:      #5c6b5e;
    --au-border:     rgba(45,138,85,.14);
    --au-shadow:     rgba(15,32,16,.18);
}

/* ═══════════════════════════════════════════════════════
   HERO — straight-edge, no curve
═══════════════════════════════════════════════════════ */
.au-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--au-green-dark);
}

.au-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: .5;
}

.au-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10,26,12,.92) 0%,
        rgba(10,26,12,.65) 55%,
        rgba(10,26,12,.4) 100%
    );
    z-index: 1;
}

/* Subtle dot grid */
.au-hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(168,240,198,.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.au-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 max(1.5rem, calc((100% - 1200px)/2 + 1.5rem));
    padding-bottom: 3.5rem;
    padding-top: 6rem;
}

.au-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 1.25rem;
    text-decoration: none;
}
.au-breadcrumb a { color: inherit; text-decoration: none; }
.au-breadcrumb a:hover { color: var(--au-mint); }
.au-breadcrumb__sep { color: rgba(255,255,255,.25); }
.au-breadcrumb__current { color: rgba(255,255,255,.85); }

.au-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0 0 1rem;
}
.au-hero__title em {
    font-style: normal;
    color: var(--au-mint);
}

.au-hero__tagline {
    font-size: clamp(.82rem, 1.3vw, 1rem);
    color: rgba(255,255,255,.58);
    line-height: 1.65;
    max-width: 540px;
    margin: 0;
}

/* ── Stat bar at hero bottom ── */
.au-hero__stats {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,.05);
    border-top: 1px solid rgba(168,240,198,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 2.5rem;
    border-radius: 0;
}
.au-hero__stat {
    flex: 1;
    padding: 1.1rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: .85rem;
}
.au-hero__stat:last-child { border-right: none; }
.au-hero__stat-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(168,240,198,.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--au-mint);
}
.au-hero__stat-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.au-hero__stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--au-mint);
    line-height: 1;
    letter-spacing: -.025em;
}
.au-hero__stat-label {
    font-size: .62rem;
    color: rgba(255,255,255,.42);
    line-height: 1.4;
}
.au-hero__stat-label strong {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.82);
    margin-bottom: .05rem;
}

/* ═══════════════════════════════════════════════════════
   WHO WE ARE
═══════════════════════════════════════════════════════ */
.au-about {
    padding: 6rem 0;
    background: #fff;
}

.au-about__img-col { position: relative; }

.au-img-frame {
    border-radius: 4px 20px 4px 20px;
    overflow: hidden;
    box-shadow: 0 24px 72px var(--au-shadow);
    position: relative;
}
.au-img-frame::before {
    content: '';
    position: absolute; top: 18px; left: 18px;
    width: 44px; height: 44px;
    border-top: 3px solid var(--au-mint);
    border-left: 3px solid var(--au-mint);
    z-index: 2; pointer-events: none;
}
.au-img-frame::after {
    content: '';
    position: absolute; bottom: 18px; right: 18px;
    width: 44px; height: 44px;
    border-bottom: 3px solid var(--au-mint);
    border-right: 3px solid var(--au-mint);
    z-index: 2; pointer-events: none;
}
.au-img-frame img {
    width: 100%;
    aspect-ratio: 4/4.2;
    object-fit: cover;
    display: block;
    transition: transform .65s ease;
}
.au-img-frame:hover img { transform: scale(1.03); }

.au-logo-float {
    position: absolute;
    top: 38%; right: -22px;
    width: 66px; height: 66px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 4;
    animation: auFloat 4.5s ease-in-out infinite;
}
.au-logo-float img { width: 42px; height: 42px; object-fit: contain; }
@keyframes auFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.au-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .62rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--au-green);
    margin-bottom: .85rem;
}
/*.au-eyebrow::before {*/
/*    content: '';*/
/*    width: 22px; height: 1.5px;*/
/*    background: var(--au-green);*/
/*    border-radius: 2px; display: block;*/
/*}*/

.au-about__heading {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: var(--au-ink);
    margin-bottom: 1.1rem;
}
.au-about__heading em { font-style: normal; color: var(--au-green); }

.au-divider {
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--au-green), var(--au-mint));
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.au-about__body {
    font-size: .92rem;
    line-height: 1.82;
    color: var(--au-muted);
    margin-bottom: .9rem;
}

/* Stats trio */
.au-stats-trio {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.1rem 1.25rem;
    background: rgba(45,138,85,.05);
    border-left: 3px solid var(--au-green);
    border-radius: 0 8px 8px 0;
}
.au-stat-item {}
.au-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--au-green);
    line-height: 1;
    letter-spacing: -.02em;
}
.au-stat-lbl {
    font-size: .65rem;
    color: var(--au-muted);
    line-height: 1.4;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   PARTNER INSTITUTIONS — Photo grid
═══════════════════════════════════════════════════════ */
.au-partners {
    padding: 6rem 0;
    background: var(--au-cream);
}

.au-section-header {
    margin-bottom: 3rem;
}
.au-section-header .au-eyebrow { margin-bottom: .7rem; }
.au-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: var(--au-ink);
    margin: 0;
}

/* Institution photo card */
.au-inst-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    isolation: isolate;
    height: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transition: box-shadow .35s, transform .35s cubic-bezier(.22,.61,.36,1);
}
.au-inst-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    transform: translateY(-5px);
}

.au-inst-card__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .7s cubic-bezier(.25,.46,.45,.94);
    z-index: 0;
}
.au-inst-card:hover .au-inst-card__photo { transform: scale(1.07); }

/* Gradient overlay */
.au-inst-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5,15,6,.2) 0%,
        rgba(5,15,6,.1) 35%,
        rgba(5,15,6,.85) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: background .35s;
}
.au-inst-card:hover::after {
    background: linear-gradient(
        180deg,
        rgba(5,15,6,.25) 0%,
        rgba(5,15,6,.1) 35%,
        rgba(5,15,6,.92) 100%
    );
}

/* Inset ring on hover */
.au-inst-card__ring {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid rgba(168,240,198,0);
    z-index: 4;
    transition: border-color .3s;
    pointer-events: none;
}
.au-inst-card:hover .au-inst-card__ring { border-color: rgba(168,240,198,.55); }

/* Logo badge top-left */
.au-inst-card__logo {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 3;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.95);
    display: flex; align-items: center; justify-content: center;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    transition: transform .25s;
}
.au-inst-card:hover .au-inst-card__logo { transform: scale(1.08); }
.au-inst-card__logo img {
    width: 34px; height: 34px;
    object-fit: contain;
}

/* Country chip top-right */
.au-inst-card__country {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 3;
    padding: .25rem .65rem;
    border-radius: 50px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}

/* Bottom content */
.au-inst-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 1rem 1.1rem 1.1rem;
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.au-inst-card:hover .au-inst-card__body { transform: translateY(-4px); }

.au-inst-card__shortname {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: .2rem;
    transition: color .2s;
}
.au-inst-card:hover .au-inst-card__shortname { color: var(--au-mint); }

.au-inst-card__fullname {
    font-size: .68rem;
    color: rgba(255,255,255,.6);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .65rem;
}

.au-inst-card__visit {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--au-mint);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s, transform .28s;
}
.au-inst-card:hover .au-inst-card__visit { opacity: 1; transform: translateY(0); }
.au-inst-card__visit svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* EACEA / EU funder row */
.au-funder-row {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1.5px solid var(--au-border);
    border-radius: 12px;
    /*display: flex;*/
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.au-funder-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--au-muted);
    flex-shrink: 0;
}
.au-funder-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.au-funder-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    /*opacity: .7;*/
    transition: opacity .2s;
}
.au-funder-item:hover { opacity: 1; }
.au-funder-item img { height: 80px; width: auto; object-fit: contain; }
.au-funder-item span {
    font-size: .7rem;
    font-weight: 600;
    color: var(--au-ink);
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════
   KEY FEATURES — photo-background cards
═══════════════════════════════════════════════════════ */
.au-features {
    padding: 6rem 0;
    background: var(--au-green-dark);
    position: relative;
    overflow: hidden;
}

/* Ambient radial light */
.au-features::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 50%, rgba(45,138,85,.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 85% 60%, rgba(168,240,198,.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.au-features .container { position: relative; z-index: 1; }

.au-features__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.au-features__header .au-section-title { color: #fff; }
.au-features__header .au-eyebrow { color: var(--au-mint); }
.au-features__header .au-eyebrow::before { background: var(--au-mint); }
.au-features__desc {
    font-size: .88rem;
    color: rgba(255,255,255,.42);
    line-height: 1.7;
    max-width: 300px;
    margin: 0;
}

/* Feature card */
.au-feat-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    height: 420px;
    display: flex;
    flex-direction: column;
    cursor: default;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}
.au-feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.au-feat-card__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .75s cubic-bezier(.25,.46,.45,.94);
    z-index: 0;
}
.au-feat-card:hover .au-feat-card__photo { transform: scale(1.07); }

/* Overlay */
.au-feat-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5,15,6,.28) 0%,
        rgba(5,15,6,.12) 35%,
        rgba(5,15,6,.94) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: background .35s;
}
.au-feat-card:hover::after {
    background: linear-gradient(
        180deg,
        rgba(5,15,6,.32) 0%,
        rgba(5,15,6,.12) 35%,
        rgba(5,15,6,.97) 100%
    );
}

/* Inset ring */
.au-feat-card__ring {
    position: absolute; inset: 0;
    border-radius: 14px;
    border: 2px solid rgba(168,240,198,0);
    z-index: 4;
    transition: border-color .3s;
    pointer-events: none;
}
.au-feat-card:hover .au-feat-card__ring { border-color: rgba(168,240,198,.4); }

/* Number watermark */
.au-feat-card__num {
    position: absolute;
    top: .8rem; right: 1rem;
    z-index: 2;
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.08);
    pointer-events: none;
    user-select: none;
    transition: -webkit-text-stroke-color .3s;
}
.au-feat-card:hover .au-feat-card__num { -webkit-text-stroke-color: rgba(255,255,255,.18); }

/* Icon badge top-left */
.au-feat-card__icon {
    position: absolute;
    top: 1.1rem; left: 1.1rem;
    z-index: 3;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(168,240,198,.14);
    border: 1px solid rgba(168,240,198,.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    transition: background .25s;
}
.au-feat-card:hover .au-feat-card__icon { background: rgba(168,240,198,.24); }
.au-feat-card__icon img {
    width: 24px;
    filter: brightness(0) saturate(100%) invert(86%) sepia(26%) saturate(430%) hue-rotate(93deg) brightness(100%) contrast(90%);
}

/* Content */
.au-feat-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 1.5rem 1.4rem 1.5rem;
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.au-feat-card:hover .au-feat-card__body { transform: translateY(-5px); }

.au-feat-card__line {
    width: 30px; height: 2.5px;
    border-radius: 2px;
    background: var(--au-mint);
    margin-bottom: .8rem;
    transition: width .3s;
}
.au-feat-card:hover .au-feat-card__line { width: 48px; }

.au-feat-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.22;
    letter-spacing: -.015em;
    margin-bottom: .55rem;
    transition: color .2s;
}
.au-feat-card:hover .au-feat-card__title { color: var(--au-mint); }

.au-feat-card__desc {
    font-size: .78rem;
    color: rgba(255,255,255,.58);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════ */
.au-cta {
    padding: 6rem 0;
    background: #fff;
}

.au-cta__box {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--au-green-dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
}
@media (max-width: 767px) {
    .au-cta__box { grid-template-columns: 1fr; }
    .au-cta__image-col { display: none; }
}

/* Left text */
.au-cta__content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dot grid texture */
.au-cta__content::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(168,240,198,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.au-cta__eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .6rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--au-mint);
    margin-bottom: .85rem;
    position: relative; z-index: 1;
}
.au-cta__eyebrow::before {
    content: '';
    width: 20px; height: 1.5px;
    background: var(--au-mint); border-radius: 2px; display: block;
}

.au-cta__heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: #fff;
    margin-bottom: .85rem;
    position: relative; z-index: 1;
}
.au-cta__heading em { font-style: normal; color: var(--au-mint); }

.au-cta__text {
    font-size: .88rem;
    color: rgba(255,255,255,.52);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative; z-index: 1;
    max-width: 420px;
}

.au-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--au-mint);
    color: #0a1f0b;
    font-size: .82rem;
    font-weight: 700;
    padding: .9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: .015em;
    align-self: flex-start;
    position: relative; z-index: 1;
    transition: background .2s, transform .18s, box-shadow .2s;
}
.au-cta__btn:hover {
    background: #fff;
    color: #0a1f0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.au-cta__btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .2s; }
.au-cta__btn:hover svg { transform: translateX(3px); }

/* Right image */
.au-cta__image-col {
    position: relative;
    overflow: hidden;
}
.au-cta__image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: .55;
}
.au-cta__image-col::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, var(--au-green-dark) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════ */
.au-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.au-reveal.in { opacity: 1; transform: translateY(0); }
.au-reveal-d1 { transition-delay: .12s; }
.au-reveal-d2 { transition-delay: .24s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .au-hero { min-height: 400px; }
    .au-hero__stats { flex-wrap: wrap; }
    .au-hero__stat { flex: 1 1 50%; }
    .au-hero__stat:nth-child(2) { border-right: none; }
    .au-hero__stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,.07); }
    .au-hero__stat:last-child { border-top: 1px solid rgba(255,255,255,.07); }
    .au-about__img-col { max-width: 440px; margin: 0 auto; }
    .au-stats-trio { gap: 1rem; }
    .au-features__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .au-features__desc { max-width: 100%; }
    .au-feat-card { height: 360px; }
}
@media (max-width: 767px) {
    .au-hero { min-height: 340px; }
    .au-hero__inner { padding-bottom: 2.5rem; padding-top: 5rem; }
    .au-hero__title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    .au-hero__stats { display: none; }
    .au-about { padding: 4rem 0; }
    .au-partners { padding: 4rem 0; }
    .au-features { padding: 4rem 0; }
    .au-cta { padding: 4rem 0; }
    .au-cta__content { padding: 2rem 1.75rem; }
    .au-inst-card { height: 240px; }
    .au-feat-card { height: 320px; }
    .au-funder-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 575px) {
    .au-stats-trio { flex-wrap: wrap; gap: .75rem 1.25rem; }
}
