/* ============================================================
   FACTURA FEST — landing styles
   Palette: gold #D4AF37 · white #FFFFFF · anthracite #1A1A1A · black #000
   ============================================================ */

:root {
    --gold: #D4AF37;
    --gold-soft: #e6c766;
    --gold-deep: #b8952b;
    --white: #ffffff;
    --anthracite: #1a1a1a;
    --black: #000000;
    --ink: #16171a;
    --muted: #6b6f76;
    --line: #e7e4dc;
    --bg: #ffffff;
    --bg-soft: #f6f4ef;
    --dark-bg: #111214;
    --dark-soft: #1a1c1f;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .35);
    --shadow-gold: 0 18px 40px -18px rgba(212, 175, 55, .55);
    --container: 1180px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --ff-display: 'Montserrat', system-ui, sans-serif;
    --ff-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); line-height: 1.08; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.gold { color: var(--gold); }

.ico { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--gold);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--ff-display); font-weight: 700; font-size: 14px;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
    background: var(--btn-bg); color: var(--black); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
    color: #241800;
    background: linear-gradient(135deg, #f7dd8a 0%, #e6c766 22%, #d4af37 52%, #b8860b 100%);
    border-color: rgba(255, 245, 210, .55);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
    box-shadow:
        0 12px 28px -10px rgba(184, 133, 11, .7),
        inset 0 1px 0 rgba(255, 255, 255, .6),
        inset 0 -2px 6px rgba(120, 80, 0, .28);
}
.btn--gold:hover {
    background: linear-gradient(135deg, #ffeaa0 0%, #f0d074 22%, #dfb941 52%, #c8961a 100%);
    box-shadow:
        0 18px 36px -10px rgba(184, 133, 11, .85),
        inset 0 1px 0 rgba(255, 255, 255, .7),
        inset 0 -2px 6px rgba(120, 80, 0, .3);
}
.btn--gold:active { transform: translateY(0); box-shadow: 0 6px 16px -8px rgba(184, 133, 11, .7), inset 0 2px 6px rgba(120, 80, 0, .35); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold-deep); }
.btn--outline:hover { background: var(--gold); color: #1a1400; }
.btn--lg { padding: 18px 34px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.section--dark .btn--outline { color: var(--gold); }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--black); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--ff-display); }
.logo__text strong { font-size: 17px; font-weight: 800; letter-spacing: .12em; }
.logo__text em { font-style: normal; font-size: 9px; font-weight: 600; letter-spacing: .34em; color: var(--muted); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav__link {
    font-family: var(--ff-display); font-weight: 600; font-size: 12.5px;
    letter-spacing: .06em; color: #2c2e33; position: relative; padding: 6px 0;
    transition: color .2s;
}
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s var(--ease); }
.nav__link:hover { color: var(--black); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--black); }

.header__cta { margin-left: 4px; padding: 12px 22px; }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; margin-left: auto; }
.burger span { height: 2px; width: 24px; background: var(--black); margin-inline: auto; transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections base ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--dark-bg); color: #e9e7e2; }
.section--dark .section__subtitle { color: #a7a9ad; }

.section__eyebrow {
    display: inline-block; font-family: var(--ff-display); font-weight: 700;
    font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--gold-deep); margin-bottom: 14px;
}
.section--dark .section__eyebrow { color: var(--gold); }
.section__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.01em; }
.section__subtitle { max-width: 640px; margin-top: 14px; color: var(--muted); font-size: 17px; }
.section__subtitle--tight { margin-top: 6px; margin-bottom: 30px; }
.subhead { font-size: 22px; font-weight: 800; margin: 48px 0 22px; letter-spacing: .01em; }

