/* =====================================================================
   ArtInspire - public website
   Standalone stylesheet, no framework. Classes are prefixed "ai-".
   Look: Matisse-like paper cut-outs (leaves, seaweed, dots) in the navy
   and sun yellow of the logo, and the bevelled picture frame from the
   middle of the logo around photographs. Project cards carry a museum
   wall label; open calls look like the Instagram posters.
   ===================================================================== */

:root {
    --ai-navy: #0b2550;
    --ai-navy-2: #143a75;
    --ai-deep: #061937;
    --ai-cobalt: #1d4ba8;
    --ai-sun: #fdbe0a;
    --ai-sun-2: #f0ae00;
    --ai-sun-soft: #fff1c2;
    /* White pages; a very light cool grey (no warm cream) only for soft surfaces: placeholders, hover, panels */
    --ai-paper: #ffffff;
    --ai-paper-2: #f3f5f9;
    --ai-white: #ffffff;
    --ai-text: #27314b;
    --ai-muted: #5d6781;
    --ai-faint: #949bb0;
    --ai-line: #e4e8ef;
    --ai-red: #c43d27;
    --ai-green: #1d7a4c;

    --ai-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ai-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* Facts and dates: League Spartan, like the ArtInspire name and the Instagram posts */
    --ai-info: 'League Spartan', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ai-radius: 22px;
    --ai-radius-sm: 14px;
    /* No outlines in the design: surfaces are separated by tints and soft shadows */
    --ai-tint: rgba(11, 37, 80, .06);
    --ai-shadow: 0 1px 2px rgba(11, 37, 80, .04), 0 14px 36px -12px rgba(11, 37, 80, .16);
    --ai-shadow-hover: 0 2px 4px rgba(11, 37, 80, .04), 0 26px 50px -18px rgba(11, 37, 80, .3);
    --ai-shadow-lg: 0 30px 70px rgba(11, 37, 80, .18);
    --ai-container: 1200px;
    --ai-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ai-body {
    margin: 0;
    background: var(--ai-paper);
    color: var(--ai-text);
    font-family: var(--ai-sans);
    font-size: 17.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base rules have zero specificity (:where) so every component class can override them */
:where(.ai-body) img { max-width: 100%; height: auto; display: block; }
:where(.ai-body) a { color: var(--ai-cobalt); text-decoration: none; }
:where(.ai-body) a:hover { color: var(--ai-navy); }
:where(.ai-body) :is(h1, h2, h3, h4) { margin: 0; color: var(--ai-navy); font-family: var(--ai-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
:where(.ai-body) p { margin: 0; }
:where(.ai-body) button { font-family: inherit; }
.ai-body :focus-visible { outline: 3px solid var(--ai-cobalt); outline-offset: 3px; border-radius: 6px; }
.ai-body [id] { scroll-margin-top: 110px; }
.ai-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ai-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ai-skip { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 18px; border-radius: 999px; background: var(--ai-navy); color: #fff; font-weight: 700; font-size: 15px; transform: translateY(-160%); transition: transform .2s ease; }
.ai-skip:focus { transform: none; color: #fff; }
#content:focus { outline: none; }

.ai-container { width: 100%; max-width: var(--ai-container); margin: 0 auto; padding: 0 24px; }
.ai-section { position: relative; padding: 104px 0; }
.ai-section--tight { padding: 64px 0; }
.ai-section--white { background: var(--ai-white); }
.ai-section--sand { background: var(--ai-paper-2); }
.ai-section--navy { background: var(--ai-navy); color: rgba(255, 255, 255, .8); overflow: hidden; }
.ai-section--navy :is(h2, h3) { color: #fff; }
.ai-section--navy a:not(.ai-btn) { color: var(--ai-sun); }
@media (max-width: 767px) {
    .ai-section { padding: 72px 0; }
    .ai-section--tight { padding: 48px 0; }
    .ai-container { padding: 0 16px; }
}

/* ---------- Cut-out shapes (inline SVG symbols, see fixed/public/cutouts) ---------- */
.ai-cut { position: absolute; display: block; pointer-events: none; fill: currentColor; }
.ai-cut--navy { color: var(--ai-navy); }
.ai-cut--sun { color: var(--ai-sun); }
.ai-cut--white { color: #fff; }
.ai-cut--cobalt { color: var(--ai-cobalt); }
.ai-cut--soft { color: rgba(255, 255, 255, .09); }
@keyframes ai-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 4deg)); } }
.ai-float { animation: ai-float 7s ease-in-out infinite; transform: rotate(var(--r, 0deg)); }
.ai-float--2 { animation-duration: 9s; animation-delay: -3s; }
.ai-float--3 { animation-duration: 11s; animation-delay: -6s; }
@media (prefers-reduced-motion: reduce) { .ai-float { animation: none; } }

/* ---------- Type ---------- */
.ai-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 14px;
    color: var(--ai-cobalt);
    font-family: var(--ai-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.3;
}
/* A small yellow cut-out blob before every eyebrow */
.ai-eyebrow::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: none;
    background: var(--ai-sun);
    border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%;
    transform: rotate(-12deg);
}
.ai-section--navy .ai-eyebrow, .ai-eyebrow--light { color: var(--ai-sun); }
.ai-h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.05; }
.ai-h2 { font-size: clamp(30px, 3.6vw, 46px); }
.ai-h3 { font-size: clamp(22px, 2vw, 26px); }
.ai-h1 em, .ai-h2 em { font-style: italic; font-weight: 600; }
.ai-lead { font-size: clamp(18px, 1.55vw, 20.5px); line-height: 1.6; color: var(--ai-text); }
.ai-section--navy .ai-lead { color: rgba(255, 255, 255, .82); }
.ai-muted { color: var(--ai-muted); }
/* Word on a torn piece of yellow paper */
.ai-mark { position: relative; z-index: 0; white-space: nowrap; padding: 0 .12em; }
.ai-mark::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: .12em -.04em .02em;
    background: var(--ai-sun);
    border-radius: 46% 54% 40% 60% / 60% 40% 62% 38%;
    transform: rotate(-2deg);
}
.ai-section--navy .ai-mark { color: var(--ai-navy); }
.ai-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 48px; }
.ai-section-head > div { max-width: 700px; }
.ai-section-head .ai-lead { margin-top: 14px; }

