/* =========================================================
   plan b — Energiesysteme · Relaunch Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --ember:        #ED5A3F;   /* primary accent (brand orange-red, refined) */
  --ember-deep:   #C63E26;
  --ember-soft:   #FBE3DC;
  --amber:        #FFB23E;   /* solar */
  --amber-soft:   #FFEFD3;
  --leaf:         #15A06A;   /* sustainability green */
  --leaf-deep:    #0C6B47;
  --leaf-soft:    #DDF0E6;

  /* Ink / neutrals (warm, slightly green-tinted dark) */
  --ink:          #0E1411;
  --ink-2:        #161E1A;
  --ink-3:        #232E28;
  --slate:        #5C6B63;
  --mist:         #93A199;

  /* Paper */
  --paper:        #FBF8F3;   /* warm off-white base */
  --paper-2:      #F3EEE5;
  --card:         #FFFFFF;
  --line:         #E7E0D4;
  --line-dark:    rgba(255,255,255,.10);

  /* Type */
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body:    'Manrope', system-ui, sans-serif;

  /* Spacing rhythm */
  --gut: clamp(20px, 5vw, 90px);
  --maxw: 1280px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(14,20,17,.04), 0 4px 18px rgba(14,20,17,.05);
  --sh-2: 0 8px 30px rgba(14,20,17,.10);
  --sh-3: 0 30px 70px -20px rgba(14,20,17,.30);
  --sh-ember: 0 18px 40px -12px rgba(237,90,63,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--ember); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { position: relative; padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--ember); border-radius: 2px;
}
.eyebrow.is-light { color: var(--amber); }
.eyebrow.is-light::before { background: var(--amber); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
.display {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
.h-xl { font-size: clamp(2.1rem, 4.6vw, 3.8rem); letter-spacing: -.03em; }
.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.h-md { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--slate); line-height: 1.6; font-weight: 500; }
.muted { color: var(--slate); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ember); color: #fff; box-shadow: var(--sh-ember); }
.btn--primary:hover { background: var(--ember-deep); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--amber); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 700;
  background: var(--paper-2); color: var(--ink);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page transition ---------- */
.page-fade { animation: pageIn .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Dark section ---------- */
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark .muted { color: var(--mist); }
.on-dark .lead { color: #C6D0CA; }
.on-dark .card { background: var(--ink-2); border-color: var(--line-dark); color: var(--paper); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,178,62,.20), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(237,90,63,.18), transparent 55%),
    var(--paper-2);
  display: grid; place-items: center; color: var(--slate);
}
.ph::after {
  content: attr(data-label);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(6px);
  box-shadow: var(--sh-1);
}

/* utility */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.flex { display: flex; }
.center { display: grid; place-items: center; }
.stack { display: flex; flex-direction: column; }
.hide-mob { }
@media (max-width: 860px) { .hide-mob { display: none !important; } }
