/* =====================================
   ADOS LGBT+ - DESIGN SYSTEM
   Portail #Ados-LGBT+ / réseau Chatteurs
   ===================================== */

:root {
    --primary: #6d28d9;
    --primary-dark: #5b21b6;
    --accent: #db2777;
    --night: #1b1340;
    --night-2: #3b1d8a;
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;

    --white: #ffffff;
    --light: #f7f5ff;
    --light-2: #ede9fe;
    --border: #e4e0f2;
    --text: #1c1a2e;
    --text-light: #46435e;
    --text-muted: #67647f;

    /* Les six bandes du drapeau, réutilisées en accents de cartes */
    --p-red: #e40303;
    --p-orange: #ff8c00;
    --p-yellow: #ffd500;
    --p-green: #008026;
    --p-blue: #004dff;
    --p-violet: #750787;
    --pride-bar: linear-gradient(90deg,
        var(--p-red) 0 16.66%, var(--p-orange) 0 33.33%, var(--p-yellow) 0 50%,
        var(--p-green) 0 66.66%, var(--p-blue) 0 83.33%, var(--p-violet) 0);
    --gradient-cta: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    --shadow-sm: 0 1px 2px rgb(27 19 64 / 0.06);
    --shadow: 0 2px 6px rgb(27 19 64 / 0.1);
    --shadow-lg: 0 12px 24px -6px rgb(27 19 64 / 0.16);
    --shadow-xl: 0 24px 48px -12px rgb(27 19 64 / 0.35);

    --transition: all 0.2s ease;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --nav-h: 68px;
}

/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4); }
.prose { max-width: 760px; margin: 0 auto; color: var(--text-light); line-height: 1.85; }
.prose p + p { margin-top: var(--space-4); }
.prose a, .link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

.skip-link {
    position: absolute; left: var(--space-4); top: -100px; z-index: 5000;
    background: var(--white); color: var(--primary); padding: var(--space-2) var(--space-4);
    border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: var(--space-2); }

/* =====================================
   NAVIGATION
   ===================================== */
.modern-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    height: var(--nav-h);
    display: flex; align-items: center;
}
.modern-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--pride-bar); }

.nav-container {
    width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: var(--space-2); font-size: 1.2rem; font-weight: 800; }
.brand-logo { height: 40px; width: 40px; border-radius: var(--radius-sm); }
.brand-text .accent { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: var(--space-6); }
.nav-link {
    font-weight: 600; color: var(--text-light); font-size: 0.9rem;
    padding: var(--space-2) 0; border-bottom: 2px solid transparent; transition: var(--transition);
}
.nav-link:hover { color: var(--primary); border-color: var(--primary); }
.nav-link[hidden] { display: none; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: var(--space-2);
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* =====================================
   HERO / FORMULAIRE DE CONNEXION
   ===================================== */
.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
    overflow: hidden;
    padding: calc(var(--nav-h) + var(--space-12)) 0 var(--space-16);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgb(228 3 3 / 0.22), transparent 32%),
        radial-gradient(circle at 30% 85%, rgb(255 140 0 / 0.16), transparent 30%),
        radial-gradient(circle at 88% 12%, rgb(0 77 255 / 0.3), transparent 34%),
        radial-gradient(circle at 92% 80%, rgb(117 7 135 / 0.4), transparent 36%);
}

.hero-content {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: center;
    max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4); width: 100%;
}