/* ---------- Buttons ---------- */
.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 52px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    font-family: var(--ai-sans);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.ai-btn:hover { transform: translateY(-2px); }
.ai-btn .uil { font-size: 1.2em; }
/* No outlines: filled or tinted buttons with soft shadows */
.ai-btn--primary { background: var(--ai-navy); color: #fff !important; box-shadow: 0 10px 24px -8px rgba(11, 37, 80, .55); }
.ai-btn--primary:hover { background: var(--ai-navy-2); box-shadow: 0 14px 30px -8px rgba(11, 37, 80, .6); }
.ai-btn--sun { background: var(--ai-sun); color: var(--ai-navy) !important; box-shadow: 0 10px 24px -10px rgba(240, 174, 0, .8); }
.ai-btn--sun:hover { background: #ffd23f; }
.ai-btn--outline { background: var(--ai-tint); color: var(--ai-navy) !important; }
.ai-btn--outline:hover { background: var(--ai-navy); color: #fff !important; }
.ai-btn--ghost-light { background: rgba(255, 255, 255, .12); color: #fff !important; }
.ai-btn--ghost-light:hover { background: rgba(255, 255, 255, .22); }
.ai-btn--subtle { min-height: auto; padding: 0; color: var(--ai-cobalt) !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ai-btn--subtle:hover { transform: none; color: var(--ai-navy) !important; }
.ai-btn--sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.ai-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
/* Long labels (Estonian words are long) wrap instead of running off a phone screen */
@media (max-width: 520px) { .ai-btn { white-space: normal; text-align: center; max-width: 100%; } }

.ai-link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ai-navy); }
.ai-link-arrow::after { content: '\2192'; transition: transform .2s; }
.ai-link-arrow:hover::after { transform: translateX(4px); }
.ai-section--navy .ai-link-arrow { color: var(--ai-sun); }

/* ---------- Header ---------- */
.ai-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    transition: box-shadow .25s;
}
.ai-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 37, 80, .35); }
.ai-header__bar { display: flex; align-items: center; gap: 20px; height: 84px; }
.ai-logo { display: inline-flex; align-items: center; gap: 13px; color: var(--ai-navy) !important; }
.ai-logo img { height: 58px; width: auto; }
/* "ArtInspire" in Syne ExtraBold, as an SVG path (fixed/public/wordmark.blade.php) */
.ai-wordmark { display: block; flex: none; width: auto; overflow: visible; }
.ai-logo__name { height: 27px; transition: color .2s; }
.ai-logo:hover .ai-logo__name { color: var(--ai-cobalt); }
.ai-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ai-nav__item { position: relative; }
.ai-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ai-navy) !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
}
.ai-nav__link { white-space: nowrap; }
.ai-nav__link:hover, .ai-nav__item:focus-within > .ai-nav__link { background: var(--ai-paper-2); }
@media (min-width: 992px) and (max-width: 1199px) {
    .ai-header__bar { gap: 12px; }
    .ai-nav__link { padding: 10px 10px; font-size: 15.5px; }
    .ai-logo__name { height: 24px; }
    /* Room for the language switch: "Open calls" in the menu does the same job */
    .ai-header__cta { display: none !important; }
}
.ai-nav__link.is-active { background: var(--ai-sun-soft); }
.ai-nav__link .uil { font-size: 18px; line-height: 1; transition: transform .2s; }

.ai-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 280px;
    padding: 8px;
    border-radius: 18px;
    /* frosted glass */
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 24px 60px -20px rgba(11, 37, 80, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.ai-dropdown a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; color: var(--ai-navy); font-weight: 600; font-size: 15.5px; }
.ai-dropdown a .uil { color: var(--ai-sun-2); font-size: 17px; }
.ai-dropdown a:hover, .ai-dropdown a.is-active { background: rgba(253, 190, 10, .18); color: var(--ai-navy); }
/* a little space instead of a dividing line */
.ai-dropdown hr { height: 6px; margin: 0; border: 0; }
@media (min-width: 992px) {
    .ai-nav__item:hover > .ai-dropdown, .ai-nav__item.is-open > .ai-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .ai-nav__item:hover > .ai-nav__link .uil, .ai-nav__item.is-open > .ai-nav__link .uil { transform: rotate(180deg); }
    /* The gap between the button and the menu must not close it */
    .ai-nav__item:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.ai-header__cta { margin-left: 8px; }
.ai-header__cta + .ai-lang { margin-left: -6px; }

/* ---------- Language switch: a frosted-glass pill, a white "glass drop" slides to the active language ---------- */
.ai-lang {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    flex: none;
    padding: 4px;
    border-radius: 999px;
    background: rgba(11, 37, 80, .06);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: inset 0 1px 2px rgba(11, 37, 80, .08);
}
.ai-lang__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 16px -6px rgba(11, 37, 80, .35), inset 0 1px 0 #fff;
    transition: transform .4s var(--ai-ease);
}
.ai-lang[data-active="en"] .ai-lang__thumb { transform: translateX(100%); }
/* Flags only: the name of the language is for screen readers and the tooltip */
.ai-lang__option {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 7px;
    border-radius: 999px;
}
.ai-flag { display: block; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 1px 3px rgba(11, 37, 80, .3); transition: opacity .25s, filter .25s, transform .25s var(--ai-ease); }
/* the other language: a softer flag that wakes up on hover */
.ai-lang__option:not(.is-active) .ai-flag { opacity: .55; filter: saturate(.6); }
.ai-lang__option:hover .ai-flag { opacity: 1; filter: none; transform: scale(1.08); }
.ai-lang--mobile { display: none; }
/* On the dark footer: lighter glass */
.ai-lang--footer { margin-top: 22px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.ai-lang--footer .ai-lang__thumb { background: rgba(255, 255, 255, .95); }
@media (max-width: 991px) {
    .ai-lang--desktop { display: none; }
    .ai-lang--mobile { display: inline-grid; align-self: flex-start; margin-bottom: 10px; }
    .ai-lang--mobile .ai-lang__option { padding: 9px; }
    .ai-lang--mobile .ai-flag { width: 26px; height: 26px; }
}
.ai-nav__mobile-cta { display: none !important; }
.ai-burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(11, 37, 80, .06); color: var(--ai-navy); font-size: 24px; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 991px) {
    .ai-header__bar { height: 72px; }
    .ai-logo img { height: 48px; }
    .ai-logo__name { height: 24px; }
    .ai-burger { display: inline-flex; }
    .ai-header__cta { display: none !important; }
    .ai-nav {
        position: fixed;
        inset: var(--ai-nav-top, 72px) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 20px 16px 32px;
        background: var(--ai-paper);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .ai-nav-open .ai-nav { opacity: 1; visibility: visible; transform: none; }
    /* backdrop-filter would make the header the box of the fixed menu panel */
    .ai-nav-open .ai-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ai-paper); }
    .ai-nav-open { overflow: hidden; }
    .ai-nav__link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 19px; border-radius: 12px; }
    .ai-dropdown { position: static; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; display: none; }
    .ai-nav__item.is-open > .ai-dropdown { display: block; }
    .ai-nav__item.is-open > .ai-nav__link .uil { transform: rotate(180deg); }
    .ai-nav__mobile-cta { display: inline-flex !important; margin-top: 16px; }
}
@media (max-width: 380px) { .ai-logo__name { height: 21px; } }

