/* ==========================================================================
   PB Elec — Design System (Premium / Minimal / Tech)
   - Typo: Inter Variable (self-hosted)
   - Palette: Navy / Cyan / Orange + neutres élégants
   ========================================================================== */

@font-face {
  font-family: "InterVariable";
  src: url("/assets/fonts/inter/InterVariable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: "InterVariable";
  src: url("/assets/fonts/inter/InterVariable-Italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 100 900;
}

:root {
  /* Brand */
  --brand-navy: #032475;
  --brand-cyan: #289ae4;
  --brand-orange: #fc9611;

  /* Neutrals */
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --text: #0b1220;
  --muted: #5b6475;
  --border: rgba(10, 18, 32, 0.10);

  /* Shadows */
  --shadow-sm: 0 10px 30px rgba(2, 6, 23, 0.10);
  --shadow-md: 0 20px 60px rgba(2, 6, 23, 0.14);

  /* Radii & spacing */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --container: 1120px;

  /* Typography */
  --font: "InterVariable", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 180ms;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, rgba(252,150,17,1), rgba(40,154,228,1));
  --grad-hero: radial-gradient(900px 600px at 15% 15%, rgba(252,150,17,0.28), transparent 55%),
               radial-gradient(900px 600px at 85% 25%, rgba(40,154,228,0.22), transparent 60%),
               linear-gradient(180deg, rgba(3,36,117,1) 0%, rgba(7,14,36,1) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070e24;
    --surface: #0b1430;
    --surface-2: rgba(255,255,255,0.05);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.70);
    --border: rgba(255,255,255,0.12);
    --shadow-sm: 0 20px 50px rgba(0,0,0,0.45);
    --shadow-md: 0 30px 80px rgba(0,0,0,0.55);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "opsz" 14, "wght" 400;
}

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

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

:focus-visible {
  outline: 2px solid rgba(40,154,228,0.65);
  outline-offset: 3px;
  border-radius: 10px;
}

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

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


/* Icons */
.icon { width: 18px; height: 18px; flex: none; }
.service-card__icon .icon { width: 22px; height: 22px; }
.badge .icon { width: 18px; height: 18px; }
.panel-card__meta a, .footer__link, .contact-card a { display: inline-flex; align-items: center; gap: 10px; }
.mobile-bar__icon { display: inline-flex; }
.mobile-bar__icon svg { width: 18px; height: 18px; }

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn--small { padding: 11px 14px; font-size: 0.95rem; }

.btn--primary {
  color: #0b1220;
  background: var(--grad-brand);
  box-shadow: 0 14px 30px rgba(252,150,17,0.20);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 20px 50px rgba(252,150,17,0.22); }

.btn--ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}
@media (prefers-color-scheme: light) {
  .btn--ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }
}
.btn--ghost:hover { transform: translateY(-1px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}
@media (prefers-color-scheme: light) {
  .badge {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Premium "glass" – plus blanc (meilleure lisibilité sur le hero sombre) */
  backdrop-filter: saturate(180%) blur(12px);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 96%, transparent), 
    color-mix(in srgb, var(--surface) 90%, transparent)
  );
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0px 0;
}

.brand img { filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18)); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle__icon {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after  { top: 7px; }

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
  font-weight: 600;
  /* Un peu plus contrasté sur header clair */
  color: color-mix(in srgb, var(--text) 75%, var(--muted));
}
.nav a { padding: 10px 10px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .nav__cta {
  color: var(--text);
  background: color-mix(in srgb, var(--brand-cyan) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 28%, var(--border));
}

.header__cta { display: block; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav a { padding: 12px 14px; }
  .nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-open .nav-toggle__icon { background: transparent; }
  .nav-open .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle__icon::after  { top: 0; transform: rotate(-45deg); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 84px 0; }
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--grad-hero);
  color: rgba(255,255,255,0.92);
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--brand-cyan) 70%, white);
}
h1, h2, h3 {
  margin: 0 0 14px 0;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 32, "wght" 720;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.10; }
h3 { font-size: 1.15rem; line-height: 1.25; font-variation-settings: "opsz" 20, "wght" 680; }

