/* ==========================================================================
   le-wo.pl — main.css
   Nowoczesny, editorial style z kolorystyką oznaczeń dostępności
   ========================================================================== */

/* --- 1. TOKENS / CSS VARIABLES --- */
:root {
    /* Kolory oznaczeń dostępności */
    --isa-blue: #005EB8;        /* International Symbol of Access */
    --isa-blue-dark: #003F7F;
    --isa-blue-light: #4A90D9;

    --deaf-purple: #6B3FA0;     /* Kultura Głuchych */
    --deaf-purple-light: #9B6DD1;

    --low-vision-green: #2E7D32; /* Nisko-wzrokowcy */
    --low-vision-green-light: #5CAD5C;

    --neuro-yellow: #F4B400;     /* Neuroróżnorodność (infinity symbol) */
    --neuro-yellow-dark: #C28A00;

    --talent-red: #C62828;       /* Czerwień / talent */
    --talent-red-dark: #8E1F1F;

    --motion-teal: #00838F;      /* Turkus / ruch / sport */
    --motion-teal-light: #4FB3BF;

    /* Neutralne */
    --ink: #0F1B2E;              /* Główny tekst */
    --ink-soft: #334155;         /* Secondary text */
    --ink-muted: #64748B;        /* Muted */
    --paper: #FAFAF7;            /* Tło główne - lekko ciepłe, nie czyste białe */
    --paper-alt: #F2F0E9;        /* Warm off-white */
    --cream: #FFF8E7;            /* Ciepły akcent */
    --line: rgba(15, 27, 46, 0.10);
    --line-soft: rgba(15, 27, 46, 0.06);

    /* Typografia */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 27, 46, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 27, 46, 0.08);
    --shadow-lg: 0 25px 60px rgba(15, 27, 46, 0.12);

    /* Container */
    --container-max: 1280px;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, li, dd {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--isa-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--isa-blue-dark);
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--neuro-yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
}

h1 em, h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--isa-blue);
    font-variation-settings: "opsz" 144;
}

strong {
    font-weight: 700;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 12px 20px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    color: white;
}

/* --- 3. LAYOUT --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Prevent grid/flex children from overflowing their container */
.hero-inner > *,
.about-grid > *,
.mission-inner > *,
.engage-card > *,
.contact-grid > *,
.footer-inner > * {
    min-width: 0;
}

.section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    position: relative;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--isa-blue);
    margin-bottom: var(--space-sm);
}

.section-label.light {
    color: var(--neuro-yellow);
}

.section-head {
    max-width: 900px;
    margin-bottom: var(--space-xl);
}

.section-head h2,
.about-head h2,
.mission-left h2,
.engage-text h2,
.contact-info h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* --- 4. HEADER / NAV --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    display: inline-flex;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--neuro-yellow);
}

.logo-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--isa-blue);
    transition: width 0.3s ease;
}

.nav-list a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-list a:not(.nav-cta):hover {
    color: var(--isa-blue);
}

.nav-cta {
    padding: 0.6rem 1.2rem !important;
    background: var(--ink);
    color: white !important;
    border-radius: 100px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--isa-blue);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- 5. HERO --- */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 8rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--isa-blue);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--neuro-yellow);
    top: 40%;
    right: -100px;
    opacity: 0.35;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--deaf-purple);
    bottom: -150px;
    left: 30%;
    opacity: 0.25;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 94, 184, 0.08);
    color: var(--isa-blue-dark);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(0, 94, 184, 0.15);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--isa-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(0, 94, 184, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.hero-title em {
    display: inline;
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.highlight::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 2px;
    height: 40%;
    background: linear-gradient(90deg, var(--neuro-yellow), var(--neuro-yellow-dark));
    z-index: -1;
    transform: skew(-2deg);
    border-radius: 2px;
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: var(--space-lg);
    max-width: min(58ch, 100%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--space-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn-large {
    padding: 1.1rem 1.8rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--ink);
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--isa-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary svg {
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink) !important;
    border: 1.5px solid var(--ink);
    text-decoration: none;
}

.btn-ghost:hover {
    background: var(--ink);
    color: white !important;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.stat dt {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}

.stat dd {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

/* Hero visual */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-self: stretch;
}

.visual-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    aspect-ratio: 1;
    color: white;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md);
}

.visual-card:hover {
    transform: translateY(-6px) rotate(-1deg);
}

.visual-card svg {
    width: 40%;
    height: auto;
}

.visual-card span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-blue { background: var(--isa-blue); }
.card-yellow {
    background: var(--neuro-yellow);
    color: var(--ink);
}
.card-green { background: var(--low-vision-green); transform: translateY(2rem); }
.card-green:hover { transform: translateY(2rem) translateY(-6px) rotate(-1deg); }
.card-purple { background: var(--deaf-purple); transform: translateY(-1rem); }
.card-purple:hover { transform: translateY(-1rem) translateY(-6px) rotate(-1deg); }

/* --- 6. MARQUEE --- */
.marquee {
    background: var(--ink);
    color: var(--paper);
    padding: 1.5rem 0;
    overflow: hidden;
    border-top: 3px solid var(--neuro-yellow);
    border-bottom: 3px solid var(--neuro-yellow);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    animation: scroll 40s linear infinite;
    width: max-content;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    white-space: nowrap;
}

.marquee-track span:nth-child(even) {
    color: var(--neuro-yellow);
    font-style: normal;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 7. ABOUT --- */
.about {
    background: var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
}

.about-head {
    position: sticky;
    top: 120px;
    align-self: start;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.about-pillars {
    display: grid;
    gap: var(--space-md);
}

.pillar {
    padding: var(--space-md);
    border-left: 3px solid var(--isa-blue);
    padding-left: var(--space-md);
    background: var(--paper-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pillar:hover {
    transform: translateX(4px);
    background: var(--cream);
}

.pillar:nth-child(2) { border-color: var(--deaf-purple); }
.pillar:nth-child(3) { border-color: var(--neuro-yellow-dark); }

.pillar-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.pillar h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.pillar p {
    color: var(--ink-soft);
    line-height: 1.6;
}

/* --- 8. AREAS --- */
.areas {
    background: var(--paper-alt);
    position: relative;
}

.areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--paper), transparent);
    pointer-events: none;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.area-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.area-card:hover::before {
    transform: scaleX(1);
}

.area-blue { color: var(--isa-blue); }
.area-purple { color: var(--deaf-purple); }
.area-green { color: var(--low-vision-green); }
.area-yellow { color: var(--neuro-yellow-dark); }
.area-red { color: var(--talent-red); }
.area-teal { color: var(--motion-teal); }

.area-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    display: grid;
    place-items: center;
    background: currentColor;
    border-radius: var(--radius-md);
    padding: 12px;
}

.area-icon svg {
    color: white;
    width: 100%;
    height: 100%;
}

.area-yellow .area-icon svg { color: var(--ink); }

.area-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
    background: transparent;
    border: 1.5px solid currentColor;
    color: currentColor;
}

.area-card h3 {
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.area-card p {
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.98rem;
}

/* --- 9. MISSION --- */
.mission {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--isa-blue) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.mission::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--deaf-purple) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.mission-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.mission-left h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.mission-left h2 em {
    color: var(--neuro-yellow);
}

.mission-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.95);
    padding-left: var(--space-md);
    border-left: 3px solid var(--neuro-yellow);
}