/* ---------- Moving words (from the Instagram bio): a small, quiet strip that never stops ---------- */
.ai-words {
    overflow: hidden;
    padding: 14px 0;
    /* soft fade at both ends */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ai-words__track { display: flex; width: max-content; animation: ai-words 45s linear infinite; }
.ai-words__word {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding-right: 22px;
    color: var(--ai-navy);
    font-family: var(--ai-sans);
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}
/* every other word lighter, for rhythm without outlines */
.ai-words__word:nth-child(even) { color: rgba(11, 37, 80, .38); }
/* a small yellow cut-out between the words */
.ai-words__word::after { content: ''; flex: none; width: 9px; height: 9px; background: var(--ai-sun); border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%; transform: rotate(-12deg); }
@keyframes ai-words { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ai-words__track { animation: none; } }

/* ---------- Hero ---------- */
.ai-hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.ai-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ai-hero__title { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; margin-bottom: 26px; }
.ai-hero__title em { color: var(--ai-cobalt); }
.ai-hero .ai-lead { max-width: 560px; margin-bottom: 34px; }
.ai-hero__themes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* On phones the theme chips become one quiet line of words with small icons, under the buttons */
@media (max-width: 600px) {
    .ai-hero__themes { gap: 4px 16px; margin-top: 20px; }
    .ai-hero__themes .ai-chip { padding: 0; background: none; box-shadow: none; color: var(--ai-muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
    .ai-hero__themes .ai-chip i { color: var(--ai-sun-2); font-size: 1.1em; }
}
.ai-hero__art { position: relative; aspect-ratio: 520 / 560; max-width: 540px; width: 100%; justify-self: end; }
.ai-hero__art svg { width: 100%; height: 100%; overflow: visible; }
.ai-hero__art .ai-float { transform-box: fill-box; transform-origin: center; }
.ai-hero__sticker {
    position: absolute;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    padding: 14px;
    border-radius: 50%;
    background: var(--ai-sun);
    color: var(--ai-navy) !important;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: var(--ai-shadow);
    transform: rotate(-10deg);
    transition: transform .25s var(--ai-ease);
}
.ai-hero__sticker strong { display: block; font-family: var(--ai-serif); font-size: 38px; line-height: 1; letter-spacing: 0; text-transform: none; }
.ai-hero__sticker:hover { transform: rotate(0) scale(1.05); }
@media (max-width: 991px) {
    .ai-hero { padding: 32px 0 64px; }
    .ai-hero__grid { grid-template-columns: 1fr; gap: 24px; }
    .ai-hero__art { justify-self: center; max-width: 420px; }
}

/* Theme chips (also used as filters) */
.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--ai-tint);
    color: var(--ai-navy) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.ai-chip:hover { transform: translateY(-1px); background: rgba(253, 190, 10, .3); }
.ai-chip.is-active { background: var(--ai-navy); color: #fff !important; }
.ai-chip--static { cursor: default; background: #fff; box-shadow: var(--ai-shadow); }
.ai-chip--static:hover { transform: none; background: #fff; }
.ai-chip i { font-size: 1.15em; }

/* ---------- Wall labels: numbers and facts on small museum labels ---------- */
.ai-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-label {
    position: relative;
    padding: 26px 26px 24px;
    background: #fff;
    border-radius: var(--ai-radius-sm);
    box-shadow: var(--ai-shadow);
}
.ai-label::before { content: ''; position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--ai-sun); }
.ai-label strong { display: block; color: var(--ai-navy); font-family: var(--ai-serif); font-size: clamp(38px, 4vw, 52px); font-weight: 700; line-height: 1; }
.ai-label span { display: block; margin-top: 10px; color: var(--ai-muted); font-size: 15.5px; line-height: 1.45; }
.ai-label em { display: block; margin-top: 4px; color: var(--ai-navy); font-family: var(--ai-serif); font-size: 17px; }
@media (max-width: 767px) { .ai-labels { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Focus areas ---------- */
.ai-grid { display: grid; gap: 28px; }
.ai-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ai-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ai-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) { .ai-grid--4 { grid-template-columns: repeat(2, 1fr); } .ai-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .ai-grid--4, .ai-grid--3, .ai-grid--2 { grid-template-columns: 1fr; } }

.ai-area {
    position: relative;
    padding: 30px 28px 32px;
    border-radius: var(--ai-radius);
    background: #fff;
    box-shadow: var(--ai-shadow);
    overflow: hidden;
    transition: transform .3s var(--ai-ease), box-shadow .3s var(--ai-ease);
}
.ai-area:hover { transform: translateY(-4px); box-shadow: var(--ai-shadow-hover); }
.ai-area__shape { width: 64px; height: 64px; margin-bottom: 22px; }
.ai-area__shape svg { width: 100%; height: 100%; fill: var(--ai-navy); }
.ai-area__shape svg .is-sun { fill: var(--ai-sun); }
.ai-area h3 { font-size: 23px; margin-bottom: 10px; }
.ai-area p { color: var(--ai-muted); font-size: 16px; line-height: 1.6; }
.ai-area--sun { background: var(--ai-sun); }
.ai-area--sun p { color: var(--ai-navy); }
.ai-area--navy { background: var(--ai-navy); }
.ai-area--navy h3 { color: #fff; }
.ai-area--navy p { color: rgba(255, 255, 255, .78); }
.ai-area--navy .ai-area__shape svg { fill: #fff; }
.ai-area--navy, .ai-area--sun { box-shadow: none; }
.ai-area--navy:hover { box-shadow: 0 26px 50px -18px rgba(11, 37, 80, .55); }
.ai-area--sun:hover { box-shadow: 0 26px 50px -18px rgba(240, 174, 0, .7); }
.ai-area--link { display: flex; flex-direction: column; color: inherit !important; }
.ai-area--link .ai-link-arrow { margin-top: auto; padding-top: 16px; }
.ai-area--navy .ai-link-arrow { color: var(--ai-sun); }

/* ---------- Instagram ---------- */
.ai-insta__handle { color: var(--ai-cobalt) !important; font-style: italic; white-space: nowrap; }
.ai-insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ai-insta__post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--ai-paper-2); }
.ai-insta__post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ai-ease); }
.ai-insta__post:hover img, .ai-insta__post:focus-visible img { transform: scale(1.06); }
.ai-insta__type { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(6, 25, 55, .55); color: #fff; font-size: 16px; }
.ai-insta__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(transparent 30%, rgba(6, 25, 55, .88));
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transition: opacity .3s;
}
.ai-insta__overlay i { color: var(--ai-sun); font-size: 22px; }
.ai-insta__overlay span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ai-insta__post:hover .ai-insta__overlay, .ai-insta__post:focus-visible .ai-insta__overlay { opacity: 1; }
@media (max-width: 899px) { .ai-insta { grid-template-columns: repeat(2, 1fr); } .ai-insta__post:nth-child(n+7) { display: none; } }
@media (hover: none) { .ai-insta__overlay { opacity: 1; background: linear-gradient(transparent 62%, rgba(6, 25, 55, .75)); } .ai-insta__overlay span { display: none; } }

/* Before Instagram is connected */
.ai-insta-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 28px;
    background: var(--ai-sun);
    color: var(--ai-navy) !important;
}
.ai-insta-cta > *:not(.ai-cut) { position: relative; z-index: 1; }
.ai-insta-cta__icon { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 26px; background: var(--ai-navy); color: var(--ai-sun); font-size: 44px; transform: rotate(-6deg); transition: transform .3s var(--ai-ease); }
.ai-insta-cta:hover .ai-insta-cta__icon { transform: rotate(0) scale(1.05); }
.ai-insta-cta__text { flex: 1; min-width: 0; }
.ai-insta-cta__text strong { display: block; font-family: var(--ai-serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.ai-insta-cta__text span { display: block; margin-top: 6px; max-width: 560px; font-size: 16.5px; }
@media (max-width: 760px) { .ai-insta-cta { flex-direction: column; align-items: flex-start; } }

/* Note when a text exists only in English */
.ai-note { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 10px 14px; border-radius: 10px; background: var(--ai-sun-soft); color: var(--ai-navy); font-size: 15px; }

/* ---------- Photographs: rounded with a soft shadow, no frame lines
   (the logo's picture frame now lives only in the illustrations: hero and open call posters) ---------- */
.ai-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--ai-radius);
    background: var(--ai-paper-2);
    box-shadow: var(--ai-shadow);
    transition: box-shadow .3s var(--ai-ease);
}
.ai-frame img { width: 100%; height: 100%; object-fit: cover; }
.ai-frame__inner { position: relative; display: block; overflow: hidden; height: 100%; }
.ai-frame--sm { border-radius: 18px; }

/* ---------- Project card: picture on top, then kind · place, title, text and a footer with the dates.
   One white card with a soft shadow; the whole card is a link (the title's ::after covers it) ---------- */
.ai-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow);
    transition: transform .35s var(--ai-ease), box-shadow .35s var(--ai-ease);
}
.ai-card[hidden] { display: none; }
.ai-card:hover, .ai-js .ai-card.ai-reveal.is-visible:hover { transform: translateY(-4px); box-shadow: var(--ai-shadow-hover); }
/* After the scroll reveal, keep the quick hover lift (the reveal rule sets its own slow transition) */
.ai-js .ai-card.ai-reveal.is-visible { transition: opacity .7s var(--ai-ease), transform .35s var(--ai-ease), box-shadow .35s var(--ai-ease); }
.ai-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ai-paper-2); }
.ai-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ai-ease); }
.ai-card:hover .ai-card__media img { transform: scale(1.05); }
.ai-card__badges { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ai-badge.ai-card__role { margin-left: auto; background: rgba(255, 255, 255, .85); }
.ai-badge.ai-card__role--coordinator { background: var(--ai-navy); color: #fff; }
.ai-card__role--coordinator .uil { color: var(--ai-sun); }
.ai-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.ai-card__kicker { display: flex; flex-wrap: wrap; gap: 0 4px; margin-bottom: 8px; color: var(--ai-cobalt); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai-card__title { font-size: 22px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-card__title a { color: var(--ai-navy); }
.ai-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ai-card__title a:focus-visible { outline: none; }
.ai-card:has(.ai-card__title a:focus-visible) { outline: 3px solid var(--ai-sun); outline-offset: 3px; }
.ai-card:hover .ai-card__title a { color: var(--ai-cobalt); }
.ai-card__excerpt { margin-top: 10px; color: var(--ai-muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 18px; }
.ai-card__date { display: inline-flex; align-items: center; gap: 7px; color: var(--ai-navy); font-family: var(--ai-info); font-size: 15.5px; font-weight: 600; }
.ai-card__date .uil { font-style: normal; color: var(--ai-sun-2); }
.ai-card__go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; background: var(--ai-sun-soft); color: var(--ai-navy); font-size: 18px; transition: background .3s, color .3s, transform .3s var(--ai-ease); }
.ai-card:hover .ai-card__go { background: var(--ai-navy); color: var(--ai-sun); transform: translateX(3px); }
.ai-card__actions { position: relative; z-index: 2; margin-top: 16px; gap: 10px; }

/* ---------- Badges ---------- */
.ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ai-navy); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.ai-badge--live { background: var(--ai-navy); color: #fff; }
.ai-badge--live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ai-sun); animation: ai-pulse 1.8s infinite; }
@keyframes ai-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ai-badge--sun { background: var(--ai-sun); color: var(--ai-navy); }
.ai-badge--soft { background: var(--ai-sun-soft); color: var(--ai-navy); }
.ai-badge--outline { background: var(--ai-tint); }
/* Badges on photos: frosted glass */
.ai-card__badges .ai-badge { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 14px -4px rgba(6, 25, 55, .35); }

/* ---------- Open call poster (like the Instagram posts) ---------- */
.ai-posters { display: grid; gap: 28px; }
.ai-posters--compact { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1099px) { .ai-posters--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .ai-posters--compact { grid-template-columns: 1fr; } }

.ai-poster {
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    background: #fff;
    border-radius: var(--ai-radius);
    box-shadow: var(--ai-shadow);
    overflow: hidden;
    transition: transform .3s var(--ai-ease), box-shadow .3s var(--ai-ease);
}
.ai-poster:hover { transform: translateY(-4px); box-shadow: var(--ai-shadow-hover); }
.ai-poster[hidden] { display: none; }
.ai-poster__art { position: relative; background: var(--ai-navy); aspect-ratio: 1; }
.ai-poster__art svg { display: block; width: 100%; height: 100%; }
.ai-poster__main { padding: 26px 28px; min-width: 0; }
.ai-poster__org { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--ai-cobalt); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ai-poster__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; margin-bottom: 18px; }
.ai-poster__title a { color: inherit; }
.ai-poster__fields { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ai-poster__field small { display: block; color: var(--ai-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ai-poster__field strong { color: var(--ai-navy); font-family: var(--ai-info); font-size: 18px; font-weight: 600; }
.ai-poster__more { margin-top: 20px; }
.ai-poster__more summary { display: inline-flex; align-items: center; gap: 8px; color: var(--ai-navy); font-weight: 700; cursor: pointer; list-style: none; }
.ai-poster__more summary::-webkit-details-marker { display: none; }
.ai-poster__more summary::after { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ai-sun); font-size: 16px; line-height: 1; transition: transform .2s; }
.ai-poster__more[open] summary::after { transform: rotate(45deg); }
.ai-poster__more > div { padding-top: 10px; color: var(--ai-muted); font-size: 16px; white-space: pre-line; }
.ai-poster__stub {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 26px 24px;
    background: var(--ai-paper);
}
.ai-poster__count { display: flex; align-items: center; gap: 14px; }
.ai-poster__days {
    display: grid;
    place-items: center;
    flex: none;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--ai-sun);
    color: var(--ai-navy);
    font-family: var(--ai-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-8deg);
}
.ai-poster__days--word { font-size: 17px; }
.ai-poster__count span { color: var(--ai-navy); font-weight: 700; line-height: 1.3; }
.ai-poster__count small { display: block; margin-top: 4px; color: var(--ai-muted); font-weight: 500; font-size: 14px; }
.ai-poster__stub .ai-btns { gap: 10px; }
.ai-poster.is-soon .ai-poster__days { background: var(--ai-red); color: #fff; }
.ai-poster.is-closed { box-shadow: none; background: rgba(255, 255, 255, .6); }
.ai-poster.is-closed .ai-poster__art { filter: grayscale(1); opacity: .75; }
.ai-poster.is-closed .ai-poster__days { background: var(--ai-paper-2); color: var(--ai-muted); }

/* Compact version on the home page: art on top */
.ai-poster--compact { grid-template-columns: 1fr; }
.ai-poster--compact .ai-poster__main { padding: 22px 22px 6px; }
.ai-poster--compact .ai-poster__title { font-size: 22px; margin-bottom: 10px; }
.ai-poster--compact .ai-poster__stub { background: #fff; padding: 12px 22px 22px; }
.ai-poster--compact .ai-poster__days { width: 64px; height: 64px; font-size: 26px; }
.ai-poster--compact .ai-poster__days--word { font-size: 14px; }

@media (max-width: 1099px) {
    .ai-poster:not(.ai-poster--compact) { grid-template-columns: 240px 1fr; }
    .ai-poster:not(.ai-poster--compact) .ai-poster__stub { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 680px) {
    .ai-poster:not(.ai-poster--compact) { grid-template-columns: 1fr; }
    .ai-poster:not(.ai-poster--compact) .ai-poster__art { aspect-ratio: 16 / 10; }
    .ai-poster__main { padding: 22px 20px; }
    .ai-poster__stub { padding: 20px; }
}

/* ---------- Steps ---------- */
.ai-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.ai-step { position: relative; padding: 34px 28px 30px; border-radius: var(--ai-radius); background: rgba(255, 255, 255, .07); }
.ai-step__num { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px; background: var(--ai-sun); color: var(--ai-navy); font-family: var(--ai-serif); font-size: 26px; font-weight: 700; border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%; }
.ai-step:nth-child(2) .ai-step__num { border-radius: 42% 58% 37% 63% / 58% 45% 55% 42%; background: #fff; }
.ai-step:nth-child(3) .ai-step__num { border-radius: 63% 37% 50% 50% / 40% 60% 40% 60%; }
.ai-step h3 { font-size: 24px; margin-bottom: 10px; }
.ai-step p { font-size: 16px; }
.ai-section:not(.ai-section--navy) .ai-step { background: #fff; box-shadow: var(--ai-shadow); }
.ai-section:not(.ai-section--navy) .ai-step:nth-child(2) .ai-step__num { background: var(--ai-navy); color: #fff; }
.ai-section:not(.ai-section--navy) .ai-step p { color: var(--ai-muted); }
@media (max-width: 899px) { .ai-steps { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.ai-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 32px 26px; }
.ai-member { display: block; color: inherit !important; text-align: center; }
.ai-member__photo { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: 16px; }
.ai-member__photo .ai-frame { height: 100%; border-radius: 28px; }
.ai-member:hover .ai-frame { box-shadow: var(--ai-shadow-hover); }
.ai-member h3 { font-size: 22px; }
.ai-member p { margin-top: 4px; color: var(--ai-muted); font-size: 15px; line-height: 1.4; }
/* Photo (or initials) inside a cut-out shape, on the soft square */
.ai-blob { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--ai-paper-2); }
.ai-blob__shape {
    position: relative;
    display: grid;
    place-items: center;
    width: 76%;
    height: 76%;
    overflow: hidden;
    background: var(--ai-navy);
    border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%;
    box-shadow: 0 18px 36px -18px rgba(11, 37, 80, .5);
    /* the shape morphs a little on hover; the photo stays straight */
    transition: border-radius .8s var(--ai-ease), transform .6s var(--ai-ease);
}
.ai-blob--1 .ai-blob__shape { background: var(--ai-sun); border-radius: 42% 58% 37% 63% / 58% 45% 55% 42%; }
.ai-blob--2 .ai-blob__shape { background: var(--ai-cobalt); border-radius: 63% 37% 50% 50% / 40% 60% 40% 60%; }
.ai-blob__shape img { width: 100%; height: 100%; object-fit: cover; }
.ai-blob__initials { color: var(--ai-sun); font-family: var(--ai-serif); font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.ai-blob--1 .ai-blob__initials { color: var(--ai-navy); }
.ai-blob--2 .ai-blob__initials { color: #fff; }
.ai-member:hover .ai-blob__shape { border-radius: 47% 53% 55% 45% / 56% 44% 56% 44%; transform: scale(1.04); }
.ai-person__photo .ai-blob__initials { font-size: clamp(64px, 9vw, 110px); }
.ai-team-group + .ai-team-group { margin-top: 64px; }
.ai-team-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ai-team-group__head h3 { font-size: 28px; }
.ai-team-group__count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--ai-sun); color: var(--ai-navy); font-weight: 800; font-size: 15px; }

/* ---------- FAQ ---------- */
/* each question on its own soft card instead of dividing lines */
.ai-faq details { margin-bottom: 10px; padding: 0 24px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(11, 37, 80, .04); transition: box-shadow .3s; }
.ai-faq details[open] { box-shadow: var(--ai-shadow); }
.ai-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; color: var(--ai-navy); font-family: var(--ai-serif); font-size: 22px; font-weight: 600; cursor: pointer; list-style: none; }
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ai-sun); font-family: var(--ai-sans); font-size: 22px; line-height: 1; transition: transform .3s var(--ai-ease); }
.ai-faq details[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
.ai-faq details > div { padding: 0 0 22px; color: var(--ai-text); }
.ai-faq ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Split layouts ---------- */
.ai-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-split--top { align-items: start; }
.ai-split > * { min-width: 0; }
@media (max-width: 899px) { .ai-split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Call to action and contact ---------- */
.ai-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    border-radius: 28px;
    background: var(--ai-navy);
    color: rgba(255, 255, 255, .82);
}
.ai-cta > *:not(.ai-cut) { position: relative; z-index: 1; }
.ai-cta .ai-h2 { color: #fff; max-width: 720px; }
.ai-cta p { max-width: 620px; margin: 16px 0 30px; font-size: 18px; }
.ai-cta .ai-btns { margin-top: 30px; }
.ai-cta--sun { background: var(--ai-sun); color: var(--ai-navy); }
.ai-cta--sun .ai-h2 { color: var(--ai-navy); }

.ai-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 36px; }
.ai-contact a, .ai-contact div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--ai-radius-sm);
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-weight: 600;
    line-height: 1.35;
    transition: background-color .2s, transform .2s;
}
.ai-contact a:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.ai-contact i { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ai-sun); color: var(--ai-navy); font-size: 22px; }
.ai-contact small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ai-contact span { min-width: 0; overflow-wrap: break-word; }

/* ---------- Inner page header ---------- */
.ai-page-head { position: relative; padding: 48px 0 64px; overflow: hidden; }
.ai-page-head .ai-container { position: relative; z-index: 1; }
.ai-page-head .ai-h1 { max-width: 860px; }
.ai-page-head .ai-lead { max-width: 720px; margin-top: 20px; }
.ai-page-head__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ai-navy); font-family: var(--ai-info); font-size: 17px; font-weight: 600; }
.ai-page-head--navy { background: var(--ai-navy); color: rgba(255, 255, 255, .82); }
.ai-page-head--navy .ai-h1 { color: #fff; }
.ai-page-head--navy .ai-lead { color: rgba(255, 255, 255, .82); }
.ai-page-head--navy .ai-breadcrumb, .ai-page-head--navy .ai-breadcrumb a { color: rgba(255, 255, 255, .7); }
.ai-page-head--navy .ai-breadcrumb a:hover { color: var(--ai-sun); }
.ai-page-head--navy .ai-breadcrumb [aria-current] { color: #fff; }
/* The shapes move behind the text on smaller screens */
@media (max-width: 1199px) { .ai-page-head .ai-cut { opacity: .3; } }
@media (max-width: 767px) { .ai-page-head { padding: 28px 0 44px; } }

.ai-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--ai-muted); font-size: 14.5px; font-weight: 600; }
.ai-breadcrumb a { color: var(--ai-muted); }
.ai-breadcrumb a:hover { color: var(--ai-navy); }
.ai-breadcrumb [aria-current] { color: var(--ai-navy); }

/* What's included (opportunities) */
.ai-included { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ai-included span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: 15px; }
.ai-included i { color: var(--ai-sun); font-size: 18px; }

/* ---------- Filters ---------- */
.ai-filters { display: grid; gap: 14px; margin-bottom: 40px; }
.ai-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-filter-row__label { margin-right: 6px; color: var(--ai-muted); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ai-empty { padding: 48px 32px; border-radius: var(--ai-radius); background: #fff; box-shadow: var(--ai-shadow); color: var(--ai-muted); text-align: center; }
.ai-empty .ai-btns { justify-content: center; margin-top: 22px; }
.ai-load-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Project page: title and key facts in one line, the picture, then two columns:
   text + gallery, and on the side "Project details", the partners and the EU line ---------- */
.ai-proj-head { padding: 30px 0 0; }
.ai-proj-head__kicker { margin: 4px 0 12px; color: var(--ai-cobalt); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ai-proj-head__title { max-width: 920px; margin: 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; overflow-wrap: anywhere; }
.ai-proj-head__title--long { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.12; }
.ai-proj-head__parent { margin: 14px 0 0; color: var(--ai-muted); font-size: 15.5px; }
.ai-proj-head__parent a { font-weight: 700; }
.ai-proj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 22px 0 30px; padding: 0; list-style: none; color: var(--ai-navy); font-family: var(--ai-info); font-size: 17px; font-weight: 600; }
.ai-proj-meta .ai-badge { font-family: var(--ai-sans); }
.ai-proj-meta li { display: inline-flex; align-items: center; gap: 7px; }
.ai-proj-meta li > .uil { color: var(--ai-sun-2); font-size: 1.15em; }
.ai-badge--navy { background: var(--ai-navy); color: #fff; }
.ai-badge--navy .uil { color: var(--ai-sun); }

.ai-proj-cover { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--ai-paper-2); }
.ai-proj-cover a { display: block; }
.ai-proj-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; transition: transform .8s var(--ai-ease); }
.ai-proj-cover a:hover img { transform: scale(1.02); }
.ai-proj-cover__zoom { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ai-navy); font-size: 20px; opacity: 0; transition: opacity .2s; }
.ai-proj-cover a:hover .ai-proj-cover__zoom, .ai-proj-cover a:focus-visible .ai-proj-cover__zoom { opacity: 1; }

.ai-proj-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "main details" "main extra";
    gap: 28px 64px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 96px;
}
.ai-proj-main { grid-area: main; min-width: 0; }
.ai-proj-main > .ai-eyebrow { margin-bottom: 14px; }
/* "Project details" and "Partners": League Spartan, like the facts under them and the ArtInspire name */
.ai-proj-box-title { margin: 0 0 16px; font-family: var(--ai-info); font-size: 21px; font-weight: 600; letter-spacing: 0; }

