/*!
 * Republjika Vilgerska · vilgeria.com
 * © 2026 RV Software Board. All rights reserved.
 */

:root {
    --tri-h: linear-gradient(180deg, #1f3b2c 0 33.3%, var(--flag-white) 33.3% 66.6%, #3b3d3c 66.6%);
    --tri-v: linear-gradient(90deg, #3b3d3c 0 33.3%, var(--flag-white) 33.3% 66.6%, #1f3b2c 66.6%);
}

main { position: relative; }

section { position: relative; }

.home main .wrap { position: relative; z-index: 2; }

.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.ribbon__line {
    fill: none;
    stroke-width: var(--rw, 3px);
    stroke-linejoin: round;
    stroke-linecap: butt;
}

.js .ribbon__line { stroke-dasharray: 0 999999; }

.ribbon__line--edge {
    stroke: rgba(244, 243, 238, 0.28);
    stroke-width: calc(var(--rw, 3px) * 3 + 2px);
}

.ribbon__line--g { stroke: #3f9464; }
.ribbon__line--w { stroke: var(--flag-white); }
.ribbon__line--b { stroke: #111312; }

.inst[data-tilt] { position: relative; }

.tilt-glare {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.1), transparent 45%);
    opacity: var(--glare, 0);
    pointer-events: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--topbar-h) + 40px);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: -4% 0 0;
    z-index: 0;
    will-change: transform;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform: scale(1.14);
}

.is-ready .hero__media img { animation: hero-zoom 2.4s var(--ease) forwards; }

@keyframes hero-zoom { to { transform: scale(1.02); } }

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 80% at 80% 20%, transparent 30%, rgba(8, 9, 10, 0.55) 100%),
        linear-gradient(180deg, rgba(8, 9, 10, 0.6) 0%, rgba(8, 9, 10, 0.1) 32%, rgba(8, 9, 10, 0.6) 64%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8, 9, 10, 0.85) 0%, rgba(8, 9, 10, 0.2) 65%);
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content { padding-bottom: 48px; will-change: transform, opacity; }

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.3rem, 9.4vw, 7.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero__line { display: block; white-space: nowrap; }

.hero__line .c { display: inline-block; transform-origin: 50% 100%; }

.js .hero__line .c { opacity: 0; transform: translateY(0.6em) rotate(8deg); }

.is-ready .hero__line .c {
    animation: char-in 0.9s var(--ease) forwards;
    animation-delay: calc(0.1s + var(--ci) * 0.035s);
}

@keyframes char-in { to { opacity: 1; transform: none; } }

.hero__line--accent { overflow: hidden; padding-bottom: 0.06em; }

.hero__line--accent > span {
    display: inline-block;
    background: linear-gradient(100deg, #ffffff 0%, #d7eee0 30%, var(--accent) 55%, #d7eee0 75%, #ffffff 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.js .hero__line--accent > span { transform: translateY(105%); }

.is-ready .hero__line--accent > span {
    animation:
        line-up 1.1s var(--ease) 0.45s forwards,
        shimmer 6s ease-in-out 1.6s infinite;
}

@keyframes line-up { to { transform: none; } }

@keyframes shimmer {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

.js .hero__in { opacity: 0; transform: translateY(18px); }

.is-ready .hero__in {
    animation: fade-up 1s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes fade-up { to { opacity: 1; transform: none; } }

.hero__lead {
    max-width: 520px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-strong);
}

.stat {
    min-width: 0;
    padding: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }

.stat strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}

.hero__scroll {
    position: absolute;
    right: 32px;
    bottom: 36px;
    z-index: 2;
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
}

.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

.ticker {
    position: relative;
    z-index: 3;
    width: 108%;
    margin: 90px 0 0 -4%;
    transform: rotate(-2deg);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9);
}

.js .ticker { clip-path: inset(-40px 100% -40px 0); }

.ticker__band {
    background: var(--green);
    padding: 20px 0;
    overflow: hidden;
}

.ticker__white { height: 8px; background: var(--flag-white); }
.ticker__black { height: 8px; background: #121212; }

.ticker__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.ticker__group {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
    flex-shrink: 0;
}

.ticker span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--flag-white);
}

