/*
Theme Name: CapKòd
Theme URI: https://capkod.local
Author: CapKòd
Author URI: https://capkod.local
Description: Thème WordPress inspiré du site React CapKòd, avec les pages, animations et sections principales de la communauté tech Okap.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: capkod
*/

:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", var(--font-sans);
    --brand-dark: #001a4d;
    --brand-primary: #0066ff;
    --brand-secondary: #ff4d00;
    --brand-accent: #00d4ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-3xl: 48px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--slate-50);
    color: var(--slate-900);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--brand-primary);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 102, 255, 0.42);
    outline-offset: 4px;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0;
    line-height: 1.05;
}

p {
    margin: 0;
}

.site-shell {
    min-height: 100vh;
    overflow-x: clip;
}

.site-background {
    position: fixed;
    inset: 0;
    z-index: -20;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(0, 102, 255, 0.06), transparent 28%),
        linear-gradient(310deg, rgba(255, 77, 0, 0.05), transparent 30%),
        var(--slate-50);
}

.container {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.content-narrow {
    max-width: 760px;
}

.center {
    text-align: center;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--white {
    background: var(--white);
}

.section--soft {
    background: var(--slate-50);
    border-block: 1px solid var(--slate-100);
}

.section--dark {
    background: var(--brand-dark);
    color: var(--white);
}

.section--primary {
    background: var(--brand-primary);
    color: var(--white);
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--brand-dark);
    color: var(--white);
}

.hero--home {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
}

.hero--page {
    padding: calc(var(--header-height) + 96px) 0 96px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 102, 255, 0.16), transparent 28%),
        linear-gradient(270deg, rgba(255, 77, 0, 0.12), transparent 32%);
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3.2rem, 8vw, 7rem);
    max-width: 760px;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero--page h1 {
    margin-inline: auto;
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.92;
}

.hero p {
    color: rgba(226, 232, 240, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    max-width: 660px;
    line-height: 1.75;
}

.hero--page p {
    margin-inline: auto;
    font-size: clamp(1.2rem, 2.4vw, 1.85rem);
}

.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

.text-primary {
    color: var(--brand-primary);
}

.text-secondary {
    color: var(--brand-secondary);
}

.text-accent {
    color: var(--brand-accent);
}

.muted {
    color: var(--slate-600);
}

.lead {
    color: var(--slate-600);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.85;
}

.space-y > * + * {
    margin-top: 24px;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--white);
    box-shadow: 0 16px 38px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
    background: #005ce6;
}

.btn-secondary {
    color: var(--brand-primary);
    border: 2px solid rgba(0, 102, 255, 0.2);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 102, 255, 0.06);
    border-color: var(--brand-primary);
}

.btn-ghost-dark {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost-dark:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    background: var(--white);
    color: var(--brand-primary);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.btn-small {
    min-height: 40px;
    padding: 10px 22px;
    font-size: 0.9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(0, 102, 255, 0.18);
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 24px;
}

.badge--dark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
}

.capkod-icon {
    flex: 0 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
}

.capkod-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    white-space: nowrap;
}

.capkod-logo__mark {
    width: auto;
    height: 100%;
}

.capkod-logo__text {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1;
}

.capkod-logo__code {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.capkod-logo__line {
    display: block;
    width: 120%;
    height: 3px;
    border-radius: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav > a:not(.btn) {
    color: var(--slate-600);
    font-size: 0.93rem;
    font-weight: 700;
    transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav > a:not(.btn):hover,
.desktop-nav > a.is-active {
    color: var(--brand-primary);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--slate-700);
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 220ms ease;
}

.mobile-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 128px 40px 48px;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.mobile-menu__links {
    display: grid;
    gap: 28px;
}

.mobile-menu__links a:not(.btn) {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 11vw, 4rem);
    font-weight: 700;
    color: var(--slate-900);
}

.mobile-menu__links a.is-active {
    color: var(--brand-primary);
}

.mobile-menu__social {
    margin-top: auto;
}

.mobile-menu__social p {
    margin-bottom: 18px;
    color: var(--slate-400);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--slate-50);
    color: var(--slate-400);
    transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--brand-primary);
    background: rgba(0, 102, 255, 0.08);
}

