/* =========================================================
   PORTFÓLIO STHEFANY
   Visual: moderno, feminino, minimalista e inclusivo
   ========================================================= */

:root {
    --font-body: "DM Sans", sans-serif;
    --font-title: "Manrope", sans-serif;

    --bg: #fbf9ff;
    --surface: #ffffff;
    --surface-soft: #f4efff;
    --text: #251b34;
    --muted: #736b7f;
    --line: rgba(70, 48, 98, 0.12);

    --primary: #6d3cc5;
    --primary-dark: #4d2796;
    --primary-light: #a982ef;
    --secondary: #ef6f9f;
    --accent: #56c5ad;
    --yellow: #f3bd56;

    --shadow-sm: 0 12px 30px rgba(72, 41, 113, 0.09);
    --shadow-md: 0 24px 70px rgba(72, 41, 113, 0.15);
    --shadow-lg: 0 36px 100px rgba(72, 41, 113, 0.22);

    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;
    --container: 1180px;
    --font-scale: 1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: calc(16px * var(--font-scale));
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(169, 130, 239, 0.10), transparent 24rem),
        radial-gradient(circle at 5% 50%, rgba(239, 111, 159, 0.08), transparent 25rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

body.high-contrast {
    --bg: #000000;
    --surface: #111111;
    --surface-soft: #1d1d1d;
    --text: #ffffff;
    --muted: #e9e9e9;
    --line: rgba(255, 255, 255, 0.28);
    --primary: #ffde59;
    --primary-dark: #ffde59;
    --primary-light: #ffffff;
    --secondary: #57e8ff;
    --accent: #6eff9e;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

::selection {
    background: rgba(109, 60, 197, 0.22);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

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

.section-heading {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.about-copy h2,
.gallery-heading h2,
.contact-copy h2,
.future-copy h2 {
    margin: 12px 0 20px;
    font-family: var(--font-title);
    font-size: clamp(2.1rem, 4.3vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.section-heading p,
.gallery-heading p,
.contact-copy p,
.future-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.section-kicker-light {
    color: rgba(255, 255, 255, 0.76);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1200;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    pointer-events: none;
}

.accessibility-panel {
    position: fixed;
    top: 50%;
    right: 16px;
    z-index: 900;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
}

.accessibility-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.accessibility-button:hover,
.accessibility-button:focus-visible {
    transform: translateX(-4px);
    background: var(--surface);
}

.high-contrast .accessibility-button {
    background: #000;
    color: #fff;
    border-color: #fff;
}





.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 13px;
    border: 0;
    border-radius: 15px;
    background: var(--surface-soft);
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-section {
    position: relative;
    min-height: 100svh;
    padding: 150px 0 80px;
    overflow: hidden;
}

.hero-section::before {
    position: absolute;
    inset: -18% auto auto -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 111, 159, 0.13), transparent 68%);
    content: "";
}

.hero-background-word {
    position: absolute;
    right: -1vw;
    bottom: 2vh;
    color: rgba(87, 55, 125, 0.035);
    font-family: var(--font-title);
    font-size: clamp(6rem, 16vw, 16rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.75;
    pointer-events: none;
    white-space: nowrap;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: calc(100svh - 230px);
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    gap: 70px;
    align-items: center;
}

.hero-copy {
    padding-bottom: 30px;
}

.eyebrow {
    display: inline-flex;
    padding: 9px 14px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(109, 60, 197, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 24px 0 24px;
    font-family: var(--font-title);
    font-size: clamp(3.4rem, 7.1vw, 6.9rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.hero-copy h1 span {
    display: block;
    background: linear-gradient(100deg, var(--primary) 5%, var(--secondary) 58%, #ed9f65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.high-contrast .hero-copy h1 span {
    color: var(--primary);
    background: none;
}

.hero-copy > p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
    display: flex;
    margin-top: 34px;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: linear-gradient(130deg, var(--primary), #8b55dd);
    color: #fff;
    box-shadow: 0 18px 38px rgba(109, 60, 197, 0.26);
}

.button-primary:hover {
    box-shadow: 0 24px 46px rgba(109, 60, 197, 0.34);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
}

.button-white {
    background: #fff;
    color: var(--primary-dark);
}

.hero-mini-profile {
    display: flex;
    max-width: 560px;
    margin-top: 36px;
    align-items: center;
    gap: 16px;
}

.mini-profile-avatars {
    display: flex;
    flex-shrink: 0;
}

.mini-profile-avatars span {
    display: grid;
    width: 38px;
    height: 38px;
    margin-left: -8px;
    place-items: center;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.mini-profile-avatars span:first-child {
    margin-left: 0;
}

.mini-profile-avatars span:nth-child(2) {
    color: var(--secondary);
}

.mini-profile-avatars span:nth-child(3) {
    color: var(--accent);
}

.hero-mini-profile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.hero-mini-profile strong {
    color: var(--text);
}

.hero-visual {
    position: relative;
    min-height: 640px;
    perspective: 1000px;
}

.hero-glow {
    position: absolute;
    inset: 12% 8% 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 45% 40%, rgba(255,255,255,0.96), rgba(217, 197, 252, 0.75) 38%, rgba(239,111,159,0.36) 70%, transparent);
    filter: blur(10px);
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(109, 60, 197, 0.18);
    border-radius: 50%;
    animation: orbitRotate 22s linear infinite;
}

.orbit-one {
    inset: 9% 0 4% 11%;
}

.orbit-two {
    inset: 18% 8% 14% 2%;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 30s;
}

.hero-photo-frame {
    position: absolute;
    inset: 5% 12% 4% 16%;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.78);
    border-radius: 48% 48% 30% 38% / 40% 37% 43% 46%;
    background: linear-gradient(145deg, #e8dcff, #f9dce7);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    animation: heroFloat 6s ease-in-out infinite;
    backdrop-filter: blur(18px);
}

.hero-photo-frame::after {
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(49, 27, 75, 0.28));
    content: "";
    pointer-events: none;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    padding: 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(109, 60, 197, 0.16), rgba(239, 111, 159, 0.12)),
        #f5f0ff;
    color: var(--primary);
    text-align: center;
}

.photo-placeholder i {
    font-size: 2rem;
}

.photo-placeholder span {
    max-width: 90%;
    font-size: 0.76rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

img.image-missing {
    opacity: 0;
}

img.image-missing + .photo-placeholder {
    display: flex;
}

.floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    max-width: 240px;
    padding: 13px 15px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    animation: cardFloat 5s ease-in-out infinite;
}

.high-contrast .floating-card {
    background: #000;
    border-color: #fff;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-family: var(--font-title);
    font-size: 0.9rem;
}

.floating-card small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.3;
}

.floating-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--primary);
}

.floating-card-age {
    top: 12%;
    left: 0;
}

.floating-card-role {
    right: 0;
    bottom: 16%;
    animation-delay: -1.4s;
}

.floating-card-study {
    left: 2%;
    bottom: 7%;
    animation-delay: -2.5s;
}

.hero-badge {
    position: absolute;
    top: 2%;
    right: 2%;
    z-index: 4;
    display: inline-flex;
    padding: 11px 15px;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    transform: rotate(4deg);
}

.hero-badge i {
    color: #ff8db6;
}

.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.scroll-hint i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    animation: scrollBounce 1.8s ease-in-out infinite;
}

.intro-strip {
    position: relative;
    z-index: 4;
    padding: 0 0 28px;
}

.intro-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 0.55fr)) minmax(300px, 1.35fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.intro-stat,
.intro-message {
    min-height: 132px;
    padding: 28px;
}

.intro-stat {
    display: grid;
    place-content: center;
    border-right: 1px solid var(--line);
    text-align: center;
}

.intro-stat strong {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 2.4rem;
    line-height: 1;
}

.intro-stat span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.intro-message {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(109, 60, 197, 0.06), rgba(239, 111, 159, 0.08));
}

.intro-message i {
    color: var(--secondary);
    font-size: 2.2rem;
}

.intro-message p {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.about-section {
    overflow: hidden;
}

.about-section::after {
    position: absolute;
    right: -150px;
    bottom: 20px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(86,197,173,0.14), transparent 68%);
    content: "";
}

.about-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
    gap: 90px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-photo-wrap {
    position: relative;
    aspect-ratio: 0.82;
    overflow: hidden;
    border-radius: 42% 42% 28% 28% / 33% 35% 28% 32%;
    background: var(--surface-soft);
    box-shadow: var(--shadow-lg);
}

.about-photo-wrap::before {
    position: absolute;
    inset: 18px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.about-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-sticker {
    position: absolute;
    right: -28px;
    bottom: 14%;
    z-index: 3;
    display: flex;
    max-width: 220px;
    padding: 15px 18px;
    align-items: center;
    gap: 11px;
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    transform: rotate(-4deg);
}

.about-sticker i {
    color: var(--secondary);
    font-size: 1.35rem;
}

.about-copy {
    max-width: 680px;
}

.about-lead {
    color: var(--text) !important;
    font-family: var(--font-title);
    font-size: 1.22rem !important;
    font-weight: 700;
    line-height: 1.5;
}

.about-copy p {
    color: var(--muted);
    font-size: 1.02rem;
}

.about-signature {
    display: flex;
    margin-top: 30px;
    padding-top: 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
}

.about-signature span {
    color: var(--muted);
    font-size: 0.86rem;
}

.about-signature strong {
    color: var(--primary);
    font-family: cursive;
    font-size: 2rem;
    font-weight: 500;
    transform: rotate(-5deg);
}

.timeline-section {
    background:
        linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
        radial-gradient(circle at 15% 10%, rgba(109,60,197,0.10), transparent 28rem),
        radial-gradient(circle at 90% 60%, rgba(239,111,159,0.09), transparent 30rem);
}

.high-contrast .timeline-section {
    background: #000;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 90px auto 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(109, 60, 197, 0.12);
    transform: translateX(-50%);
}

.timeline-line span {
    display: block;
    width: 100%;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(var(--primary), var(--secondary), var(--accent));
}

.timeline-item {
    position: relative;
    display: grid;
    width: 50%;
    min-height: 340px;
    padding: 0 58px 70px 0;
    align-items: start;
}

.timeline-item:nth-of-type(even) {
    margin-left: 50%;
    padding: 0 0 70px 58px;
}

.timeline-marker {
    position: absolute;
    top: 28px;
    right: -25px;
    z-index: 5;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 7px solid var(--bg);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(109, 60, 197, 0.23);
}

.timeline-item:nth-of-type(even) .timeline-marker {
    right: auto;
    left: -25px;
}

.timeline-marker span {
    font-size: 0.72rem;
    font-weight: 800;
}

.timeline-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255,255,255,0.84);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.high-contrast .timeline-card {
    background: #111;
}

.timeline-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-soft);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.05);
}