.ticker i {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: var(--accent);
}

.about { padding: 150px 0 120px; }

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: center;
}

.about__grid > * { min-width: 0; }

.section-lead b { color: #fff; }

.principles {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 36px;
}

.principles li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 700;
}

.principles span {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--accent);
}

.about__note { margin-top: 16px; font-size: 14px; color: var(--dim); }

.about__visual { position: relative; padding-bottom: 48px; }

.about__photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
    border: 1px solid var(--line);
    background: var(--surface);
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.8s var(--ease);
}

.about__photo.is-visible img,
html:not(.js) .about__photo img { transform: scale(1); }

.about__photo figcaption {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(8, 9, 10, 0.7);
    border: 1px solid var(--line-strong);
}

.about__emblem {
    position: absolute;
    left: -36px;
    bottom: 0;
    width: 170px;
    aspect-ratio: 1;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(18, 21, 19, 0.94);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.about__emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.manifest { padding: 120px 0 160px; }

.manifest__text {
    position: relative;
    max-width: 1150px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.55rem, 4.3vw, 3.9rem);
    line-height: 1.45;
    letter-spacing: -0.015em;
}

.manifest__text em { font-style: normal; }

.mw {
    position: relative;
    display: inline-block;
    transition: color 0.45s ease;
}

.js .mw { color: rgba(242, 242, 238, 0.13); }
.js .mw.on { color: var(--text); }

.mw.accent { color: var(--accent); }
.js .mw.accent { color: rgba(95, 174, 126, 0.16); }
.js .mw.accent.on { color: var(--accent); text-shadow: 0 0 28px rgba(95, 174, 126, 0.45); }

.pillars {
    padding: 120px 0;
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}

.pillars__slab {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--slab-top, 0px);
    height: var(--slab-h, 0px);
    background:
        linear-gradient(180deg, rgba(95, 174, 126, 0.16), rgba(95, 174, 126, 0.03) 70%, transparent),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 79px 80px);
    border-top: 1px solid rgba(244, 243, 238, 0.4);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.2s var(--ease-io);
    pointer-events: none;
}

.pillars__slab.is-open,
html:not(.js) .pillars__slab { transform: none; }

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pillar {
    --mx: 50%;
    --my: 0%;
    position: relative;
    min-width: 0;
    padding: 30px 26px 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}

.pillar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--tri-h);
    transform-origin: left;
}

.pillar { transition: border-color 0.5s, box-shadow 0.6s, opacity 0.8s var(--ease), transform 0.8s var(--ease); }

.js .pillar::after { transform: scaleX(0); transition: transform 0.8s var(--ease-io); }
.js .pillar.is-lit::after { transform: scaleX(1); }

.pillar.is-lit {
    border-color: rgba(95, 174, 126, 0.4);
    box-shadow: 0 30px 60px -30px rgba(95, 174, 126, 0.35);
}

.js .pillar .pillar__top img { opacity: 0.45; filter: grayscale(1); transition: opacity 0.6s, filter 0.6s, transform 0.6s var(--ease); }
.js .pillar.is-lit .pillar__top img { opacity: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)); transform: translateY(-4px); }

.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(95, 174, 126, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.pillar__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 44px;
}

.pillar__top img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s var(--ease);
}

.pillar__top span {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--dim);
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.pillar p { color: var(--muted); font-size: 15px; }

.reel { padding: 110px 0; }