/* Project details: one calm list on a light panel */
.ai-proj-details { grid-area: details; padding: 26px 26px 24px; border-radius: 22px; background: var(--ai-paper-2); }
.ai-proj-details dl { display: grid; gap: 14px; margin: 0; }
.ai-proj-details dl > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ai-proj-details dt { color: var(--ai-muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai-proj-details dd { margin: 0; color: var(--ai-navy); font-family: var(--ai-info); font-size: 16.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.ai-proj-details dd a { font-weight: 600; }
.ai-proj-details__code dd { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-family: var(--ai-sans); font-size: 14px; }
.ai-proj-details .ai-btns { margin-top: 22px; }
.ai-code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13.5px; font-weight: 600; }

.ai-proj-extra { grid-area: extra; display: grid; gap: 28px; padding: 0 6px; }
.ai-proj-partners ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ai-proj-partners .ai-org { padding: 7px 0; font-size: 15px; }
.ai-proj-partners .ai-org a { color: var(--ai-navy); }
.ai-proj-partners .ai-org a:hover { color: var(--ai-cobalt); }
.ai-proj-partners .ai-org img, .ai-proj-partners .ai-mono { width: 40px; height: 40px; }
.ai-proj-partners .ai-mono { font-size: 12.5px; }
.ai-org--us { margin: 0 -10px; padding: 7px 10px !important; border-radius: 14px; background: var(--ai-sun-soft); }
.ai-org--us img { padding: 0; border-radius: 10px; }
.ai-proj-eu { display: grid; gap: 10px; }
.ai-proj-eu img { width: auto; height: 38px; }
.ai-proj-eu p { margin: 0; color: var(--ai-muted); font-size: 12px; line-height: 1.5; }

/* Gallery right under the text: the first photo across, the others in two columns */
.ai-proj-gallery { margin-top: 48px; }
.ai-proj-subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.ai-proj-subhead .ai-eyebrow { margin: 0; }
.ai-proj-subhead span { color: var(--ai-muted); font-size: 14px; }
.ai-proj-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 10px; }
.ai-proj-gallery__grid a:first-child { grid-column: 1 / -1; grid-row: span 2; }
.ai-proj-gallery__grid.fill-last a:last-child { grid-column: 1 / -1; }
.ai-proj-gallery__grid.count-1 a:first-child { grid-row: span 2; }
.ai-proj-gallery__grid a { display: block; overflow: hidden; border-radius: 16px; background: var(--ai-paper-2); }
.ai-proj-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ai-ease); }
.ai-proj-gallery__grid a:hover img { transform: scale(1.04); }

