/* === Girlie Professional Palette === */
:root {
    --bg-primary: #FAF8F5;
    --bg-secondary: #FFF9F5;
    --bg-card: #FFFFFF;
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --accent: #E75480;
    --accent-hover: #d64570;
    --accent-soft: #F8C8DC;
    --border-card: #F8C8DC;
    --shadow-soft: rgba(231, 84, 128, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-card: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --accent: #E75480;
    --accent-soft: #4a2a35;
    --border-card: #4a2a35;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--accent-soft);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

[data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.95);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    .nav-center { order: 3; width: 100%; }
    .nav-links { gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .nav { padding: 0.6rem 0.75rem; }
    .nav-tooltip { font-size: 0.65rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; }
    .theme-toggle { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo { font-weight: 700; font-size: 1.1rem; }

.nav-center { display: flex; flex-direction: column; align-items: center; }
.nav-tooltip { font-size: 0.7rem; color: var(--accent); margin-bottom: 0.25rem; }
.nav-tooltip-btn { text-decoration: none; cursor: pointer; transition: opacity 0.2s; }
.nav-tooltip-btn:hover { opacity: 0.8; }
.hidden { display: none !important; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
}

.theme-toggle:hover { border-color: var(--accent); }

/* === Hero === */
.hero { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 5rem; }

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { padding: 2rem 1rem 3rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; }
    .cta-button { width: 100%; text-align: center; }
    .profile-card { min-width: unset; padding: 1.25rem; }
    .profile-image { width: 140px; height: 140px; }
}

.hero-label { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 0.5rem; }
.hero h1 { margin-bottom: 1rem; }
.hero-description { color: var(--text-secondary); margin-bottom: 0.75rem; font-size: 1rem; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.cta-button {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    min-height: 44px;
    box-sizing: border-box;
}
.cta-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: white;
    border: none;
    animation: ctaPulse 2.5s ease-in-out infinite;
}
.cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25); }
    50% { box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4); }
}
.cta-secondary { background: white; color: var(--text-primary); border: 2px solid #ddd; }
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .cta-secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-card); }
[data-theme="dark"] .cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-tags { margin-top: 1.5rem; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.hero-langs { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.5rem; }

.profile-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    min-width: 260px;
}

.profile-image { width: 180px; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 1rem; }
.profile-card h3 { margin-bottom: 0.25rem; }
.profile-role { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.profile-links { display: flex; gap: 1rem; justify-content: center; }
.profile-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.profile-links a:hover { text-decoration: underline; }

/* === About Card === */
.about-section { padding: 4rem 2rem; }
.about-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .about-card { padding: 1.5rem; }
    .about-section { padding: 2rem 1rem; }
}
@media (max-width: 480px) {
    .about-card { padding: 1.25rem; }
}

.about-main p, .about-competencies p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.competency-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.competency-pills .pill { margin: 0; }

/* === Slot Machine (3D casino style) === */
.slot-section { max-width: 420px; margin: 0 auto 3rem; text-align: center; padding: 0 1rem; }

@media (max-width: 480px) {
    .slot-section { max-width: 100%; padding: 0 0.75rem; }
    .slot-machine { border-width: 3px; }
    .slot-reel { width: 48px; height: 64px; font-size: 1.6rem; }
    .slot-reels-wrap { gap: 0.5rem; }
    .slot-reels { gap: 0.25rem; }
    .slot-lever-arm { width: 12px; height: 48px; }
    .slot-lever-arm::before { width: 20px; height: 20px; }
    .slot-instruction { font-size: 0.875rem; }
}
.slot-machine {
    background: linear-gradient(165deg, #FFB6C1 0%, #FF69B4 30%, #FFB6C1 70%, #e84a7a 100%);
    border: 4px solid #D4AF37;
    border-radius: 20px;
    padding: 0;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.4), inset 0 -4px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}