.reel__sticky {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.reel__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.reel__head .section-title { margin-bottom: 0; }

.reel__counter {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.reel__counter b { color: #fff; font-size: 1.6em; }

.reel__viewport {
    position: relative;
    z-index: 2;
    overflow-x: auto;
    scrollbar-width: none;
}

.reel__viewport::-webkit-scrollbar { display: none; }

.reel__track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    will-change: transform;
}

.reel__item {
    width: min(60vw, 860px);
    flex-shrink: 0;
    border: 0;
    padding: 0;
    background: none;
    color: #fff;
    text-align: left;
    cursor: zoom-in;
}

.reel__img {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

.reel__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18) translateX(var(--px, 0%));
    transition: filter 0.5s;
}

.reel__cap {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 16px;
    font-weight: 700;
    font-size: 1.05rem;
}

.reel__cap i {
    font-style: normal;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent);
}

.reel__foot {
    display: flex;
    align-items: center;
    gap: 24px;
}

.reel__bar {
    flex: 1;
    height: 3px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.reel__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3a7a55 0 33.3%, var(--flag-white) 33.3% 66.6%, #5a5d5b 66.6%);
    transform: scaleX(var(--rp, 0));
    transform-origin: left;
}

.reel__hint { font-size: 13px; color: var(--dim); white-space: nowrap; }

.reel--pinned { padding: 0; }

.reel--pinned .reel__sticky {
    position: sticky;
    z-index: 2;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    padding: calc(var(--topbar-h) + 10px) 0 40px;
}

.reel--pinned .reel__viewport {
    overflow: visible;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14px, #000 90px, #000 calc(100% - 90px), transparent calc(100% - 14px));
    mask-image: linear-gradient(90deg, transparent 0, transparent 14px, #000 90px, #000 calc(100% - 90px), transparent calc(100% - 14px));
}

.path { padding: 140px 0 100px; }

.path__grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: start;
}

.path__grid > * { min-width: 0; }

.path__intro {
    position: sticky;
    top: calc(var(--topbar-h) + 60px);
}

.steps-wrap {
    --dot: 44px;
    --lead: 40px;
    position: relative;
}

.steps__track {
    position: absolute;
    top: calc(var(--lead) * -1);
    bottom: 0;
    left: calc(var(--dot) / 2 - 1px);
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--line) 40px, var(--line));
}

.steps { list-style: none; position: relative; }

.step {
    position: relative;
    padding: 0 0 80px calc(var(--dot) + 32px);
}

.step:last-child { padding-bottom: 0; }

.step > :not(.step__dot) { transition: opacity 0.6s var(--ease); }
.js .step > :not(.step__dot) { opacity: 0.3; }
.js .step.is-active > :not(.step__dot) { opacity: 1; }

.step__dot {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: var(--dot);
    height: var(--dot);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    transition: border-color 0.5s, box-shadow 0.5s;
}

.step__dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: background 0.5s, transform 0.5s var(--ease);
}

.step.is-active .step__dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 7px rgba(95, 174, 126, 0.12);
}

.step.is-active .step__dot::after { background: var(--accent); transform: scale(1.3); }

.step__num {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--accent);
    margin: 10px 0 8px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: 10px;
}

.step p { color: var(--muted); max-width: 440px; }

.step__link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(95, 174, 126, 0.35);
    transition: color 0.25s, border-color 0.25s;
}

.institutions { padding: 120px 0; background: var(--bg-2); border-block: 1px solid var(--line); }