.hero-text { color: var(--white); }
.hero-kicker {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
    background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.25);
    font-size: 0.82rem; font-weight: 700; margin-bottom: var(--space-4);
}
.hero-title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.12; margin-bottom: var(--space-4); }
.hero-title .rainbow {
    background: linear-gradient(90deg, #ff6b6b, #ffb347, #ffe66d, #6be585, #6bb5ff, #c58bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { font-size: 1.08rem; color: rgb(255 255 255 / 0.9); margin-bottom: var(--space-6); max-width: 52ch; }
.hero-subtitle strong { color: var(--white); }

.identity-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip {
    padding: 0.25rem 0.8rem; border-radius: var(--radius-full);
    background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.22);
    font-size: 0.82rem; font-weight: 600; color: var(--white);
}

.hero-features { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.feature { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 0.9rem; color: var(--white); }
.feature i { color: #6be585; }

.stats-bar[hidden] { display: none; }
.stats-bar { display: flex; gap: var(--space-8); margin-top: var(--space-8); flex-wrap: wrap; }
.stat-item { color: var(--white); }
.stat-item[hidden] { display: none; }
.stat-number { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgb(255 255 255 / 0.8); margin-top: var(--space-1); }
.stat-live { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #6be585; animation: pulse 2s infinite; vertical-align: middle; }

.chat-form-container { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: var(--space-8); position: relative; }
.chat-form-container::before { content: ""; position: absolute; left: var(--space-8); right: var(--space-8); top: 0; height: 5px; background: var(--pride-bar); border-radius: 0 0 6px 6px; }

.form-header { text-align: center; margin-bottom: var(--space-6); }
.form-header h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: var(--space-1); }
.form-header p { color: var(--text-muted); font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { margin-bottom: var(--space-4); }
.form-group > label, .form-group > .label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: var(--space-2); color: var(--text-light); }

.form-group input[type="text"], .form-group input[type="number"], .form-group select {
    width: 100%; padding: 0.75rem 1rem;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; background: var(--light); color: var(--text); transition: var(--transition);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgb(109 40 217 / 0.18); }

.gender-options { display: flex; gap: var(--space-3); }
.gender-option {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
    padding: var(--space-3); border: 1.5px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: var(--transition); font-size: 0.85rem; font-weight: 600; color: var(--text-light);
    position: relative;
}
.gender-option input { position: absolute; opacity: 0; pointer-events: none; }
.gender-option:has(input:checked) { border-color: var(--primary); background: var(--light-2); color: var(--primary-dark); }
.gender-option:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.gender-icon { font-size: 1.25rem; }

.checkbox-container { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.85rem; color: var(--text-light); cursor: pointer; margin-bottom: var(--space-4); }
.checkbox-container input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }

.connect-btn {
    width: 100%; padding: 1rem; border: none; border-radius: var(--radius);
    background: var(--gradient-cta); color: var(--white); font-size: 1.05rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    box-shadow: var(--shadow-lg); transition: var(--transition);
}
.connect-btn:hover:not([disabled]) { transform: translateY(-2px); filter: brightness(1.06); }
.connect-btn[disabled] { opacity: 0.7; cursor: wait; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-3); }

/* =====================================
   SECTIONS GÉNÉRIQUES
   ===================================== */
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--light); }
.section[hidden] { display: none; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-12); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: var(--space-3); }
.section-title::after { content: ""; display: block; width: 72px; height: 5px; margin: var(--space-3) auto 0; border-radius: 3px; background: var(--pride-bar); }
.section-subtitle { color: var(--text-muted); font-size: 1.02rem; }

/* Grilles de cartes : un liseré du drapeau par carte, en cycle */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.card {
    background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); border-top: 4px solid var(--p-violet);
}
.cards-grid > .card:nth-child(6n+1) { border-top-color: var(--p-red); }
.cards-grid > .card:nth-child(6n+2) { border-top-color: var(--p-orange); }
.cards-grid > .card:nth-child(6n+3) { border-top-color: var(--p-yellow); }
.cards-grid > .card:nth-child(6n+4) { border-top-color: var(--p-green); }
.cards-grid > .card:nth-child(6n+5) { border-top-color: var(--p-blue); }
.cards-grid > .card:nth-child(6n)   { border-top-color: var(--p-violet); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--light-2); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.25rem; margin-bottom: var(--space-3); }
.card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.card p { font-size: 0.92rem; color: var(--text-light); }
.card a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; padding: 2px 10px; border-radius: var(--radius-full); background: var(--light-2); color: var(--primary-dark); margin-bottom: var(--space-2); }

/* =====================================
   GALERIE DE PROFILS (API chatteurs)
   ===================================== */
.gallery-toolbar { display: flex; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-8); flex-wrap: wrap; }
.gallery-filter {
    padding: 0.5rem 1.1rem; border-radius: var(--radius-full); border: 1.5px solid var(--border);
    background: var(--white); font-weight: 600; font-size: 0.88rem; color: var(--text-light); transition: var(--transition);
}
.gallery-filter:hover, .gallery-filter.active { border-color: var(--primary); color: var(--primary-dark); background: var(--light-2); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
.member-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden; transition: var(--transition); border: 1px solid var(--border);
    text-align: left; padding: 0; color: inherit; font: inherit;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member-card__avatar { position: relative; aspect-ratio: 1; background: var(--light-2); }
.member-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card__badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: var(--white); border-radius: var(--radius-full); padding: 2px 8px; font-size: 0.65rem; font-weight: 700; }
.member-card__body { padding: var(--space-3); }
.member-card__name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card__meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.member-card__flames { font-size: 0.78rem; color: var(--warning); font-weight: 700; margin-top: 4px; }

.gallery-pagination { display: flex; justify-content: center; align-items: center; gap: var(--space-4); margin-top: var(--space-8); }
.gallery-pagination button { padding: 0.5rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--white); font-weight: 600; transition: var(--transition); }
.gallery-pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.gallery-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.gallery-pagination span { font-size: 0.88rem; color: var(--text-muted); }
.gallery-empty, .gallery-loading { text-align: center; padding: var(--space-12) 0; color: var(--text-muted); grid-column: 1 / -1; }