.social-links--dark a {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
}

.social-links--dark a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 32px;
    height: 32px;
    border: 2px solid var(--brand-primary);
    border-radius: 999px;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0);
    transition: width 160ms ease, height 160ms ease, background 160ms ease, border-color 160ms ease;
    mix-blend-mode: normal;
}

.custom-cursor.is-hovering {
    width: 72px;
    height: 72px;
    background: rgba(0, 102, 255, 0.08);
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading h2 {
    margin-bottom: 16px;
    color: var(--slate-900);
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    font-weight: 700;
}

.section-heading p {
    max-width: 720px;
    color: var(--slate-600);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.7;
}

.section-heading--light h2 {
    color: var(--white);
}

.section-heading--light p {
    color: rgba(255, 255, 255, 0.75);
}

.section-heading__bar {
    display: block;
    width: 80px;
    height: 6px;
    margin-top: 28px;
    border-radius: 999px;
    background: var(--brand-primary);
    transform-origin: left center;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 32px;
}

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

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

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

.items-center {
    align-items: center;
}

.gap-large {
    gap: 64px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.feature-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 32px;
    border-radius: 40px;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.18);
    box-shadow: 0 26px 60px rgba(0, 102, 255, 0.1);
}

.feature-card__icon,
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--brand-primary);
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.feature-card:hover .feature-card__icon {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.04);
}

.feature-card h3 {
    color: var(--slate-900);
    font-size: 1.55rem;
}

.feature-card p {
    color: var(--slate-600);
    line-height: 1.75;
}

.image-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.image-stack__column {
    display: grid;
    gap: 16px;
}

.image-stack__column:first-child {
    padding-top: 48px;
}

.rounded-img {
    width: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
}

.img-tall {
    height: 256px;
}

.img-short {
    height: 192px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin-top: 40px;
}

.stat-value {
    display: block;
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value--secondary {
    color: var(--brand-secondary);
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--slate-500);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    display: block;
    perspective: 1000px;
}

.hero-visual__image {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 48px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    animation: capkodFloat 8s ease-in-out infinite;
}

.hero-visual__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-visual__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 26, 77, 0.82), transparent 58%);
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
    color: var(--white);
    background: rgba(0, 26, 77, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
}

.floating-card--top {
    top: -40px;
    right: -36px;
    animation: capkodFloatSmall 5s ease-in-out infinite;
}

.floating-card--bottom {
    bottom: -32px;
    left: -28px;
    animation: capkodFloatSmall 6s ease-in-out 1s infinite;
}

.floating-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-secondary);
    box-shadow: 0 15px 30px rgba(255, 77, 0, 0.28);
}

.floating-card strong {
    display: block;
    line-height: 1.1;
}

.floating-card small {
    color: var(--brand-secondary);
    font-weight: 700;
}

.avatar-row {
    display: flex;
    margin-right: 4px;
}

.avatar-row img {
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border: 2px solid var(--brand-dark);
    border-radius: 999px;
    object-fit: cover;
}

.avatar-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border: 2px solid var(--brand-dark);
    border-radius: 999px;
    background: var(--white);
    color: var(--brand-primary);
    font-size: 0.68rem;
    font-weight: 800;
}

.avatar-row img:first-child,
.avatar-row span:first-child {
    margin-left: 0;
}

.check-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.check-list li,
.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
}

.check-list {
    padding: 0;
    list-style: none;
}

.check-list .check-icon,
.achievement-item .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--brand-secondary);
    flex: 0 0 auto;
}

.quote-card {
    padding: 40px;
    border-radius: 48px;
}

.quote-card--dark {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.quote-author img {
    width: 64px;
    height: 64px;
    border: 2px solid var(--brand-primary);
    border-radius: 20px;
    object-fit: cover;
}

.quote-author strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.quote-author span {
    color: rgba(255, 255, 255, 0.62);
}

.quote-card blockquote {
    margin: 0 0 28px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-style: italic;
    line-height: 1.45;
}

.highlight-panel {
    padding: 40px;
    border-radius: 48px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 240px;
    gap: 24px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0, 102, 255, 0.12);
}