@media (max-width: 991px) {
    .ai-proj-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "details" "main" "extra"; gap: 40px; padding-top: 32px; padding-bottom: 72px; }
    .ai-proj-extra { padding: 0; }
}
@media (max-width: 767px) {
    .ai-proj-head { padding-top: 18px; }
    .ai-proj-meta { gap: 8px 18px; margin: 18px 0 24px; font-size: 15px; }
    .ai-proj-cover { border-radius: 20px; }
    .ai-proj-cover img { aspect-ratio: 4 / 3; }
    .ai-proj-details { padding: 22px 20px; }
    .ai-proj-details dl > div { grid-template-columns: 100px minmax(0, 1fr); }
    .ai-proj-gallery__grid { grid-auto-rows: 130px; gap: 8px; }
}

.ai-org { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ai-navy) !important; font-weight: 600; line-height: 1.3; }
.ai-org img { width: 52px; height: 52px; flex: none; object-fit: contain; padding: 4px; border-radius: 14px; background: var(--ai-paper); }
.ai-org small { display: block; margin-top: 2px; color: var(--ai-muted); font-weight: 500; font-size: 13.5px; }
/* Initials of a partner without a logo: a soft round badge in the brand colours */
.ai-mono { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ai-sun-soft); color: var(--ai-navy); font-family: var(--ai-sans); font-size: 15px; font-weight: 800; letter-spacing: .04em; font-style: normal; }
.ai-org:nth-child(3n+2) .ai-mono { background: var(--ai-tint); }
.ai-org--link:hover span { color: var(--ai-cobalt); }