.lead {
  font-size: 1.06rem;
  color: color-mix(in srgb, currentColor 85%, transparent);
  max-width: 60ch;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(800px 500px at 80% 60%, rgba(252,150,17,0.25), transparent 55%),
              radial-gradient(900px 700px at 20% 80%, rgba(40,154,228,0.20), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 42px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.trust-row .badge { background: rgba(255,255,255,0.08); }

.hero__panel {
  display: grid;
  gap: 14px;
}
.panel-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
}
.panel-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.stars { display: inline-flex; gap: 2px; font-size: 0.95rem; }
.stars span { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.panel-card__meta { display: grid; gap: 8px; margin-top: 12px; }
.panel-card__meta a { color: rgba(255,255,255,0.92); }
.panel-card__meta a:hover { text-decoration: underline; }

.hero-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  margin-top: 14px;
}
.hero-collage figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.12);
}
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: saturate(1.05) contrast(1.02);
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 16px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

.card {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand-cyan) 22%, var(--border)); }

.card--soft {
  background: color-mix(in srgb, var(--surface) 92%, var(--brand-cyan));
}

.service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-cyan) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 24%, var(--border));
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.service-card__list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.service-card__list li { margin: 6px 0; }

.callout {
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand-navy) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-navy) 18%, var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 980px) { .callout { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   Before / After
   ========================================================================== */
.ba {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.ba__wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.ba__wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__after {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: col-resize;
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 8px rgba(0,0,0,0.18);
  transform: translateX(-1px);
}
.ba__handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #0b1220;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.ba__labels {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.ba__labels span {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
}

/* ==========================================================================
   Projects carousel + modal
   ========================================================================== */
.projects-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.projects-track::-webkit-scrollbar { height: 10px; }
.projects-track::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--border) 80%, transparent); border-radius: 999px; }

.project-card {
  appearance: none;
  padding: 0;
  text-align: left;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand-orange) 25%, var(--border)); }
.project-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(3,36,117,0.25), rgba(40,154,228,0.10)); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 14px; display: grid; gap: 8px; }
.project-card__title { font-weight: 760; letter-spacing: -0.02em; }
.project-card__meta { color: var(--muted); font-size: 0.95rem; display: flex; justify-content: space-between; gap: 10px; }

dialog.modal {
  width: min(980px, calc(100% - 26px));
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
dialog.modal::backdrop {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}
.modal__head {
  padding: 18px 18px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal__title { margin: 0; font-size: 1.25rem; font-variation-settings: "opsz" 26, "wght" 760; }
.modal__close {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}
.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand-cyan) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-cyan) 28%, var(--border));
}
.chip:hover { transform: translateY(-1px); }

.carousel {
  padding: 0 18px 18px;
}
.carousel__viewport {
  border-radius: var(--radius-lg);
  overflow: auto;
  scroll-snap-type: x mandatory;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  background: #0b1220;
}
.carousel__slide {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 16/10;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1220;
}
.carousel__nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 0 0;
}
.carousel__btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 14px;
  overflow: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.testimonial {
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.testimonial__quote {
  font-size: 1.02rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.testimonial__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { background: var(--surface-2); }
.faq .faq__answer { padding: 0 18px 18px; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 360px; border: 0; }

/* ==========================================================================
   Footer + mobile bar
   ========================================================================== */
.site-footer {
  padding: 54px 0 90px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 20px;
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__tagline { color: var(--muted); margin-top: 10px; max-width: 42ch; }
.footer__contact { display: grid; gap: 8px; margin-top: 14px; }
.footer__link { color: var(--muted); }
.footer__link:hover { color: var(--text); text-decoration: underline; }
.footer__title { margin: 0 0 10px; font-size: 1rem; font-variation-settings: "opsz" 18, "wght" 760; }
.footer__nav, .footer__legal { display: grid; align-content: start; gap: 10px; color: var(--muted); }
.footer__nav a, .footer__legal a { padding: 8px 0; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--text); text-decoration: underline; }
.footer__fineprint p { margin: 8px 0 0; }

.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  display: none;
  gap: 10px;
}
.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #0b1220;
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.mobile-bar__btn--ghost {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
}
@media (max-width: 980px) { .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .project-card, .chip { transition: none; }
}