.gallery-card--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-card--wide {
    grid-column: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18), transparent);
    opacity: 0;
    transition: opacity 260ms ease;
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card h3 {
    font-size: 1.5rem;
}

.gallery-card span {
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--brand-primary);
}

.split-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.mission-card {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    padding: clamp(40px, 6vw, 80px);
    border-radius: 64px;
    color: var(--white);
}

.mission-card--primary {
    background: var(--brand-primary);
}

.mission-card--dark {
    background: var(--brand-dark);
}

.mission-card::after {
    content: "";
    position: absolute;
    inset: auto -48px -72px auto;
    width: 280px;
    height: 280px;
    border: 34px solid rgba(255, 255, 255, 0.12);
    border-radius: 60px;
    transform: rotate(18deg);
}

.mission-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.mission-card p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    line-height: 1.58;
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 80px);
    border-radius: 64px;
    text-align: center;
    color: var(--white);
    background: var(--brand-primary);
}

.cta-card--dark {
    background: var(--brand-dark);
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 10% 10%, #fff 1px, transparent 1px);
    background-size: 30px 30px;
}

.cta-card > * {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.cta-card p {
    max-width: 780px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    line-height: 1.7;
}

.initiative-list {
    display: grid;
    gap: 32px;
}

.initiative-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 48px;
    background: var(--white);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.initiative-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-md);
}

.initiative-card__image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
}

.initiative-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms ease;
}

.initiative-card:hover img {
    transform: scale(1.08);
}

.initiative-card h3 {
    display: inline-block;
    position: relative;
    margin-bottom: 18px;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.initiative-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 102, 255, 0.25);
}

.initiative-card p {
    color: var(--slate-600);
    font-size: 1.05rem;
    line-height: 1.8;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mini-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px;
    border-radius: 28px;
    color: inherit;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    backdrop-filter: blur(16px);
}

.simple-card {
    padding: 36px;
    border-radius: 44px;
    background: var(--white);
    border: 1px solid var(--slate-200);
}

.simple-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.45rem;
}

.simple-card p {
    color: var(--slate-600);
    line-height: 1.75;
}

.team-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 56px;
    background: var(--white);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 70px rgba(0, 102, 255, 0.1);
}

.team-card__photo {
    position: relative;
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
    color: rgba(100, 116, 139, 0.26);
    border-bottom: 1px solid var(--slate-100);
}

.team-card__photo-content {
    text-align: center;
    transition: transform 260ms ease, color 260ms ease;
}

.team-card:hover .team-card__photo-content {
    transform: scale(1.1) rotate(3deg);
    color: rgba(0, 102, 255, 0.45);
}

.team-card__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin-inline: auto;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(255, 77, 0, 0.1));
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.12);
}