/* Text from the editor */
.ai-prose { color: var(--ai-text); font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.ai-prose > * + * { margin-top: 1.1em; }
.ai-prose :is(h2, h3, h4) { margin-top: 1.6em; color: var(--ai-navy); font-family: var(--ai-serif); line-height: 1.25; }
.ai-prose h2 { font-size: 30px; }
.ai-prose h3 { font-size: 24px; }
.ai-prose h4 { font-size: 20px; }
.ai-prose a { color: var(--ai-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.ai-prose ul, .ai-prose ol { padding-left: 1.3em; }
.ai-prose li + li { margin-top: .4em; }
.ai-prose ul li::marker { color: var(--ai-sun-2); }
.ai-prose blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; border-radius: 18px; background: var(--ai-sun-soft); font-family: var(--ai-serif); font-style: italic; font-size: 21px; color: var(--ai-navy); }
.ai-prose img { border-radius: 16px; }
.ai-prose iframe { max-width: 100%; border: 0; border-radius: 16px; }
.ai-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ai-prose :is(td, th) { padding: 8px 10px; }
.ai-prose tr:nth-child(odd) { background: var(--ai-tint); }

/* ---------- Testimonials slider ---------- */
.ai-slider { position: relative; }
.ai-slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.ai-slider__track::-webkit-scrollbar { display: none; }
.ai-slider.is-dragging .ai-slider__track { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.ai-quote { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; }
@media (max-width: 991px) { .ai-quote { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .ai-quote { flex-basis: 88%; } }
.ai-quote__bubble { position: relative; flex: 1; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: var(--ai-radius); background: #fff; box-shadow: var(--ai-shadow); }
.ai-quote__bubble::before { content: '\201C'; display: block; height: 38px; color: var(--ai-sun-2); font-family: var(--ai-serif); font-size: 76px; line-height: 1; }
.ai-quote__bubble::after { content: ''; position: absolute; left: 34px; bottom: -9px; width: 20px; height: 20px; background: #fff; border-radius: 0 0 5px 0; transform: rotate(45deg); }
.ai-quote__text { margin: 0; color: var(--ai-text); font-size: 16.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ai-quote__more { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--ai-cobalt); font-weight: 700; font-size: 15px; cursor: pointer; }
.ai-quote__more[hidden] { display: none; }
.ai-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-left: 16px; }
.ai-quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(11, 37, 80, .4); }
.ai-quote figcaption strong { display: block; color: var(--ai-navy); font-family: var(--ai-serif); font-size: 18px; }
.ai-quote figcaption span span { color: var(--ai-muted); font-size: 14px; }
.ai-slider__nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.ai-slider.is-static .ai-slider__nav { display: none; }
.ai-slider__dots { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(11, 37, 80, .2); cursor: pointer; transition: width .3s var(--ai-ease), background-color .3s; }
.ai-slider__dot.is-active { width: 26px; background: var(--ai-navy); }
.ai-slider__arrows { display: flex; gap: 10px; }
.ai-slider__arrows button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--ai-shadow); color: var(--ai-navy); font-size: 24px; cursor: pointer; transition: background-color .2s; }
.ai-slider__arrows button:hover { background: var(--ai-sun); }

.ai-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--ai-shadow-lg); color: var(--ai-text); }
.ai-dialog::backdrop { background: rgba(6, 25, 55, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ai-dialog[open] { display: flex; flex-direction: column; }
.ai-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ai-paper-2); color: var(--ai-navy); font-size: 22px; cursor: pointer; }
.ai-dialog__person { display: flex; align-items: center; gap: 16px; padding: 26px 64px 6px 26px; }
.ai-dialog__person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ai-dialog__person strong { display: block; color: var(--ai-navy); font-family: var(--ai-serif); font-size: 22px; }
.ai-dialog__person span span { color: var(--ai-muted); font-size: 14.5px; }
.ai-dialog__body { padding: 22px 26px 28px; overflow-y: auto; }
.ai-dialog__text { white-space: pre-line; line-height: 1.7; }