.inst__scroller {
    position: relative;
    z-index: 2;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.inst__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.inst {
    min-width: 0;
    padding: 12px 12px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.inst__img {
    position: relative;
    aspect-ratio: 1;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    background: var(--surface-2);
    margin-bottom: 18px;
}

.inst__img::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, #1f3b2c 0 33.4%, var(--flag-white) 33.4% 66.7%, #0c0c0c 66.7%);
    transform: translateX(-101%);
    pointer-events: none;
}

.js .inst__img img { opacity: 0; }

.js .inst__grid.is-visible .inst__img::after {
    animation: flag-wipe 1.15s var(--ease-io) forwards;
    animation-delay: calc(var(--i, 0) * 0.15s);
}

.js .inst__grid.is-visible .inst__img img {
    animation: img-show 0.01s linear forwards;
    animation-delay: calc(var(--i, 0) * 0.15s + 0.55s);
}

@keyframes flag-wipe {
    0% { transform: translateX(-101%); }
    45%, 55% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

@keyframes img-show { to { opacity: 1; } }

.inst__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.inst__img--emblem { background: var(--em-bg, radial-gradient(circle at 50% 40%, #1f3a2a, #0f1a13)); }
.inst__img--emblem img { object-fit: contain; padding: 18%; }

.inst__wipe {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, #1f3b2c 0 33.4%, var(--flag-white) 33.4% 66.7%, #0c0c0c 66.7%);
    transform: translateX(-101%);
    pointer-events: none;
}

.inst h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    min-height: 2.6em;
    margin: 0 8px 4px;
}

.inst p { font-size: 14px; line-height: 1.5; min-height: 3em; color: var(--muted); margin: 0 8px; }

.inst__w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.inst__w > span { display: inline-block; }

.js .inst__grid .inst__w > span { transform: translateY(105%); }

.js .inst__grid.is-visible .inst__w > span {
    animation: inst-rise 1.1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 0.15s + 0.6s + var(--wd, 0s));
}

.js .inst__grid.is-visible .inst.is-entering .inst__w > span {
    animation-name: inst-rise-next;
    animation-delay: var(--wd, 0s);
}

.js .inst__grid.is-visible .inst.is-leaving .inst__w > span {
    animation: inst-sink 0.45s cubic-bezier(0.55, 0, 0.9, 0.45) forwards;
    animation-delay: calc(var(--wd, 0s) * 0.5);
}

@keyframes inst-rise      { from { transform: translateY(105%); } to { transform: none; } }
@keyframes inst-rise-next { from { transform: translateY(105%); } to { transform: none; } }
@keyframes inst-sink      { from { transform: none; } to { transform: translateY(-105%); } }

.inst__hint { display: none; }

.faq { padding: 120px 0; }

.faq__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 70px;
    align-items: start;
}

.faq__grid > * { min-width: 0; }

.faq__aside {
    position: sticky;
    top: calc(var(--topbar-h) + 40px);
}

.faq__help {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, opacity 1s var(--ease), transform 1s var(--ease);
}

.faq__help-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}

.faq__help-icon svg { width: 22px; height: 22px; }

.faq__help-text { display: flex; flex-direction: column; min-width: 0; }
.faq__help-text b { font-size: 1rem; }
.faq__help-text span { font-size: 14px; color: var(--muted); }

.faq__help-arrow {
    margin-left: auto;
    color: var(--dim);
    transition: transform 0.3s var(--ease), color 0.3s;
}

.faq__list { display: grid; gap: 10px; }

.faq__item {
    position: relative;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.35s, background 0.35s, box-shadow 0.35s, opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.faq__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tri-v);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s var(--ease);
}

.faq__item[open] {
    border-color: rgba(95, 174, 126, 0.35);
    background: linear-gradient(180deg, rgba(95, 174, 126, 0.08), rgba(95, 174, 126, 0) 70%), var(--surface);
    box-shadow: 0 24px 50px -30px rgba(95, 174, 126, 0.35);
}

.faq__item[open]::before { transform: scaleY(1); }

.faq__item summary {
    list-style: none;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 22px 24px;
    cursor: pointer;
    user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__num {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--dim);
    transition: color 0.3s;
}

.faq__item[open] .faq__num { color: var(--accent); }

.faq__q {
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.35;
}

.faq__icon {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 2px;
    background: var(--accent);
}

.faq__icon::after { transform: rotate(90deg); }