.mission-quote strong {
    color: white;
    font-style: normal;
}

.mission-desc {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 50ch;
}

.mission-right {
    display: grid;
    gap: var(--space-md);
}

.principle {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.principle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neuro-yellow);
}

.principle-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--neuro-yellow);
    margin-bottom: 0.6rem;
}

.principle h3 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.4rem;
}

.principle p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* --- 10. ENGAGE --- */
.engage {
    background: var(--paper);
}

.engage-card {
    background: linear-gradient(135deg, var(--isa-blue) 0%, var(--deaf-purple) 100%);
    color: white;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.engage-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--neuro-yellow) 0%, transparent 70%);
    opacity: 0.3;
}

.engage-text {
    position: relative;
    z-index: 1;
}

.engage-text .section-label {
    color: var(--neuro-yellow);
}

.engage-text h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.engage-text h2 em {
    color: var(--neuro-yellow);
}

.engage-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 55ch;
}

.engage-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.engage-actions .btn-primary {
    background: white;
    color: var(--ink) !important;
}

.engage-actions .btn-primary:hover {
    background: var(--neuro-yellow);
    color: var(--ink) !important;
}

.engage-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --- 11. CONTACT --- */
.contact {
    background: var(--paper-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-xl);
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-info .section-label {
    color: var(--talent-red);
}

.contact-intro {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.contact-mail {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    margin-bottom: var(--space-lg);
}

.contact-mail:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--isa-blue);
    color: var(--isa-blue);
}

.contact-mail .mail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}

.contact-mail .mail-address {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    flex: 1;
}

.contact-mail svg {
    flex-shrink: 0;
    color: var(--isa-blue);
    transition: transform 0.2s ease;
}

.contact-mail:hover svg {
    transform: translate(3px, -3px);
}

.contact-meta {
    display: grid;
    gap: 1rem;
}

.contact-meta > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.contact-meta > div:last-child {
    border-bottom: none;
}

.contact-meta dt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.contact-meta dd {
    color: var(--ink);
    font-weight: 500;
}

.contact-aside {
    background: var(--ink);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    align-self: start;
}

.contact-aside h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.a11y-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.a11y-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.a11y-list li:last-child {
    border-bottom: none;
}

.a11y-list li span {
    color: var(--neuro-yellow);
    font-weight: 700;
    flex-shrink: 0;
}

.a11y-list code {
    font-family: 'SF Mono', Monaco, monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.a11y-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.a11y-note a {
    color: var(--neuro-yellow);
    font-weight: 600;
}

/* --- 12. FOOTER --- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-name {
    color: white;
}

.footer-brand p {
    margin-top: var(--space-sm);
    max-width: 35ch;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav h4,
.footer-contact h4,
.footer-legal h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neuro-yellow);
    margin-bottom: 1rem;
}

.footer-nav ul,
.footer-contact ul,
.footer-legal ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer-nav a,
.footer-contact a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom strong {
    color: rgba(255, 255, 255, 0.9);
}

.footer-made {
    font-style: italic;
}

/* --- 13. RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-inner,
    .about-grid,
    .mission-inner,
    .engage-card,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-head {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--line);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-list.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 0.8rem 0;
        width: 100%;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

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

    .card-green,
    .card-purple {
        transform: none;
    }

    .card-green:hover,
    .card-purple:hover {
        transform: translateY(-6px) rotate(-1deg);
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .stat dd {
        font-size: 1.4rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-meta > div {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .marquee-track {
        font-size: 1.3rem;
        gap: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo-tag {
        display: none;
    }

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        white-space: normal;
    }
}

/* --- 14. REVEAL ON SCROLL (progressive enhancement) ---
   Elements are visible by default. Only hidden when JS adds .reveal-ready */
.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

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

    .marquee-track {
        animation: none;
    }

    .reveal-ready {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- 16. PRINT --- */
@media print {
    .site-header,
    .site-footer,
    .marquee,
    .hero-bg,
    .nav-toggle,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