.timeline-content {
    padding: 24px;
}

.timeline-period {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-title-row {
    display: flex;
    margin: 10px 0 12px;
    align-items: center;
    gap: 10px;
}

.timeline-title-row h3 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.28rem;
    letter-spacing: -0.025em;
}

.timeline-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--primary);
}

.timeline-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.timeline-highlight {
    display: inline-flex;
    margin-top: 18px;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 800;
}

.timeline-highlight i {
    color: var(--accent);
}

.timeline-item-featured .timeline-card {
    border-color: rgba(239, 111, 159, 0.32);
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 24px 65px rgba(109, 60, 197, 0.18);
}

.timeline-item-featured .timeline-marker {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}


.timeline-item-wide {
    width: 100%;
    padding: 18px 74px 100px;
}

.timeline-item-wide .timeline-marker {
    top: -8px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item-wide .timeline-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(109,60,197,0.55), rgba(239,111,159,0.45), rgba(86,197,173,0.4)) border-box;
    box-shadow: var(--shadow-md);
}

.timeline-item-wide .timeline-image {
    min-height: 100%;
    aspect-ratio: auto;
}

.timeline-item-wide .timeline-content {
    padding: 34px;
}

.timeline-year-list {
    display: grid;
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.timeline-year {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.timeline-year-heading {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.timeline-year-heading strong {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.32rem;
}

.timeline-year-heading span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--secondary);
    font-size: 0.66rem;
    font-weight: 800;
}

.timeline-year h4 {
    margin: 0 0 9px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    line-height: 1.3;
}

.timeline-year p {
    font-size: 0.76rem;
    line-height: 1.55;
}

.timeline-conclusion {
    margin-top: 22px !important;
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(109,60,197,0.08), transparent);
    color: var(--text) !important;
    font-size: 0.82rem !important;
}