.faq__item[open] .faq__icon {
    transform: rotate(135deg);
    background: var(--accent);
    border-color: var(--accent);
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #0b0b0b; }

.faq__body { overflow: hidden; }

.faq__inner {
    padding: 0 24px 24px calc(24px + 44px + 14px);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.faq__item[open] .faq__inner { animation: faq-in 0.5s var(--ease) both; }

@keyframes faq-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

@media (hover: hover) {
    .faq__item:not([open]):hover { background: var(--surface-2); border-color: var(--line-strong); }
    .faq__item:not([open]):hover .faq__icon { border-color: var(--accent); transform: rotate(90deg); }
    .faq__help:hover { border-color: rgba(95, 174, 126, 0.4); background: var(--surface-2); }
    .faq__help:hover .faq__help-arrow { color: #fff; transform: translateX(4px); }
}

.join { position: relative; }

.join__stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

.join__flag {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.join__flag span {
    position: absolute;
    left: 0;
    right: 0;
    transform-origin: left;
}

.join__flag span:nth-child(1) { --i: 0; top: 0; height: 33.34%; background: #1f3b2c; }
.join__flag span:nth-child(2) { --i: 1; top: 33.33%; height: 33.34%; background: var(--flag-white); }
.join__flag span:nth-child(3) { --i: 2; top: 66.66%; height: 33.34%; background: #0c0c0c; }

.join__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 50% 58% at 50% 50%, rgba(5, 6, 6, 0.92) 0%, rgba(5, 6, 6, 0.7) 50%, rgba(5, 6, 6, 0.2) 100%),
        rgba(5, 6, 6, 0.25);
}

.join__content {
    position: relative;
    max-width: 780px;
    padding-top: var(--topbar-h);
}

.js .join { --jx: 0; }

.js .join .join__flag span {
    transform: scaleX(var(--jx));
    transition: top 1.1s var(--ease-io), height 1.1s var(--ease-io);
}

.js .join:not(.is-on) .join__flag span { height: 3px; }
.js .join:not(.is-on) .join__flag span:nth-child(2) { top: 3px; }
.js .join:not(.is-on) .join__flag span:nth-child(3) { top: 6px; }
.js .join:not(.is-on) .join__shade { opacity: 0; }
.js .join:not(.is-on) .join__content { opacity: 0; transform: translateY(40px) scale(0.96); }

.js .join .join__shade { transition: opacity 0.4s ease; }
.js .join .join__content { transition: opacity 0.4s ease, transform 0.4s var(--ease); }

.js .join.is-on .join__shade { transition: opacity 0.9s ease 0.8s; }
.js .join.is-on .join__content { transition: opacity 0.9s ease 1.1s, transform 1.1s var(--ease) 1.1s; }

.join__emblem {
    width: 104px;
    height: 104px;
    object-fit: contain;
    margin: 0 auto 28px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

.join h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 5.6rem);
    line-height: 1.02;
    text-transform: uppercase;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.55));
}

.js .join.is-on h2 .w > span { transform: none; transition-delay: calc(1.2s + var(--wi, 0) * 0.08s); }

.join p {
    max-width: 540px;
    margin: 0 auto 38px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.join__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px;
    background: rgba(5, 6, 6, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: scale(0.94);
    transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox__figure { transform: none; }

.lightbox__stage img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 0.3s, transform 0.4s var(--ease);
}

.lightbox__stage img.is-swapping { opacity: 0; transform: translateX(calc(var(--dir, 1) * 30px)); }

.lightbox__figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-weight: 600;
}

#lightbox-count { color: var(--dim); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.lightbox__btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s;
}