/* ---------- Gallery and lightbox ---------- */
.ai-gallery { columns: 3 260px; column-gap: 16px; }
.ai-gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 18px; overflow: hidden; box-shadow: var(--ai-shadow); }
.ai-gallery img { width: 100%; transition: transform .5s var(--ai-ease); }
.ai-gallery a:hover img { transform: scale(1.04); }

.ai-lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 56px 72px; background: rgba(6, 25, 55, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ai-lightbox.is-open { display: grid; }
.ai-lightbox img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: 18px; box-shadow: var(--ai-shadow-lg); }
.ai-lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ai-sun); color: var(--ai-navy); font-size: 28px; cursor: pointer; }
.ai-lightbox__close { top: 16px; right: 16px; }
.ai-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.ai-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.ai-lightbox button[hidden] { display: none; }
@media (max-width: 640px) { .ai-lightbox { padding: 72px 10px; } .ai-lightbox__prev, .ai-lightbox__next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Team member page ---------- */
.ai-person { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.ai-person__photo { aspect-ratio: 1; }
.ai-person__photo .ai-frame { height: 100%; border-radius: 32px; }
.ai-person__role { margin: 14px 0 28px; color: var(--ai-cobalt); font-family: var(--ai-serif); font-style: italic; font-size: 22px; }
@media (max-width: 899px) { .ai-person { grid-template-columns: 1fr; gap: 32px; } .ai-person__photo { max-width: 320px; } }

/* ---------- Mission blocks (about) ---------- */
.ai-objectives { display: grid; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.ai-objectives li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--ai-paper); font-weight: 500; }
.ai-objectives li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 4px; background: var(--ai-sun); border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%; }
.ai-quote-big { position: relative; color: var(--ai-navy); font-family: var(--ai-serif); font-size: clamp(24px, 2.6vw, 32px); font-style: italic; line-height: 1.35; }
.ai-quote-big::before { content: '\201C'; display: block; height: 44px; color: var(--ai-sun); font-size: 90px; font-style: normal; line-height: 1; }
.ai-art { position: relative; aspect-ratio: 14 / 9; }
.ai-art .ai-frame { height: 100%; }