/* ---------- Placeholder ---------- */
.placeholder {
    position: relative; display: flex; align-items: center; justify-content: center;
    background:
        repeating-linear-gradient(45deg, rgba(212,175,55,.08) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #23262b, #16181c);
    border: 1px dashed rgba(212, 175, 55, .4); border-radius: var(--radius); overflow: hidden; color: #cbb874;
}
.placeholder__label { font-family: var(--ff-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-align: center; padding: 12px; opacity: .85; }

/* ============ HERO ============ */
.hero {
    padding: 118px 0 70px; position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(212,175,55,.16), transparent 60%),
        linear-gradient(180deg, #fbfaf7, #ffffff 40%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.hero__logo { display: flex; flex-direction: column; line-height: .82; margin-bottom: 22px; }
.hero__logo-top { font-family: var(--ff-display); font-weight: 900; font-size: clamp(48px, 8vw, 96px); letter-spacing: -.02em; color: var(--black); }
.hero__logo-bottom {
    font-family: var(--ff-display); font-weight: 900; font-size: clamp(48px, 8vw, 96px); letter-spacing: .02em;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__logo--sm .hero__logo-top, .hero__logo--sm .hero__logo-bottom { font-size: 34px; }

.hero__title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: .01em; margin-bottom: 14px; }
.hero__subtitle { font-size: 18px; color: #3d4046; max-width: 520px; margin-bottom: 30px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 26px 40px; margin-bottom: 34px; }
.hero__meta-item { display: flex; gap: 12px; align-items: flex-start; }
.hero__meta-item .ico { margin-top: 3px; }
.hero__meta-label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__meta-item b { font-size: 16px; font-family: var(--ff-display); }
.hero__meta-item small { display: block; color: var(--muted); font-size: 13px; }

.hero__right { display: flex; flex-direction: column; gap: 20px; }
.hero__media { aspect-ratio: 4 / 3.4; }
.hero__partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner-slot { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.partner-slot__tier { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 11px; letter-spacing: .04em; margin-bottom: 10px; color: #34363b; }
.partner-slot__logo { height: 64px; }
.section--dark .partner-slot { background: var(--dark-soft); border-color: #2a2d31; }
.section--dark .partner-slot__tier { color: #d8d6d1; }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.about__lead { font-size: 19px; color: #34363b; margin: 18px 0 30px; max-width: 640px; }

.feature-list { display: grid; gap: 18px; }
.feature { display: flex; gap: 16px; padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .2s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(212,175,55,.4); }
.feature__icon { font-size: 26px; flex: none; line-height: 1.2; }
.feature__title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.about__right { position: sticky; top: 96px; }
.unity { background: var(--anthracite); color: #ececec; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.unity__media { aspect-ratio: 16 / 10; border-radius: 0; border: 0; border-bottom: 1px solid rgba(212,175,55,.3); }
.unity__body { padding: 26px; }
.unity__title { font-size: 24px; font-weight: 900; color: var(--gold); letter-spacing: .04em; margin-bottom: 12px; }
.unity__meta { color: #c9c9c9; font-size: 14px; margin: 0 0 12px; }
.unity__body p { font-size: 14.5px; color: #b9b9b9; margin: 0 0 10px; }

.highlights {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 64px;
    padding-top: 40px; border-top: 1px solid var(--line); text-align: center;
}
.highlights li { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.highlights__num { font-family: var(--ff-display); font-weight: 800; font-size: 20px; color: var(--gold-deep); }
.highlights li span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ============ PROGRAM ============ */
/* --tl-rail: gutter reserved for the line+dots. Line and dots both center on
   rail/2, so changing --tl-rail alone keeps them aligned at any breakpoint. */
.timeline { --tl-rail: 26px; --tl-dot: 12px; position: relative; margin: 40px auto 0; max-width: 860px; padding-left: var(--tl-rail); }
.timeline::before { content: ''; position: absolute; left: calc(var(--tl-rail) / 2 - 1px); top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid #26292d; }
.tl-item:last-child { border-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: calc((var(--tl-rail) + var(--tl-dot)) / -2); top: 22px; width: var(--tl-dot); height: var(--tl-dot); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }
.tl-time { font-family: var(--ff-display); font-weight: 800; color: var(--gold); font-size: 15px; padding-top: 1px; }
.tl-body h4 { font-size: 16.5px; font-weight: 700; color: #efeee9; }
.tl-speaker { font-size: 13.5px; color: #9ea1a6; margin-top: 4px; }

.speakers { margin-top: 84px; }
.speakers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.spk {
    background: var(--dark-soft); border: 1px solid #2a2d31; border-radius: var(--radius); overflow: hidden;
    cursor: pointer; transition: transform .2s var(--ease), border-color .25s, box-shadow .25s; text-align: left;
}
.spk:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.5); box-shadow: var(--shadow); }
.spk__photo { aspect-ratio: 1 / 1; border: 0; border-radius: 0; border-bottom: 1px solid #2a2d31; }
.spk__body { padding: 16px 16px 18px; }
.spk__name { font-size: 16px; font-weight: 800; color: #f1f0eb; }
.spk__role { font-size: 13px; color: var(--gold); margin-top: 3px; }
.spk__hint { font-size: 12px; color: #83868b; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }

/* ============ TICKETS ============ */
.countdown { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 30px 0 50px; }
.countdown__label { font-family: var(--ff-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.countdown__grid { display: flex; gap: 14px; }
.countdown__cell { min-width: 84px; padding: 16px 10px; background: var(--anthracite); color: var(--white); border-radius: var(--radius-sm); text-align: center; }
.countdown__cell b { display: block; font-family: var(--ff-display); font-weight: 800; font-size: 34px; color: var(--gold); line-height: 1; }
.countdown__cell span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #b7b7b7; }

.tickets__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.ticket {
    position: relative; display: flex; flex-direction: column; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
    transition: transform .2s var(--ease), border-color .25s;
}
.ticket:hover { transform: translateY(-4px); }
.ticket--featured { border-color: var(--gold); background: linear-gradient(180deg, #fffdf6, #fff); box-shadow: var(--shadow-gold); }
.ticket__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1400; font-family: var(--ff-display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.ticket__name { font-size: 30px; font-weight: 900; letter-spacing: .02em; }
.ticket__stages { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.ticket__prices { margin: 16px 0 20px; }
.ticket__price { font-family: var(--ff-display); font-weight: 900; font-size: 40px; color: var(--ink); }
.ticket__price small { font-size: 16px; font-weight: 700; color: var(--muted); }
.ticket__price--active { color: var(--gold-deep); }
.ticket__price-next { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ticket__list { display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.ticket__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: #43464b; }
.ticket__list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ============ JOIN ============ */
.join__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.join-card { display: flex; flex-direction: column; background: var(--dark-soft); border: 1px solid #2a2d31; border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), border-color .25s; }
.join-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.5); }
.join-card__media { aspect-ratio: 16 / 10; border: 0; border-radius: 0; }
.join-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.join-card__title { font-size: 22px; font-weight: 900; color: var(--gold); letter-spacing: .03em; }
.join-card__lead { font-size: 15px; color: #cfd0d2; margin: 6px 0 16px; font-weight: 600; }
.check-list { display: grid; gap: 9px; margin-bottom: 22px; flex: 1; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; color: #b6b8bb; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ============ ORGANIZERS ============ */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.people-grid--council { grid-template-columns: repeat(4, 1fr); }
.person { text-align: center; }
.person__photo { aspect-ratio: 1 / 1; margin-bottom: 14px; border-radius: var(--radius); }
.person__name { font-size: 18px; font-weight: 800; }
.person__role { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ============ PARTNERS ============ */
.partners__tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 34px 0 24px; }
.partner-slot--big .partner-slot__logo { height: 120px; }
.partners__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner-cell { aspect-ratio: 3 / 2; background: var(--dark-soft); border: 1px solid #2a2d31; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #7e8085; font-family: var(--ff-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; transition: border-color .25s, transform .2s; }
.partner-cell:hover { border-color: rgba(212,175,55,.5); transform: translateY(-3px); }

/* ============ FOOTER ============ */
.footer { background: var(--black); color: #cfcfcf; padding: 64px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: #9a9a9a; font-size: 14px; margin-top: 16px; }
.footer__title { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__list { display: grid; gap: 10px; font-size: 14.5px; }
.footer__list a:hover { color: var(--gold); }
.footer__cta { margin-top: 18px; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid #222; font-size: 12.5px; color: #777; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 460px; background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; background: var(--bg-soft); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: #444; transition: background .2s; }
.modal__close:hover { background: #ececec; }
.modal__title { font-size: 24px; font-weight: 800; }
.modal__sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.modal__sub b { color: var(--gold-deep); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: #3a3d42; }
.field input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.field input.invalid { border-color: #d84a4a; box-shadow: 0 0 0 3px rgba(216,74,74,.14); }
.form__status { font-size: 14px; margin: 4px 0 0; text-align: center; min-height: 20px; }
.form__status.ok { color: #1f9d55; }
.form__status.err { color: #d84a4a; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* --- Reveal on scroll (with stagger via --d set from JS) --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }

/* --- Hero entrance on load --- */
@keyframes ff-fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ff-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ff-scale-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes ff-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ff-shimmer { to { background-position: 200% center; } }
/* premium gold glow pulse (keeps base premium shadow, adds expanding ring) */
@keyframes ff-cta-pulse {
    0%   { box-shadow: 0 12px 28px -10px rgba(184,133,11,.7), inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 0 rgba(212,175,55,.55); }
    70%  { box-shadow: 0 12px 28px -10px rgba(184,133,11,.7), inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 16px rgba(212,175,55,0); }
    100% { box-shadow: 0 12px 28px -10px rgba(184,133,11,.7), inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 0 rgba(212,175,55,0); }
}

.hero__left > *, .hero__right > * { opacity: 0; animation: ff-fade-up .8s var(--ease) forwards; }
.hero__logo { animation-delay: .05s; }
.hero__title { animation-delay: .16s; }
.hero__subtitle { animation-delay: .26s; }
.hero__meta { animation-delay: .36s; }
.hero__media { animation: ff-scale-in .9s var(--ease) .3s forwards; }
.hero__partners { animation-delay: .5s; }

/* hero CTA: fade in once, then gently pulse (fixes disappearing button) */
.hero__left .btn { animation: ff-fade-up .8s var(--ease) .46s both, ff-cta-pulse 2.8s ease-out 1.8s infinite; }

/* Animated gold gradient on FEST wordmark */
.hero__logo-bottom {
    background: linear-gradient(100deg, var(--gold-deep), var(--gold-soft), #fff2c4, var(--gold-soft), var(--gold-deep));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: ff-shimmer 6s linear infinite;
}

/* Countdown cells pop */
.countdown__cell b { transition: transform .25s var(--ease); }

/* Button shine sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* Nav links + interactive lift already have transitions; add media zoom */
.hero__media img, .join-card__media img, .spk__photo img, .unity__media img, .person__photo img { transition: transform .5s var(--ease); }
.join-card:hover .join-card__media img, .spk:hover .spk__photo img { transform: scale(1.05); }

/* Ticket featured subtle float */
.ticket--featured { animation: ff-float 5s ease-in-out infinite; }
.ticket--featured:hover { animation-play-state: paused; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    :root { --container: 1040px; }
    .partners__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .nav, .header__cta { display: none; }
    .burger { display: flex; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__logo-top, .hero__logo-bottom { font-size: clamp(56px, 12vw, 88px); }
    .about__grid { grid-template-columns: 1fr; }
    .about__right { position: static; max-width: 620px; }
    .speakers__grid { grid-template-columns: repeat(3, 1fr); }
    .partners__grid { grid-template-columns: repeat(4, 1fr); }
    .highlights { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
    .ticket--featured { animation: none; }

    .nav {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--white);
        padding: 8px 24px 20px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
        transform: translateY(-140%); transition: transform .35s var(--ease); display: flex; z-index: 90;
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .nav.open { transform: none; }
    .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
    .nav__link::after { display: none; }
}

@media (max-width: 860px) {
    .about__right { max-width: none; }
    .people-grid { grid-template-columns: repeat(3, 1fr); }
    .highlights { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { padding: 100px 0 52px; }
    .section__title { font-size: clamp(26px, 7vw, 38px); }
    .section__subtitle { font-size: 16px; }
    .tickets__grid, .join__grid { grid-template-columns: 1fr; gap: 20px; }
    .ticket, .join-card { max-width: 480px; margin-inline: auto; width: 100%; }
    .people-grid, .people-grid--council { grid-template-columns: repeat(2, 1fr); }
    .speakers__grid { grid-template-columns: repeat(2, 1fr); }
    .partners__grid { grid-template-columns: repeat(3, 1fr); }
    .partners__tiers { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 30px; }
    .highlights { grid-template-columns: repeat(2, 1fr); }
    .timeline { --tl-rail: 22px; }
    .tl-item { grid-template-columns: 84px 1fr; gap: 12px; }
    .countdown__cell { min-width: 68px; }
    .countdown__cell b { font-size: 26px; }
    .hero__partners { grid-template-columns: 1fr 1fr; }
    .hero__media { aspect-ratio: 16 / 11; }
    .hero__left .btn { animation: ff-fade-up .8s var(--ease) .3s both; }
}

@media (max-width: 560px) {
    .hero__logo-top, .hero__logo-bottom { font-size: clamp(46px, 15vw, 72px); }
    .hero__title { font-size: 20px; }
    .hero__subtitle { font-size: 16px; }
    .hero__meta { flex-direction: column; gap: 16px; }
    .feature { padding: 16px; }
    .subhead { font-size: 20px; }
    .tl-item { grid-template-columns: 1fr; gap: 4px; }
    .tl-time { padding-top: 0; }
}

@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .btn { padding: 13px 20px; font-size: 13px; }
    .btn--lg { padding: 16px 24px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .speakers__grid { grid-template-columns: 1fr 1fr; }
    .people-grid, .people-grid--council { grid-template-columns: 1fr 1fr; }
    .partners__grid { grid-template-columns: repeat(2, 1fr); }
    .countdown__grid { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .countdown__cell { min-width: 62px; padding: 12px 6px; }
    .countdown__cell b { font-size: 24px; }
    .modal__box { padding: 28px 20px; }
    .ticket__price { font-size: 34px; }
    .ticket__name { font-size: 26px; }
}

@media (max-width: 360px) {
    .speakers__grid, .people-grid, .people-grid--council, .partners__grid { grid-template-columns: 1fr; }
    .hero__partners { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__left > *, .hero__right > *, .hero__media, .hero__left .btn { opacity: 1; animation: none; }
    .hero__logo-bottom, .ticket--featured, .hero__mascot { animation: none; }
    .btn::after { display: none; }
}

/* ============================================================
   REAL ASSETS (logos, mascot, photos)
   ============================================================ */

/* Header logos: Альянс + ФАКТУРА FEST (2 логотипи) */
.logo { gap: 12px; }
.logo__img { height: 48px; width: auto; display: block; }
.logo__img--factura { height: 40px; }
.logo__divider { width: 1px; height: 34px; background: var(--line); flex: none; }

/* Hero brush logo ФАКТУРА FEST */
.hero__logo { display: block; margin-bottom: 22px; }
.hero__logo-img { width: min(100%, 470px); height: auto; display: block; }

/* Hero stage with mascot */
.hero__stage {
    position: relative; aspect-ratio: 4 / 3.5; border-radius: var(--radius); overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    border: 1px solid #24262b; box-shadow: var(--shadow);
    background:
        repeating-linear-gradient(48deg, rgba(212,175,55,.05) 0 10px, transparent 10px 22px),
        radial-gradient(120% 85% at 50% 6%, #33373e 0%, #1b1d21 55%, #101114 100%);
}
.hero__stage::after {
    content: ''; position: absolute; left: 50%; bottom: -14%; transform: translateX(-50%);
    width: 72%; height: 34%; background: radial-gradient(ellipse at center, rgba(212,175,55,.28), transparent 70%);
    filter: blur(6px); pointer-events: none;
}
.hero__mascot {
    position: relative; z-index: 2; max-height: 94%; max-width: 84%; width: auto; height: auto;
    object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0,0,0,.5));
    animation: ff-float 6s ease-in-out infinite;
}
.hero__bubble {
    position: absolute; top: 20px; right: 20px; z-index: 3;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #241a00;
    font-family: var(--ff-display); font-weight: 700; font-size: 12px; line-height: 1.2;
    padding: 10px 15px; border-radius: 16px 16px 16px 3px; box-shadow: var(--shadow); text-align: center;
    animation: ff-float 6s ease-in-out .4s infinite;
}
.hero__bubble b { display: block; font-size: 15px; font-weight: 800; }

/* Wall of Unity photo */
.unity__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* People / founders photos */
.person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }

/* Footer brush logo (варіант на темному фоні) */
.footer__logo-img { width: 220px; max-width: 70%; height: auto; display: block; margin-bottom: 6px; }

@media (max-width: 1024px) {
    .hero__stage { aspect-ratio: 16 / 11; max-width: 560px; }
    .hero__logo-img { max-width: 420px; }
}
@media (max-width: 768px) {
    .logo__img { height: 40px; }
    .logo__img--factura { height: 34px; }
    .logo { gap: 10px; }
    .hero__stage { aspect-ratio: 4 / 3.4; }
    .hero__bubble { font-size: 11px; padding: 8px 12px; }
}
@media (max-width: 480px) {
    .logo__img { height: 36px; }
    .logo__img--factura { height: 30px; }
    .logo__divider { height: 28px; }
    .hero__logo-img { max-width: 300px; }
    .footer__logo-img { width: 180px; }
}
@media (max-width: 360px) {
    .logo__divider, .logo__img--factura { display: none; }
}