.causes-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 20rem),
        linear-gradient(135deg, #29183f 0%, #4e267d 55%, #743a93 100%);
    color: #fff;
}

.causes-section .section-heading p {
    color: rgba(255, 255, 255, 0.7);
}

.causes-shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
}

.causes-shape-one {
    top: -200px;
    right: -80px;
    width: 500px;
    height: 500px;
}

.causes-shape-two {
    bottom: -260px;
    left: -160px;
    width: 620px;
    height: 620px;
}

.causes-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cause-card {
    position: relative;
    min-height: 330px;
    padding: 30px 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 25px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
    transition: transform 0.35s ease, background 0.35s ease;
    transition-delay: var(--delay, 0s);
}

.cause-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-8px);
}

.cause-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(255,255,255,0.18);
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
}

.cause-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 42px;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.4rem;
}

.cause-card h3 {
    margin: 0 0 12px;
    font-family: var(--font-title);
    font-size: 1.35rem;
}

.cause-card p {
    margin: 0;
    color: rgba(255,255,255,0.67);
    font-size: 0.88rem;
}

.cause-line {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c59eff, #ff91b9, #79e6ca);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.cause-card:hover .cause-line {
    transform: scaleX(1);
}

.inclusion-manifesto {
    position: relative;
    z-index: 2;
    display: grid;
    margin-top: 30px;
    padding: 35px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 26px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 28px;
    background: rgba(255,255,255,0.08);
}

.manifesto-icon {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 24px;
    background: #fff;
    color: var(--primary);
    font-size: 2rem;
}