.profile-hero { text-align: center; padding-bottom: var(--space-4); }
.profile-hero__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-3); border: 3px solid var(--light-2); }
.profile-hero__name { font-size: 1.2rem; font-weight: 800; }
.profile-hero__meta { color: var(--text-muted); font-size: 0.9rem; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: var(--space-4) 0; }
.profile-stat { background: var(--light); border-radius: var(--radius); padding: var(--space-3); text-align: center; }
.profile-stat strong { display: block; font-size: 1.1rem; }
.profile-stat span { font-size: 0.78rem; color: var(--text-muted); }
.profile-bio { background: var(--light); border-radius: var(--radius); padding: var(--space-4); font-size: 0.92rem; color: var(--text-light); }

/* =====================================
   BLOG (API chatteurs)
   ===================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.blog-card {
    display: block; width: 100%; text-align: left; font: inherit; color: inherit;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--space-6); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card__theme { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--primary-dark); background: var(--light-2); padding: 2px 10px; border-radius: var(--radius-full); margin-bottom: var(--space-3); }
.blog-card__title { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.blog-card__desc { display: block; font-size: 0.9rem; color: var(--text-light); }
.blog-card__meta { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-4); }

#blogModalContent { line-height: 1.75; }
#blogModalContent p, #blogModalContent ol, #blogModalContent ul { margin-bottom: var(--space-4); }
#blogModalContent ol, #blogModalContent ul { padding-left: var(--space-6); list-style: revert; }
#blogModalContent h2, #blogModalContent h3, #blogModalContent h4 { margin: var(--space-6) 0 var(--space-3); color: var(--primary-dark); }
#blogModalContent a { color: var(--primary); text-decoration: underline; }
#blogModalContent img { border-radius: var(--radius); margin: var(--space-3) 0; }

/* =====================================
   ACCUEIL / IDENTITÉS / AIDE / FAQ
   ===================================== */
.help-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); }
.help-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); }
.help-item strong { display: block; font-size: 1.15rem; color: var(--primary-dark); }
.help-item span { display: block; font-size: 0.88rem; color: var(--text-light); }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 var(--space-6); }
.faq summary { cursor: pointer; font-weight: 700; padding: var(--space-4) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--space-4); color: var(--text-light); }

.timeline { max-width: 760px; margin: 0 auto var(--space-8); border-left: 4px solid var(--light-2); padding-left: var(--space-6); display: grid; gap: var(--space-4); color: var(--text-light); }
.timeline strong { color: var(--text); }

.reco-list { max-width: 760px; margin: 0 auto; padding-left: var(--space-6); list-style: decimal; color: var(--text-light); line-height: 1.8; display: grid; gap: var(--space-2); }
.reco-list li::marker { color: var(--primary); font-weight: 800; }

/* =====================================
   FOOTER
   ===================================== */
.modern-footer { background: var(--night); color: rgb(255 255 255 / 0.85); padding: var(--space-8) 0 var(--space-6); position: relative; }
.modern-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--pride-bar); }
.footer-network { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); padding: var(--space-6) 0; }
.footer-network a { color: rgb(255 255 255 / 0.8); font-size: 0.92rem; font-weight: 600; }
.footer-network a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: var(--space-6); text-align: center; font-size: 0.82rem; color: rgb(255 255 255 / 0.65); }
.footer-bottom a { color: var(--white); text-decoration: underline; }
.footer-bottom button { background: none; border: none; color: var(--white); text-decoration: underline; font-size: inherit; }

/* =====================================
   MODALES
   ===================================== */
.modal { display: none; position: fixed; inset: 0; background: rgb(27 19 64 / 0.65); z-index: 2000; align-items: center; justify-content: center; padding: var(--space-4); }
.modal.show { display: flex; }
.modal-content { background: var(--white); border-radius: var(--radius-lg); max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-xl); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.6rem; color: var(--text-muted); line-height: 1; padding: 0 var(--space-2); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: var(--space-6); }
.modal-body h3 { margin-bottom: var(--space-2); }

/* =====================================
   TOASTS
   ===================================== */
.toast-container { position: fixed; top: calc(var(--nav-h) + 16px); right: var(--space-4); left: var(--space-4); z-index: 3000; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); pointer-events: none; }
.toast { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--space-3) var(--space-4); display: flex; align-items: center; gap: var(--space-2); max-width: 420px; border-left: 4px solid var(--primary); animation: slideIn 0.25s ease; pointer-events: auto; }
.toast-success { border-color: var(--success); }
.toast-success i { color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-error i { color: var(--danger); }

@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Le contenu n'est masqué avant animation que si le JS tourne (classe .js posée dans <head>) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: var(--space-8); }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--white);
        flex-direction: column; align-items: stretch; padding: var(--space-4); gap: var(--space-2);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        transform: translateY(-150%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s;
    }
    .nav-menu.open { transform: none; visibility: visible; }
    .nav-link { padding: var(--space-3) 0; }
    .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .chat-form-container { padding: var(--space-6) var(--space-4); }
    .chat-form-container::before { left: var(--space-4); right: var(--space-4); }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .section { padding: var(--space-12) 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