.slot-top {
    height: 24px;
    background: #1a1a1a;
    border-bottom: 3px solid #D4AF37;
}
.slot-body { padding: 1rem 1rem 1.25rem; }
.slot-reels-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.slot-reels { display: flex; gap: 0.4rem; }
.slot-reel {
    width: 64px;
    height: 80px;
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    border: 3px solid #D4AF37;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #FF69B4;
    -webkit-text-stroke: 1.5px #1a1a1a;
    text-stroke: 1.5px #1a1a1a;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.slot-reel.spinning { animation: reelSpin 0.4s ease-in-out infinite; }
@keyframes reelSpin {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(180deg); }
    100% { transform: rotateX(360deg); }
}
.slot-lever-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slot-lever-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.slot-lever-arm {
    display: block;
    position: relative;
    width: 14px;
    height: 56px;
    background: linear-gradient(180deg, #d4af37 0%, #b8962e 50%, #8b6914 100%);
    border-radius: 7px;
    transform-origin: top center;
    transition: transform 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.3);
}
.slot-lever-arm::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.slot-lever-btn:not(:disabled):hover .slot-lever-arm { transform: rotate(12deg); }
.slot-lever-btn.pulling .slot-lever-arm { animation: leverPull 0.5s ease-out; }
@keyframes leverPull {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
    100% { transform: rotate(0deg); }
}
.slot-result {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.slot-result.won { animation: pulse 0.5s ease; }
@keyframes pulse { 50% { transform: scale(1.1); } }
.slot-instruction { color: var(--text-secondary); margin-top: 1rem; font-size: 0.95rem; }

/* === Game Sections (Ruleta & Dados) === */
.game-section { text-align: center; }
.game-section h2 { margin-bottom: 1.5rem; }
.game-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

@media (max-width: 480px) {
    .game-card { padding: 1.5rem; margin: 0 1rem; }
    .game-btn { padding: 0.75rem 1.5rem; min-height: 44px; }
    .dado-face { font-size: 2.75rem; }
}
.game-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}
.game-btn:hover { transform: scale(1.05); }
.game-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Dados */
.dados-display { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.dado-face-wrap { min-height: 4rem; display: flex; align-items: center; justify-content: center; }
.dado-face {
    font-size: 3.5rem;
    line-height: 1;
    transition: transform 0.1s;
}
.dado-face.rolling { animation: diceShake 0.08s ease-in-out infinite; }
@keyframes diceShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-6px, -10px) rotate(-12deg); }
    50% { transform: translate(6px, 6px) rotate(8deg); }
    75% { transform: translate(-4px, 6px) rotate(-6deg); }
}
.dados-result { font-size: 1rem; font-weight: 500; color: var(--accent); margin-top: 1rem; }

/* === Cards Section === */
.cards-section { padding-top: 2rem; }
.cards-section.hidden { display: none !important; }
.cards-section.revealed { animation: fadeInUp 0.6s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.cards-subtitle { color: var(--text-secondary); margin-bottom: 2rem; text-align: center; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; gap: 1.25rem; max-width: 320px; margin-left: auto; margin-right: auto; }
    .cards-section { padding-top: 1.5rem; }
    .poker-card-face { padding: 0.75rem; }
    .card-title { font-size: 0.8rem; }
}

.poker-card-wrapper { perspective: 1000px; aspect-ratio: 2.5 / 3.5; }
.poker-card-wrapper.revealed { animation: dealIn 0.6s ease-out backwards; }
.poker-card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.poker-card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.poker-card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.poker-card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.poker-card-wrapper:nth-child(5) { animation-delay: 0.25s; }
.poker-card-wrapper:nth-child(6) { animation-delay: 0.3s; }

@keyframes dealIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.poker-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.poker-card.flipped { transform: rotateY(180deg); }
.poker-card:hover:not(.flipped) { transform: translateY(-8px) rotate(-2deg); box-shadow: 0 16px 40px var(--shadow-soft); }