.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (hover: hover) {
    .pillar:hover { border-color: rgba(95, 174, 126, 0.35); }
    .pillar:hover::before { opacity: 1; }
    .pillar:hover .pillar__top img { transform: translateY(-4px) rotate(-6deg) scale(1.06); }

    .reel__item:hover .reel__img img { filter: brightness(1.12); }

    .step__link:hover { color: #fff; border-color: #fff; }

    .inst:hover .inst__img img { transform: scale(1.08); }

    .lightbox__btn:hover { background: var(--green); }
}

@media (max-width: 1100px) {
    .pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about__grid, .path__grid { gap: 56px; }
}

@media (max-width: 900px) {
    .steps-wrap { --lead: 26px; }

    .about__grid,
    .faq__grid,
    .path__grid { grid-template-columns: 1fr; }

    .faq__grid { gap: 32px; }
    .faq__aside { position: static; }
    .path__grid { gap: 40px; }
    .path__intro { position: static; }

    .about__visual { padding-left: 20px; }
    .about__emblem { left: 0; width: 120px; padding: 16px; }

    .reel__item { width: 84vw; }
    .reel__img { aspect-ratio: 4 / 3; }
    .reel__hint { display: none; }

    .inst__scroller {
        max-width: none;
        padding: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }

    .inst__scroller::-webkit-scrollbar { display: none; }

    .inst__grid {
        display: flex;
        width: max-content;
        gap: 12px;
        padding: 0 var(--gutter);
    }

    .inst {
        width: min(62vw, 280px);
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .inst__hint {
        display: block;
        position: relative;
        z-index: 2;
        margin-top: 14px;
        padding: 0 var(--gutter);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--dim);
    }

    .lightbox { padding: 70px 12px 96px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; }
    .lightbox__prev { left: calc(50% - 62px); }
    .lightbox__next { right: calc(50% - 62px); }
}

@media (max-width: 640px) {
    .about, .pillars, .institutions, .faq, .path { padding: 80px 0; }
    .about { padding-top: 90px; }
    .manifest { padding: 60px 0 100px; }
    .manifest__text { line-height: 1.75; }

    .hero { padding-top: calc(var(--topbar-h) + 24px); }
    .hero__content { padding-bottom: 32px; }
    .hero__title { margin-bottom: 20px; }
    .hero__lead { margin-bottom: 26px; }

    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }

    .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat { padding: 18px 0 24px; }
    .stat + .stat { padding-left: 12px; }
    .stat strong { font-size: 1.1rem; }
    .stat span { font-size: 10px; letter-spacing: 0.08em; }
    .hero__scroll { display: none; }

    .ticker { margin-top: 60px; width: 112%; margin-left: -6%; }
    .ticker__band { padding: 14px 0; }
    .ticker__white, .ticker__black { height: 6px; }
    .ticker__group { gap: 20px; padding-right: 20px; }
    .ticker i { width: 7px; height: 7px; }

    .principles { grid-template-columns: 1fr; margin-top: 28px; }
    .pillars__grid { grid-template-columns: 1fr; gap: 12px; }
    .pillar { padding: 24px 22px 26px; }
    .pillar__top { margin-bottom: 26px; }
    .pillar__top img { width: 46px; height: 46px; }

    .reel--pinned .reel__sticky { gap: 22px; }
    .reel__track { gap: 14px; }
    .reel__img { border-radius: 16px; }
    .reel__cap { font-size: 0.95rem; margin-top: 12px; }

    .steps-wrap { --dot: 38px; }
    .step { padding: 0 0 56px calc(var(--dot) + 24px); }

    .faq__item summary { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 18px 16px 18px 18px; }
    .faq__q { font-size: 0.98rem; }
    .faq__icon { width: 32px; height: 32px; }
    .faq__inner { padding: 0 18px 20px calc(18px + 30px + 10px); font-size: 0.95rem; }

    .join__emblem { width: 80px; height: 80px; }
    .join p { font-size: 1rem; }
    .join__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__media img,
    .about__emblem img,
    .join__emblem,
    .hero__line--accent > span { animation: none !important; transform: none !important; }

    .js .hero__line .c,
    .js .hero__in { opacity: 1; transform: none; animation: none !important; }

    .js .ticker { clip-path: none !important; }
    .js .mw { color: var(--text); }
    .js .mw.accent { color: var(--accent); }
    .js .step > :not(.step__dot) { opacity: 1; }
    .js .pillar::after { transform: none; transition: none; }
    .js .pillar .pillar__top img { opacity: 1; filter: none; }
    .js .inst__img img { opacity: 1; animation: none !important; }
    .js .inst__grid .inst__w > span { transform: none; animation: none !important; }
    .js .inst__img::after { display: none; }
    .js .join .join__flag span,
    .js .join .join__shade,
    .js .join .join__content { transition: none !important; }
    .js .pillars__slab { transition: none; }
}