/* ---------- Footer ---------- */
.ai-footer { position: relative; overflow: hidden; padding: 88px 0 32px; background: var(--ai-deep); color: rgba(255, 255, 255, .72); font-size: 16px; }
.ai-footer .ai-container { position: relative; z-index: 1; }
.ai-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.ai-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: #fff !important; }
.ai-footer__brand img { height: 74px; width: auto; }
.ai-footer__wordmark { height: 31px; }
.ai-footer__title { margin-bottom: 18px; color: var(--ai-sun); font-family: var(--ai-sans); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ai-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ai-footer a { color: rgba(255, 255, 255, .86); }
.ai-footer a:hover { color: var(--ai-sun); }
.ai-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; color: rgba(255, 255, 255, .5); font-size: 14.5px; }
.ai-footer__eu { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 991px) { .ai-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ai-footer__grid { grid-template-columns: 1fr; gap: 36px; } .ai-footer { padding-top: 64px; } }

.ai-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ai-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; transition: background-color .2s, color .2s, transform .2s; }
.ai-socials a:hover { background: var(--ai-sun); color: var(--ai-navy); transform: translateY(-2px); }

/* ---------- Reveal on scroll (only when JavaScript runs) ---------- */
.ai-js .ai-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ai-ease), transform .7s var(--ai-ease); }
.ai-js .ai-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ai-js .ai-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Error pages ---------- */
.ai-error { position: relative; padding: 96px 0 128px; overflow: hidden; }
.ai-error__code { display: block; color: var(--ai-sun-2); font-family: var(--ai-serif); font-size: clamp(80px, 14vw, 160px); font-weight: 700; line-height: .9; }