.poker-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    border: 2px solid var(--border-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.poker-card-front {
    background: linear-gradient(145deg, #F9F7F2 0%, var(--accent-soft) 25%, #F9F7F2 100%);
}

.poker-card-back {
    background: linear-gradient(145deg, var(--accent-soft) 0%, #fff 50%, var(--accent-soft) 100%);
    transform: rotateY(180deg);
}

.card-corner { position: absolute; top: 8px; left: 10px; font-size: 0.9rem; font-weight: 700; color: var(--accent); }

.card-logo {
    max-width: 70%;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.card-logo-besito { max-height: 50px; }
.card-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.card-preview { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.5rem; }
.card-cta { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-top: 0.75rem; }

/* === Section === */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

@media (max-width: 600px) {
    .section { padding: 2.5rem 1rem; }
}
.experience-section { text-align: center; }
.experience-section .experience-title { margin-bottom: 1rem; }

/* === Education === */
.education-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) { .education-card { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .education-card { padding: 1.5rem 1rem; } .education-main p, .education-tech p { font-size: 0.95rem; } }

.education-main p, .education-tech p, .education-tech li { color: var(--text-secondary); margin-bottom: 0.5rem; }
.education-tech ul { padding-left: 1.5rem; }

/* === Contact === */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    text-align: center;
}

.contact-card p { color: var(--text-secondary); margin-bottom: 1rem; }
.contact-thanks { font-weight: 600; color: var(--accent); font-size: 1rem; margin-bottom: 1.25rem; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.contact-pill {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-pill:hover { background: var(--accent); color: white; }

@media (max-width: 600px) {
    .contact-card { padding: 1.5rem 1rem; }
    .contact-pills { gap: 0.75rem; }
    .contact-pill { padding: 0.75rem 1rem; font-size: 0.9rem; }
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--accent-soft);
}

@media (max-width: 600px) {
    .footer { padding: 1.5rem 1rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); font-size: 0.8rem; }
}

/* === Experience Page Layout === */
.page-header { padding: 3rem 2rem 2rem; max-width: 800px; margin: 0 auto; }
.page-header h1 { margin-bottom: 0.25rem; }
.page-header .dates { color: var(--accent); font-size: 0.95rem; }
.page-content { max-width: 800px; margin: 0 auto; padding: 0 2rem 4rem; }

@media (max-width: 600px) {
    .page-header { padding: 2rem 1rem 1.5rem; }
    .page-header h1 { font-size: 1.35rem; }
    .page-header .dates { font-size: 0.875rem; }
    .page-content { padding: 0 1rem 3rem; }
    .page-content section { margin-bottom: 1.75rem; }
    .page-content h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
    .page-content p, .page-content li { font-size: 0.95rem; }
    .metrics-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .metric-card { padding: 1rem; }
    .reference-block { padding: 1rem; font-size: 0.95rem; }
    .article-list a { display: inline-block; padding: 0.4rem 0; min-height: 44px; line-height: 1.5; }
    .back-link { padding: 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center; }
    .company-logo-small { height: 24px; }
}
.page-content section { margin-bottom: 2.5rem; }
.page-content h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.page-content p, .page-content li { color: var(--text-secondary); margin-bottom: 0.75rem; }
.page-content ul { padding-left: 1.5rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.metric-card {
    background: var(--accent-soft);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.metric-value { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.metric-label { font-size: 0.8rem; color: var(--text-secondary); }
.metric-sub { font-size: 0.75rem; color: var(--text-secondary); opacity: 0.8; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); text-decoration: none; font-weight: 600; margin-top: 2rem; }
.back-link:hover { text-decoration: underline; }
.reference-block { background: var(--bg-secondary); padding: 1.25rem; border-radius: 12px; border-left: 4px solid var(--accent); margin: 1rem 0; }
.reference-block cite { font-style: normal; font-weight: 600; color: var(--text-primary); }
.article-list { list-style: none; padding: 0; }
.article-list li { margin-bottom: 0.5rem; }
.article-list a { color: var(--accent); text-decoration: none; }
.article-list a:hover { text-decoration: underline; }
.company-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); text-decoration: none; font-weight: 500; margin-bottom: 1rem; }
.company-link:hover { text-decoration: underline; }
.company-logo-small { height: 28px; width: auto; max-width: 100%; }

/* Manual tweet cards (e.g. ramp-network.html) */
.tweet-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.tweet-card {
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 20px;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.tweet-card:hover {
    border-color: var(--accent);
}

.tweet-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-card-author {
    display: flex;
    flex-direction: column;
}

.tweet-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.tweet-handle {
    font-size: 13px;
    color: var(--text-secondary);
}

.page-content .tweet-card .tweet-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.tweet-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tweet-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.tweet-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.tweet-link:hover {
    text-decoration: underline;
}

/* Services CTA banner */
.services-cta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 32px;
    margin: 32px auto;
    max-width: 700px;
    border: 1px solid var(--accent);
    border-radius: 16px;
    background: var(--bg-card);
    flex-wrap: wrap;
    text-align: center;
}

.services-cta-banner p {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

/* Article grid cards (e.g. stakin.html) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    background: var(--bg-card);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.page-content .article-card .article-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.page-content .article-card .article-card-tag {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Case study pages — theme variables (hero + main; dark mode uses embedded --ramp-bg / --neo-bg / --stak-bg fallbacks) */
html[data-theme="light"] body.ramp-case-study,
html[data-theme="light"] body.neo-case-study,
html[data-theme="light"] body.stak-case-study {
    --case-study-main-bg: #f5f5f5;
    --case-study-main-text: #2d2d2d;
    --case-hero-bg: #f5f5f5;
    --case-hero-heading: #0f0f0f;
    --case-hero-subtitle: #444444;
}

body.light-mode.ramp-case-study,
body.light-mode.neo-case-study,
body.light-mode.stak-case-study {
    --case-study-main-bg: #f5f5f5;
    --case-study-main-text: #2d2d2d;
    --case-hero-bg: #f5f5f5;
    --case-hero-heading: #0f0f0f;
    --case-hero-subtitle: #444444;
}

/* body.light-mode — explicit (add class to body if used) */
body.light-mode .case-hero {
    background: #f5f5f5;
}

body.light-mode .case-hero h1,
body.light-mode .case-hero .hero-title {
    color: #0f0f0f;
}

body.light-mode .case-hero .hero-subtitle,
body.light-mode .case-hero .hero-tags {
    color: #444444;
}

body.light-mode .case-hero .hero-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-mode .case-hero .hero-card h2,
body.light-mode .case-hero .hero-card h3,
body.light-mode .case-hero .hero-card p,
body.light-mode .case-hero .hero-card .tag,
body.light-mode .case-hero .hero-card .ramp-cs-tag,
body.light-mode .case-hero .hero-card .neo-cs-tag,
body.light-mode .case-hero .hero-card .stak-cs-tag {
    color: #0f0f0f;
}

/* html[data-theme="light"] — site default theme toggle */
html[data-theme="light"] .case-hero {
    background: var(--case-hero-bg);
}

html[data-theme="light"] .case-hero h1,
html[data-theme="light"] .case-hero .hero-title {
    color: #0f0f0f !important;
}

html[data-theme="light"] .case-hero .hero-subtitle,
html[data-theme="light"] .case-hero .subtitle,
html[data-theme="light"] .case-hero .hero-tags {
    color: #444444 !important;
}

html[data-theme="light"] .case-hero .case-hero-client p {
    color: #5a5a5a !important;
}

html[data-theme="light"] .case-hero .case-hero-client a {
    color: #0f0f0f !important;
}

html[data-theme="light"] .case-hero .case-hero-client span {
    color: #9ca3af !important;
}

html[data-theme="light"] .case-hero .hero-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

html[data-theme="light"] .case-hero .hero-card h2,
html[data-theme="light"] .case-hero .hero-card h3,
html[data-theme="light"] .case-hero .hero-card p,
html[data-theme="light"] .case-hero .hero-card .tag,
html[data-theme="light"] .case-hero .hero-card .ramp-cs-tag,
html[data-theme="light"] .case-hero .hero-card .neo-cs-tag,
html[data-theme="light"] .case-hero .hero-card .stak-cs-tag {
    color: #0f0f0f !important;
}

html[data-theme="light"] .case-hero .hero-card .ramp-cs-cat,
html[data-theme="light"] .case-hero .hero-card .neo-cs-cat,
html[data-theme="light"] .case-hero .hero-card .stak-cs-cat {
    color: #0f0f0f !important;
}

/* Light mode: rest of case study page text when main background is light */
html[data-theme="light"] body.ramp-case-study .ramp-cs-h2,
html[data-theme="light"] body.neo-case-study .neo-cs-h2,
html[data-theme="light"] body.stak-case-study .stak-cs-h2 {
    color: #0f0f0f !important;
}

html[data-theme="light"] body.ramp-case-study .ramp-cs-block strong,
html[data-theme="light"] body.neo-case-study .neo-cs-block strong,
html[data-theme="light"] body.stak-case-study .stak-cs-block strong {
    color: #0f0f0f !important;
}

html[data-theme="light"] body.ramp-case-study .ramp-cs-cta h2,
html[data-theme="light"] body.neo-case-study .neo-cs-cta h2,
html[data-theme="light"] body.stak-case-study .stak-cs-cta h2 {
    color: #0f0f0f !important;
}