.inclusion-manifesto span {
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.inclusion-manifesto h3 {
    max-width: 850px;
    margin: 5px 0 0;
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.35;
}

.actions-section {
    overflow: hidden;
}

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

.action-feature {
    display: grid;
    grid-column: 1 / -1;
    min-height: 480px;
    grid-template-columns: 1.12fr 0.88fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.action-feature-image {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--surface-soft);
}

.action-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(37,27,52,0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.action-feature-content {
    display: flex;
    padding: 50px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.action-feature-content h3 {
    margin: 12px 0 16px;
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.action-feature-content p {
    margin: 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    margin-top: 28px;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
}

.action-card {
    position: relative;
    min-height: 270px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card::after {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,60,197,0.12), transparent 70%);
    content: "";
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.action-card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 36px;
    place-items: center;
    border-radius: 17px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 1.25rem;
}

.action-card-category {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.action-card h3 {
    margin: 8px 0 10px;
    font-family: var(--font-title);
    font-size: 1.34rem;
}

.action-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.gallery-section {
    background: #f2edf8;
}

.high-contrast .gallery-section {
    background: #111;
}

.gallery-heading {
    display: grid;
    margin-bottom: 42px;
    grid-template-columns: 1fr minmax(280px, 0.7fr);
    align-items: end;
    gap: 60px;
}

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

.gallery-item {
    position: relative;
    min-height: 210px;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-sm);
}

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

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

.gallery-tall {
    grid-row: span 2;
}

.gallery-item img,
.gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item img {
    transition: transform 0.55s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-video {
    background: #1d1327;
}

.gallery-video video {
    display: block;
    background: #1d1327;
}

.gallery-item figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    padding: 13px 15px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    background: rgba(31,20,46,0.58);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.gallery-video figcaption {
    top: 16px;
    bottom: auto;
    pointer-events: none;
}

.gallery-video figcaption > span {
    display: grid;
    gap: 2px;
}

.gallery-video figcaption strong {
    font-family: var(--font-title);
    font-size: 0.82rem;
}

.gallery-video figcaption small {
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    font-weight: 600;
}

.gallery-video figcaption > i {
    flex-shrink: 0;
    font-size: 1.45rem;
}

.gallery-extra {
    display: none;
}

.gallery-grid.show-all .gallery-extra {
    display: block;
}

.gallery-more-wrap {
    display: flex;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.gallery-more-button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-more-button:hover,
.gallery-more-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-more-wrap small {
    color: var(--muted);
    font-size: 0.72rem;
}

.future-section {
    padding: 100px 0;
    background: var(--bg);
}

.future-shell {
    position: relative;
    display: grid;
    min-height: 490px;
    padding: 70px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    overflow: hidden;
    border-radius: 42px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 18rem),
        linear-gradient(135deg, #37204e, #6d3cc5 54%, #c45c91);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.future-shell::before {
    position: absolute;
    top: -240px;
    right: -190px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    content: "";
}

.future-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.future-copy p {
    max-width: 610px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.72);
}

.future-visual {
    position: relative;
    display: grid;
    min-height: 300px;
    place-items: center;
}

.future-orb {
    position: relative;
    display: grid;
    width: 260px;
    height: 260px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    animation: heroFloat 6s ease-in-out infinite;
}

.future-orb::before,
.future-orb::after {
    position: absolute;
    border: 1px dashed rgba(255,255,255,0.22);
    border-radius: 50%;
    content: "";
}

.future-orb::before {
    inset: -36px;
}

.future-orb::after {
    inset: -75px;
}

.future-orb strong {
    font-family: var(--font-title);
    font-size: 6rem;
}

.future-icon {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 17px;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.future-icon-one {
    top: 0;
    left: 12px;
}

.future-icon-two {
    top: 38%;
    right: -28px;
    color: var(--secondary);
}

.future-icon-three {
    bottom: -10px;
    left: 24%;
    color: var(--accent);
}

.contact-section {
    padding-top: 70px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 90px;
    align-items: center;
}

.contact-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.contact-avatar {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
}

.contact-card > div:nth-child(2) > span {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-card h3 {
    margin: 6px 0 24px;
    font-family: var(--font-title);
    font-size: 1.45rem;
    line-height: 1.3;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-links a {
    display: flex;
    min-height: 52px;
    padding: 0 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-soft);
    font-size: 0.86rem;
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-links a:hover {
    border-color: rgba(109,60,197,0.35);
    transform: translateX(5px);
}

.contact-links i {
    color: var(--primary);
    font-size: 1.05rem;
}

.contact-card small {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.72rem;
}

.site-footer {
    padding: 28px 0 38px;
}

.footer-grid {
    display: flex;
    min-height: 90px;
    padding: 20px 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
}

.brand-footer .brand-symbol {
    width: 40px;
    height: 40px;
}

.footer-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.75,.2,1);
}

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

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

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

@keyframes orbitRotate {
    to { transform: rotate(360deg); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 0.84fr;
        gap: 36px;
    }

    .hero-visual {
        min-height: 560px;
    }

    .floating-card-age {
        left: -30px;
    }

    .floating-card-role {
        right: -20px;
    }

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

    .cause-card {
        min-height: 260px;
    }

    .action-feature-content {
        padding: 38px;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 90px 0;
    }

    .accessibility-panel {
        top: auto;
        right: 12px;
        bottom: 12px;
        display: flex;
        transform: none;
    }

    .accessibility-button:hover {
        transform: translateY(-3px);
    }

    .menu-toggle {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 94px;
        right: 16px;
        left: 16px;
        display: grid;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255,255,255,0.96);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        backdrop-filter: blur(18px);
    }

    .high-contrast .main-menu {
        background: #000;
    }

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

    .main-menu a {
        padding: 14px;
    }

    .main-menu .menu-contact {
        margin-left: 0;
        text-align: center;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-section {
        min-height: auto;
        padding-top: 135px;
    }

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

    .hero-copy {
        text-align: center;
    }

    .hero-copy > p,
    .hero-mini-profile {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: min(100%, 620px);
        min-height: 610px;
        margin-inline: auto;
    }

    .hero-photo-frame {
        inset: 5% 15% 5% 15%;
    }

    .scroll-hint {
        display: none;
    }

    .intro-strip {
        padding-top: 30px;
    }

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

    .intro-message {
        grid-column: 1 / -1;
    }

    .intro-stat:nth-child(3) {
        border-right: 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-visual {
        width: min(100%, 520px);
        margin-inline: auto;
    }

    .about-copy {
        max-width: none;
    }

    .timeline-line {
        left: 24px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-of-type(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 48px 72px;
    }

    .timeline-marker,
    .timeline-item:nth-of-type(even) .timeline-marker {
        top: 28px;
        right: auto;
        left: 0;
    }


    .timeline-item-wide {
        width: 100%;
        padding: 0 0 48px 72px;
    }

    .timeline-item-wide .timeline-marker {
        top: 28px;
        right: auto;
        left: 0;
        transform: none;
    }

    .timeline-item-wide .timeline-card {
        grid-template-columns: 1fr;
    }

    .timeline-item-wide .timeline-image {
        min-height: 360px;
    }

    .timeline-year-list {
        grid-template-columns: 1fr;
    }

    .action-feature {
        grid-template-columns: 1fr;
    }

    .action-feature-image {
        min-height: 360px;
    }

    .gallery-heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .future-shell {
        grid-template-columns: 1fr;
        padding: 56px 42px;
    }

    .future-visual {
        margin-top: 40px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 74px 0;
    }

    .site-header {
        padding-top: 10px;
    }

    .header-shell {
        width: calc(100% - 20px);
        min-height: 64px;
        padding: 8px 9px 8px 12px;
        border-radius: 20px;
    }


    .hero-section {
        padding: 115px 0 45px;
    }

    .hero-background-word {
        display: none;
    }

    .hero-copy h1 {
        margin-top: 20px;
        font-size: clamp(3.05rem, 15vw, 4.8rem);
    }

    .hero-copy > p {
        font-size: 0.96rem;
    }

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

    .button {
        width: 100%;
    }

    .hero-mini-profile {
        align-items: flex-start;
        text-align: left;
    }

    .hero-visual {
        min-height: 520px;
    }

    .hero-photo-frame {
        inset: 8% 9% 4%;
        border-width: 7px;
        border-radius: 45% 45% 30% 35% / 36% 36% 33% 35%;
    }

    .hero-badge {
        top: 1%;
        right: 1%;
        max-width: 190px;
        font-size: 0.64rem;
    }

    .floating-card {
        max-width: 180px;
        padding: 10px 12px;
        border-radius: 15px;
    }

    .floating-card strong {
        font-size: 0.78rem;
    }

    .floating-card small {
        font-size: 0.58rem;
    }

    .floating-icon {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
        border-radius: 11px;
    }

    .floating-card-age {
        top: 17%;
        left: -4px;
    }

    .floating-card-role {
        right: -2px;
        bottom: 14%;
    }

    .floating-card-study {
        left: 5px;
        bottom: 3%;
    }

    .intro-strip-grid {
        grid-template-columns: 1fr;
    }

    .intro-stat {
        min-height: 105px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .intro-stat:nth-child(3) {
        border-bottom: 0;
    }

    .intro-message {
        min-height: 120px;
        padding: 22px;
    }

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

    .section-heading h2,
    .about-copy h2,
    .gallery-heading h2,
    .contact-copy h2,
    .future-copy h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .about-sticker {
        right: -5px;
        bottom: 6%;
        max-width: 190px;
    }

    .about-signature {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline {
        margin-top: 55px;
    }

    .timeline-line {
        left: 18px;
    }

    .timeline-item,
    .timeline-item:nth-of-type(even) {
        padding-left: 54px;
    }


    .timeline-item-wide {
        padding-left: 54px;
    }

    .timeline-item-wide .timeline-marker {
        left: -5px;
    }

    .timeline-item-wide .timeline-image {
        min-height: 280px;
    }

    .timeline-item-wide .timeline-content {
        padding: 20px;
    }

    .timeline-marker,
    .timeline-item:nth-of-type(even) .timeline-marker {
        left: -5px;
        width: 46px;
        height: 46px;
    }

    .timeline-content {
        padding: 20px;
    }

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

    .cause-card {
        min-height: 245px;
    }

    .inclusion-manifesto {
        padding: 26px;
        grid-template-columns: 1fr;
    }

    .manifesto-icon {
        width: 68px;
        height: 68px;
    }

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

    .action-feature-image {
        min-height: 290px;
    }

    .action-feature-content {
        padding: 30px 24px 34px;
    }

    .action-card {
        min-height: 230px;
    }

    .gallery-grid {
        grid-auto-rows: 220px;
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item {
        min-height: 220px;
    }

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

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

    .gallery-tall {
        grid-row: span 2;
    }

    .gallery-video figcaption {
        right: 10px;
        top: 10px;
        left: 10px;
        padding: 10px 12px;
    }

    .future-section {
        padding: 74px 0;
    }

    .future-shell {
        min-height: 0;
        padding: 42px 24px 60px;
        border-radius: 30px;
    }

    .future-orb {
        width: 190px;
        height: 190px;
    }

    .future-orb::after {
        inset: -45px;
    }

    .future-orb strong {
        font-size: 4.5rem;
    }

    .future-icon {
        width: 45px;
        height: 45px;
        border-radius: 14px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hero-visual {
        min-height: 470px;
    }

    .floating-card {
        max-width: 160px;
    }

    .floating-card-study {
        left: 0;
    }

    .gallery-grid {
        grid-auto-rows: 300px;
        grid-template-columns: 1fr;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: auto;
    }

    .gallery-large,
    .gallery-tall {
        grid-row: auto;
    }

    .gallery-item,
    .gallery-large {
        min-height: 300px;
    }

    .gallery-video {
        min-height: 360px;
    }
}

@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;
    }
}


/* =========================================================
   TRAJETÓRIA EXPANDIDA — ONG JOVEM APRENDIZ E DIREITO
   ========================================================= */

.timeline-metrics {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.timeline-metric {
    min-height: 112px;
    padding: 18px 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(109, 60, 197, 0.07), rgba(239, 111, 159, 0.05)),
        var(--surface);
}

.timeline-metric strong,
.timeline-metric span {
    display: block;
}

.timeline-metric strong {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.timeline-metric span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
}

.timeline-milestones {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.timeline-milestone {
    display: grid;
    min-height: 150px;
    padding: 20px;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

.high-contrast .timeline-milestone {
    background: #111;
}

.timeline-milestone-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 1rem;
}

.timeline-milestone h4 {
    margin: 1px 0 7px;
    font-family: var(--font-title);
    font-size: 0.92rem;
    line-height: 1.3;
}

.timeline-milestone p {
    margin: 0;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.timeline-media-section,
.timeline-photo-reserve {
    margin-top: 28px;
    padding-top: 27px;
    border-top: 1px solid var(--line);
}

.timeline-subheading {
    max-width: 730px;
    margin-bottom: 19px;
}

.timeline-subheading > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-subheading h4 {
    margin: 7px 0 6px;
    font-family: var(--font-title);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.timeline-subheading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.timeline-media-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: 245px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.timeline-media-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.timeline-media-item.timeline-media-wide {
    grid-column: span 2;
}

.timeline-media-item.timeline-media-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.timeline-media-item img,
.timeline-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-media-item video {
    background: #17111f;
}

.timeline-media-item.timeline-media-vertical video {
    object-fit: contain;
}

.timeline-media-item::after {
    position: absolute;
    inset: 45% 0 0;
    z-index: 1;
    background: linear-gradient(transparent, rgba(27, 15, 40, 0.76));
    content: "";
    pointer-events: none;
}

.timeline-media-item figcaption {
    position: absolute;
    right: 14px;
    bottom: 13px;
    left: 14px;
    z-index: 3;
    color: #fff;
    pointer-events: none;
}

.timeline-media-item figcaption strong,
.timeline-media-item figcaption small {
    display: block;
}

.timeline-media-item figcaption strong {
    font-family: var(--font-title);
    font-size: 0.78rem;
    line-height: 1.3;
}

.timeline-media-item figcaption small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
}

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

.timeline-photo-slot {
    position: relative;
    min-height: 230px;
    margin: 0;
    overflow: hidden;
    border: 1px dashed rgba(109, 60, 197, 0.32);
    border-radius: 18px;
    background: var(--surface-soft);
}

.timeline-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-photo-slot .photo-placeholder {
    display: flex;
    background:
        radial-gradient(circle at 80% 15%, rgba(239, 111, 159, 0.13), transparent 7rem),
        linear-gradient(145deg, rgba(109, 60, 197, 0.09), rgba(255, 255, 255, 0.72));
}

.timeline-photo-slot img:not(.image-missing) + .photo-placeholder {
    display: none;
}

.timeline-photo-slot figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(37, 27, 52, 0.66);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

    .timeline-media-grid {
        grid-auto-rows: 230px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-media-item.timeline-media-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

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

@media (max-width: 680px) {
    .timeline-metric {
        min-height: 102px;
        padding: 15px 13px;
    }

    .timeline-milestones {
        grid-template-columns: 1fr;
    }

    .timeline-milestone {
        min-height: 0;
    }

    .timeline-media-grid {
        grid-auto-rows: 260px;
        grid-template-columns: 1fr;
    }

    .timeline-media-item.timeline-media-wide,
    .timeline-media-item.timeline-media-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .timeline-media-item.timeline-media-featured {
        min-height: 460px;
    }

    .timeline-photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-photo-slot {
        min-height: 210px;
    }
}

@media (max-width: 420px) {
    .timeline-metrics,
    .timeline-photo-grid {
        grid-template-columns: 1fr;
    }

    .timeline-photo-slot {
        min-height: 300px;
    }
}


/* =========================================================
   AJUSTE COMPACTO DA LINHA DO TEMPO
   ========================================================= */

.timeline-item-wide .timeline-card {
    align-items: stretch;
}

.timeline-item-wide .timeline-content {
    padding: 28px;
}

.timeline-item-wide .timeline-image {
    min-height: 360px;
    max-height: 540px;
}

.timeline-item-wide .timeline-image img {
    object-position: center;
}

.timeline-metrics {
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

.timeline-metric {
    min-height: 88px;
    padding: 14px;
}

.timeline-metric strong {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.timeline-metric span {
    margin-top: 5px;
}

.timeline-milestones {
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-milestone {
    min-height: 0;
    padding: 15px;
}

.timeline-milestone-icon {
    width: 37px;
    height: 37px;
    border-radius: 12px;
}

.timeline-milestone h4 {
    font-size: 0.86rem;
}

.timeline-milestone p {
    font-size: 0.72rem;
}

.timeline-conclusion {
    margin-top: 16px;
    padding: 14px 16px;
}

.gallery-video-vertical video {
    object-fit: contain;
}

.gallery-item figcaption > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.gallery-item figcaption strong,
.gallery-item figcaption small {
    display: block;
}

.gallery-item figcaption strong {
    font-family: var(--font-title);
    font-size: 0.78rem;
    line-height: 1.25;
}

.gallery-item figcaption small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .timeline-item-wide .timeline-image {
        min-height: 300px;
        max-height: 400px;
    }
}

@media (max-width: 680px) {
    .timeline-item-wide .timeline-content {
        padding: 21px;
    }

    .timeline-item-wide .timeline-image {
        min-height: 270px;
        max-height: 330px;
    }

    .timeline-milestones {
        grid-template-columns: 1fr;
    }

    .timeline-metric {
        min-height: 80px;
    }
}


/* =========================================================
   TOPO MINIMALISTA — ELEGANTE E RESPONSIVO
   Foto: assets/img/sthefany-header.jpeg
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 14px 0;
    transition: padding 0.25s ease;
}

.site-header.is-scrolled {
    padding: 8px 0;
}

.header-shell {
    display: flex;
    width: min(calc(100% - 28px), 1220px);
    min-height: 76px;
    margin-inline: auto;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(90, 67, 125, 0.10);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 45px rgba(55, 31, 87, 0.08);
    backdrop-filter: blur(18px);
}

.brand-minimal {
    display: inline-flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 4px 4px;
}

.brand-avatar {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 3px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(109, 60, 197, 0.14);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(109, 60, 197, 0.16), rgba(239, 111, 159, 0.16));
}

.brand-avatar img,
.brand-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.brand-avatar img {
    object-fit: cover;
    object-position: center top;
}

.brand-avatar-placeholder {
    position: absolute;
    inset: 3px;
    display: none;
    place-items: center;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.2rem;
}

.brand-avatar img.image-missing {
    display: none;
}

.brand-avatar img.image-missing + .brand-avatar-placeholder {
    display: grid;
}

.brand-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
    line-height: 1.1;
}

.brand-label {
    color: var(--primary);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-copy strong {
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-title);
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-subtitle {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-menu-minimal {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(109, 60, 197, 0.06);
    border-radius: 20px;
    background: rgba(247, 244, 252, 0.78);
}

.main-menu-minimal a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #61576d;
    font-size: 0.87rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.main-menu-minimal a:hover,
.main-menu-minimal a.active {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(72, 41, 113, 0.07);
    transform: translateY(-1px);
}

.main-menu-minimal .menu-contact {
    margin-left: 4px;
    background: #271a39;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(39, 26, 57, 0.16);
}

.main-menu-minimal .menu-contact:hover,
.main-menu-minimal .menu-contact.active {
    background: linear-gradient(135deg, var(--primary), #8853d8);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(109, 60, 197, 0.18);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    background: rgba(247, 244, 252, 0.9);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.high-contrast .header-shell,
.high-contrast .main-menu-minimal,
.high-contrast .menu-toggle {
    border-color: rgba(255,255,255,0.28);
    background: rgba(0,0,0,0.94);
}

.high-contrast .main-menu-minimal a,
.high-contrast .brand-copy strong,
.high-contrast .brand-subtitle {
    color: #fff;
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: block;
    }

    .main-menu-minimal {
        position: fixed;
        top: 86px;
        right: 10px;
        left: 10px;
        display: grid;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255,255,255,0.98);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        backdrop-filter: blur(18px);
    }

    .main-menu-minimal.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-menu-minimal a {
        justify-content: flex-start;
        min-height: 50px;
        padding-inline: 16px;
    }

    .main-menu-minimal .menu-contact {
        margin-left: 0;
        justify-content: center;
    }

    .high-contrast .main-menu-minimal {
        background: #000;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 10px;
    }

    .header-shell {
        width: calc(100% - 16px);
        min-height: 68px;
        padding: 8px;
        border-radius: 22px;
    }

    .brand-minimal {
        max-width: calc(100% - 58px);
        gap: 10px;
    }

    .brand-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .brand-avatar img,
    .brand-avatar-placeholder {
        border-radius: 12px;
    }

    .brand-copy strong {
        font-size: 0.98rem;
    }

    .brand-label {
        font-size: 0.5rem;
    }

    .brand-subtitle {
        max-width: 150px;
        font-size: 0.60rem;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .main-menu-minimal {
        top: 78px;
        right: 8px;
        left: 8px;
    }
}

@media (max-width: 380px) {
    .brand-subtitle {
        max-width: 120px;
    }
}

/* =========================================================
   CORREÇÃO FINAL — CARDS AMPLOS E RESPONSIVIDADE TOTAL
   Corrige ONG Jovem Aprendiz e Acadêmica de Direito
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.timeline,
.timeline-item,
.timeline-card,
.timeline-content,
.timeline-metrics,
.timeline-milestones,
.timeline-milestone,
.timeline-milestone > div {
    min-width: 0;
    max-width: 100%;
}

/* Os cards amplos pares herdavam margin-left: 50% da timeline comum. */
.timeline-item.timeline-item-wide,
.timeline-item.timeline-item-wide:nth-of-type(even) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 18px 74px 100px;
}

.timeline-item.timeline-item-wide .timeline-marker,
.timeline-item.timeline-item-wide:nth-of-type(even) .timeline-marker {
    top: -8px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item-wide .timeline-card {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    grid-template-columns: minmax(290px, 38%) minmax(0, 1fr);
}

.timeline-item-wide .timeline-image {
    width: 100%;
    min-width: 0;
    min-height: 500px;
    max-height: none;
    aspect-ratio: auto;
}

.timeline-item-wide .timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.timeline-item-wide .timeline-content {
    min-width: 0;
    padding: 28px;
    overflow: hidden;
}

.timeline-item-wide .timeline-content > p,
.timeline-milestone p,
.timeline-conclusion,
.timeline-metric span {
    overflow-wrap: anywhere;
}

.timeline-item-wide .timeline-title-row h3 {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

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

/* Evita que o painel de acessibilidade cubra os cards em notebooks. */
@media (max-width: 1280px) {
    .accessibility-panel {
        top: auto;
        right: 12px;
        bottom: 12px;
        display: flex;
        transform: none;
    }

    .accessibility-button:hover,
    .accessibility-button:focus-visible {
        transform: translateY(-3px);
    }
}

/* Tablets e notebooks compactos. */
@media (max-width: 1024px) {
    .timeline-item.timeline-item-wide,
    .timeline-item.timeline-item-wide:nth-of-type(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 56px 68px;
    }

    .timeline-item.timeline-item-wide .timeline-marker,
    .timeline-item.timeline-item-wide:nth-of-type(even) .timeline-marker {
        top: 28px;
        right: auto;
        left: 0;
        transform: none;
    }

    .timeline-item-wide .timeline-card {
        max-width: none;
        grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    }

    .timeline-item-wide .timeline-image {
        min-height: 480px;
    }

    .timeline-item-wide .timeline-content {
        padding: 25px;
    }

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

/* Tablets em modo retrato e celulares grandes. */
@media (max-width: 900px) {
    .timeline-item-wide .timeline-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline-item-wide .timeline-image {
        width: 100%;
        min-height: 0;
        max-height: 620px;
        aspect-ratio: 4 / 5;
    }

    .timeline-item-wide .timeline-image img {
        object-position: center top;
    }

    .timeline-item-wide .timeline-content {
        padding: 24px;
    }

    .timeline-item-wide .timeline-milestones {
        grid-template-columns: 1fr;
    }
}

/* Smartphones: usa toda a largura e posiciona o número acima do card. */
@media (max-width: 640px) {
    .timeline {
        margin-top: 48px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-item,
    .timeline-item:nth-of-type(even),
    .timeline-item.timeline-item-wide,
    .timeline-item.timeline-item-wide:nth-of-type(even) {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 0 0 42px;
    }

    .timeline-marker,
    .timeline-item:nth-of-type(even) .timeline-marker,
    .timeline-item.timeline-item-wide .timeline-marker,
    .timeline-item.timeline-item-wide:nth-of-type(even) .timeline-marker {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 42px;
        height: 42px;
        margin: 0 0 -12px 14px;
        border-width: 5px;
        transform: none;
    }

    .timeline-card,
    .timeline-item-wide .timeline-card {
        width: 100%;
        max-width: 100%;
        border-radius: 22px;
    }

    .timeline-item-wide .timeline-image {
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 5;
    }

    .timeline-item-wide .timeline-content,
    .timeline-content {
        padding: 20px;
    }

    .timeline-item-wide .timeline-title-row {
        align-items: flex-start;
    }

    .timeline-item-wide .timeline-title-row h3 {
        font-size: 1.18rem;
        line-height: 1.25;
    }

    .timeline-item-wide .timeline-period {
        font-size: 0.62rem;
        line-height: 1.45;
    }

    .timeline-item-wide .timeline-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .timeline-item-wide .timeline-metric {
        min-height: 84px;
        padding: 13px;
    }

    .timeline-item-wide .timeline-metric:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .timeline-item-wide .timeline-milestones {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-item-wide .timeline-milestone {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .timeline-conclusion {
        padding: 13px 14px;
        font-size: 0.78rem;
    }

    .accessibility-panel {
        right: 8px;
        bottom: 8px;
        gap: 5px;
    }

    .accessibility-button {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.76rem;
    }
}

@media (max-width: 390px) {
    .timeline-item-wide .timeline-content,
    .timeline-content {
        padding: 17px;
    }

    .timeline-item-wide .timeline-metrics {
        grid-template-columns: 1fr;
    }

    .timeline-item-wide .timeline-metric:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .timeline-item-wide .timeline-image {
        aspect-ratio: 3 / 4;
    }

    .brand-label {
        display: none;
    }
}


/* =========================================================
   FOOTER COMPACTO — RA SYSTEMS
   ========================================================= */

.site-footer {
    padding: 18px 0 22px;
}

.site-footer .footer-shell {
    display: grid;
    min-height: 70px;
    padding: 11px 13px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(55, 31, 87, 0.07);
    backdrop-filter: blur(16px);
}

.site-footer .footer-identity {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.site-footer .footer-avatar {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 2px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(109, 60, 197, 0.13);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(109, 60, 197, 0.15), rgba(239, 111, 159, 0.15));
}

.site-footer .footer-avatar img,
.site-footer .footer-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.site-footer .footer-avatar img {
    object-fit: cover;
    object-position: center top;
}

.site-footer .footer-avatar-placeholder {
    position: absolute;
    inset: 2px;
    display: none;
    place-items: center;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: var(--font-title);
    font-weight: 800;
}

.site-footer .footer-avatar img.image-missing {
    display: none;
}

.site-footer .footer-avatar img.image-missing + .footer-avatar-placeholder {
    display: grid;
}

.site-footer .footer-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
    line-height: 1.15;
}

.site-footer .footer-copy strong {
    overflow: hidden;
    font-family: var(--font-title);
    font-size: 0.86rem;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer .footer-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.60rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer .footer-center {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.site-footer .footer-developer {
    display: inline-flex;
    min-height: 40px;
    padding: 0 12px;
    justify-self: end;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(109, 60, 197, 0.10);
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.64rem;
    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.site-footer .footer-developer strong {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 0.70rem;
    letter-spacing: 0.03em;
}

.site-footer .footer-developer i {
    color: var(--primary);
    font-size: 0.70rem;
}

.site-footer .footer-developer:hover {
    border-color: rgba(109, 60, 197, 0.22);
    background: #fff;
    color: var(--text);
    transform: translateY(-2px);
}

.high-contrast .site-footer .footer-shell,
.high-contrast .site-footer .footer-developer {
    border-color: rgba(255, 255, 255, 0.30);
    background: #090909;
}

@media (max-width: 760px) {
    .site-footer {
        padding: 12px 0 16px;
    }

    .site-footer .footer-shell {
        min-height: 0;
        padding: 10px 11px;
        grid-template-columns: 1fr auto;
        gap: 9px;
        border-radius: 17px;
    }

    .site-footer .footer-center {
        display: none;
    }

    .site-footer .footer-developer {
        min-height: 38px;
        padding-inline: 10px;
    }

    .site-footer .footer-developer > span {
        display: none;
    }
}

@media (max-width: 430px) {
    .site-footer .footer-shell {
        display: flex;
        padding: 9px;
        align-items: center;
        justify-content: space-between;
    }

    .site-footer .footer-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
    }

    .site-footer .footer-avatar img,
    .site-footer .footer-avatar-placeholder {
        border-radius: 8px;
    }

    .site-footer .footer-copy strong {
        font-size: 0.78rem;
    }

    .site-footer .footer-copy small {
        max-width: 118px;
        font-size: 0.54rem;
    }

    .site-footer .footer-developer {
        min-height: 36px;
        padding: 0 9px;
        border-radius: 11px;
    }

    .site-footer .footer-developer strong {
        font-size: 0.62rem;
    }
}