.team-card__photo p {
    margin-top: 12px;
    color: var(--slate-400);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.team-card__body {
    flex: 1;
    padding: 40px;
}

.team-card h3 {
    margin-bottom: 8px;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    transition: color 180ms ease;
}

.team-card:hover h3 {
    color: var(--brand-primary);
}

.team-card__role {
    display: block;
    margin-bottom: 24px;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-card p {
    color: var(--slate-600);
    line-height: 1.75;
}

.contact-form,
.join-form {
    padding: clamp(32px, 5vw, 48px);
    border-radius: 48px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    margin-left: 4px;
    color: var(--slate-700);
    font-size: 0.88rem;
    font-weight: 800;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 18px;
    background: var(--slate-100);
    color: var(--slate-900);
    padding: 16px 18px;
    transition: box-shadow 160ms ease, background 160ms ease;
}

.field select {
    appearance: none;
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--slate-500) 50%),
        linear-gradient(135deg, var(--slate-500) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field textarea {
    resize: vertical;
    min-height: 132px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.22);
}

.form-note {
    color: var(--slate-400);
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.form-alert--success {
    background: rgba(0, 102, 255, 0.08);
    color: var(--brand-primary);
    border: 1px solid rgba(0, 102, 255, 0.18);
}

.form-alert--error {
    background: rgba(255, 77, 0, 0.08);
    color: var(--brand-secondary);
    border: 1px solid rgba(255, 77, 0, 0.2);
}

.form-success {
    display: none;
    padding: 32px;
    border-radius: 32px;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    text-align: center;
}

.form-success.is-visible {
    display: block;
}

.form-success .icon-box {
    margin: 0 auto 20px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-line .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.contact-line small {
    display: block;
    margin-bottom: 4px;
    color: var(--slate-400);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-line strong {
    color: var(--slate-900);
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.support-image-card {
    position: relative;
}

.support-image-card__frame {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 48px;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
}

.support-image-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.support-image-card__note {
    position: absolute;
    bottom: -24px;
    left: -24px;
    padding: 22px;
    border-radius: 22px;
}

.testimonial-soft {
    padding: clamp(40px, 6vw, 80px);
    border-radius: 64px;
    background: var(--slate-50);
    text-align: center;
}

.testimonial-soft .icon-box {
    margin-inline: auto;
    margin-bottom: 28px;
}

.testimonial-soft h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.testimonial-soft p {
    max-width: 780px;
    margin-inline: auto;
    color: var(--slate-600);
    font-size: 1.18rem;
    line-height: 1.75;
}

.site-footer {
    background: var(--brand-dark);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(220px, 1fr);
    gap: 56px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
    max-width: 420px;
    margin: 24px 0 32px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.75;
}

.site-footer h4 {
    margin-bottom: 22px;
    font-size: 1.12rem;
}

.site-footer ul {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, 0.62);
}

.site-footer a:hover {
    color: var(--brand-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact svg {
    color: var(--brand-primary);
}

.footer-bottom {
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.88rem;
    text-align: center;
}

.entry-card {
    padding: 32px 0;
    border-bottom: 1px solid var(--slate-100);
}

.entry-content {
    color: var(--slate-600);
}

.page-content {
    padding-top: calc(var(--header-height) + 72px);
}

.error-page {
    min-height: 72vh;
    padding-top: calc(var(--header-height) + 120px);
}

.error-page h1 {
    margin: 16px 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.error-page p {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.delay-4 {
    transition-delay: 400ms;
}

@keyframes capkodFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

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

@keyframes capkodPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.08);
    }
}

.pulse {
    animation: capkodPulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .custom-cursor {
        display: none;
    }
}

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

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

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

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

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .grid-2,
    .split-panel,
    .initiative-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gap-large {
        gap: 40px;
    }

    .support-image-card__note {
        display: none;
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 72px;
    }

    .admin-bar .site-header {
        top: 46px;
    }

    .container {
        width: min(100% - 32px, 1280px);
    }

    .section {
        padding: 72px 0;
    }

    .hero--home {
        min-height: auto;
        padding: calc(var(--header-height) + 72px) 0 80px;
    }

    .hero--page {
        padding: calc(var(--header-height) + 72px) 0 72px;
    }

    .hero h1,
    .hero--page h1 {
        font-size: clamp(3rem, 15vw, 4.3rem);
    }

    .hero-actions,
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .grid-3,
    .grid-4,
    .gallery-grid,
    .form-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card,
    .gallery-card--large,
    .gallery-card--wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .image-stack {
        gap: 12px;
    }

    .image-stack__column:first-child {
        padding-top: 28px;
    }

    .img-tall {
        height: 210px;
    }

    .img-short {
        height: 160px;
    }

    .feature-card,
    .simple-card,
    .team-card__body,
    .contact-form,
    .join-form,
    .quote-card,
    .highlight-panel {
        padding: 28px;
        border-radius: 32px;
    }

    .mission-card,
    .cta-card,
    .testimonial-soft {
        border-radius: 38px;
    }

    .capkod-logo__text {
        font-size: 1.15rem;
    }

    .mobile-menu {
        padding-inline: 28px;
    }

    .custom-cursor {
        display: none;
    }
}
