:root {
    --maxw: 1240px;
    --gut: clamp(20px, 5vw, 64px);
    --sec-y: clamp(72px, 10vh, 130px);
  }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--brand); overflow-x: hidden; }

  #bg {
    position: fixed; inset: 0; z-index: -2;
    background: var(--brand);
    will-change: background-color;
  }
  #bg::after {
    content: ""; position: absolute; right: -8vw; top: 12vh;
    width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
    background: url("../../logos/Mave-Signet-farbe.svg") no-repeat center/contain;
    opacity: 0; transition: opacity .8s var(--ease-out);
  }
  #bg.paper::after { opacity: .04; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }

  .eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-sans);
    font-size: var(--text-overline); font-weight: 600; letter-spacing: var(--tracking-overline);
    text-transform: uppercase; color: var(--brand); margin: 0 0 22px; }
  .eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; flex: none; }
  .on-dark .eyebrow { color: var(--offwhite); }

  h1, h2, h3 { font-family: var(--font-display); font-weight: 400;
    letter-spacing: var(--tracking-display); margin: 0; text-wrap: balance; }

  /* ---- Header ---- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 18px var(--gut); color: var(--offwhite);
    transition: background-color .4s var(--ease-out), color .4s var(--ease-out),
                box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
  }
  header.scrolled { background: rgba(249,249,246,0.92); backdrop-filter: blur(8px);
    color: var(--text-primary); box-shadow: 0 1px 0 var(--hairline); padding-block: 13px; }
  .brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
  .brand svg { height: 34px; width: auto; display: block; }
  .brand .logo path { fill: var(--offwhite); transition: fill .4s var(--ease-out); }
  header.scrolled .brand .logo path { fill: var(--brand); }
  header.scrolled .brand .logo .consulting path { fill: var(--text-primary); }
  footer .brand .logo path { fill: var(--offwhite); }
  nav.main { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
  nav.main a { color: inherit; text-decoration: none; font-size: 15px; letter-spacing: .01em;
    opacity: .92; position: relative; padding: 4px 0; transition: opacity .2s; }
  nav.main a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
    background: currentColor; transition: right .28s var(--ease-out); }
  nav.main a:hover { opacity: 1; }
  nav.main a:hover::after, nav.main a[aria-current="page"]::after { right: 0; }
  nav.main a[aria-current="page"] { opacity: 1; }
  nav.main a.cta {
    border: 1.5px solid currentColor; padding: 9px 20px; opacity: 1; font-weight: 600;
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
  }
  nav.main a.cta::after { display: none; }
  header:not(.scrolled) nav.main a.cta:hover { background: var(--offwhite); color: var(--brand); }
  header.scrolled nav.main a.cta { border-color: var(--brand); color: var(--brand); }
  header.scrolled nav.main a.cta:hover { background: var(--brand); color: var(--offwhite); }
  .menu-btn { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; }

  /* ---- Buttons ---- */
  .btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
    font-size: 16px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
    padding: 15px 30px; border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .12s; }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--brand); color: var(--offwhite); }
  .btn-primary:hover { background: var(--brand-strong); }
  .btn-ghost-light { border-color: rgba(249,249,246,.55); color: var(--offwhite); }
  .btn-ghost-light:hover { background: var(--offwhite); color: var(--brand); }
  .btn-ghost-dark { border-color: var(--brand); color: var(--brand); }
  .btn-ghost-dark:hover { background: var(--brand); color: var(--offwhite); }
  .btn .ar { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
  .btn:hover .ar { transform: translateX(4px); }

  /* ---- Hero ---- */
  .hero {
    min-height: 52svh; display: flex; flex-direction: column; justify-content: flex-end;
    color: var(--offwhite); padding: 140px var(--gut) 56px; max-width: var(--maxw); margin: 0 auto;
  }
  .hero hr { width: 80px; height: 2px; background: rgba(249,249,246,.45); border: 0; margin: 0 0 26px; }
  .hero h1 { font-size: clamp(36px, 5.5vw, 72px); font-weight: 300; line-height: 1.04; max-width: 14ch; }
  .hero .lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; max-width: 54ch;
    margin: 20px 0 0; color: rgba(249,249,246,.78); }

  /* ---- Generic section ---- */
  section.band { padding-block: var(--sec-y); position: relative; }
  .lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--text-secondary); max-width: 58ch; }
  .section-divider { border: 0; border-top: 1px solid var(--border-default); margin: 0; }

  /* ---- bg-dark transitions ---- */
  body.bg-dark .eyebrow:not(.cta-band .eyebrow) { color: var(--offwhite); }
  body.bg-dark .eyebrow:not(.cta-band .eyebrow)::before { background: var(--offwhite); }

  /* ---- FAQ ---- */
  .faq-intro { max-width: 760px; margin-bottom: clamp(48px, 7vh, 72px); }
  .faq-intro h2 { font-size: clamp(26px, 3.6vw, 46px); color: var(--text-primary); margin-bottom: 16px; font-weight: 300; line-height: 1.08; }
  .faq-intro p { color: var(--text-secondary); line-height: 1.7; font-size: clamp(15px, 1.2vw, 17px); }

  .faq-group { margin-bottom: clamp(48px, 7vh, 72px); }
  .faq-group-label { font-family: var(--font-sans); font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary);
    margin: 0 0 0; padding: clamp(20px, 3vh, 28px) 0 0; border-top: 2px solid var(--brand); display: block; }

  .accordion { display: flex; flex-direction: column; }
  .acc-item { border-top: 1px solid var(--border-default); }
  .acc-item:last-child { border-bottom: 1px solid var(--border-default); }
  .acc-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
    padding: 22px 0; color: var(--text-primary); font-family: var(--font-display);
    font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; letter-spacing: var(--tracking-display);
    transition: color .2s;
  }
  .acc-btn:hover { color: var(--brand); }
  .acc-icon { flex: none; width: 20px; height: 20px; color: var(--brand);
    transition: transform .35s var(--ease-out); }
  .acc-item.open .acc-icon { transform: rotate(45deg); }
  .acc-body { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease-out); }
  .acc-body-inner { padding-bottom: 24px; }
  .acc-body-inner p { color: var(--text-secondary); line-height: 1.7; margin: 0 0 .7em; max-width: 68ch; font-size: 16px; }
  .acc-body-inner p:last-child { margin-bottom: 0; }
  .acc-body-inner a { color: var(--brand); }
  .acc-body-inner ul { margin: 6px 0 .7em; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
  .acc-body-inner li { color: var(--text-secondary); font-size: 16px; line-height: 1.6; padding-left: 16px; position: relative; }
  .acc-body-inner li::before { content: "—"; position: absolute; left: 0; color: var(--brand); font-size: 12px; top: 4px; }

  /* ---- Final CTA ---- */
  .cta-band { position: relative; color: var(--text-primary); transition: color .5s; }
  .cta-band .wrap { position: relative; z-index: 1; max-width: 880px; text-align: center;
    padding-block: clamp(70px, 12vh, 130px); }
  .cta-band h2 { font-size: clamp(32px, 4.8vw, 62px); font-weight: 300; line-height: 1.04;
    color: var(--text-primary); transition: color .5s; }
  .cta-band p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--text-secondary);
    max-width: 54ch; margin: 22px auto 36px; transition: color .5s; }
  .cta-band .eyebrow { justify-content: center; color: var(--brand); transition: color .5s; }
  .cta-band .btn-ghost-light { border-color: var(--brand); color: var(--brand);
    transition: background-color .25s, color .5s, border-color .5s; }
  .cta-band .btn-ghost-light:hover { background: var(--brand); color: var(--offwhite); }
  .cta-band.lit { color: var(--offwhite); }
  .cta-band.lit h2 { color: var(--offwhite); }
  .cta-band.lit p { color: rgba(249,249,246,.82); }
  .cta-band.lit .eyebrow { color: var(--offwhite); }
  .cta-band.lit .btn-ghost-light { border-color: rgba(249,249,246,.55); color: var(--offwhite); }
  .cta-band.lit .btn-ghost-light:hover { background: var(--offwhite); color: var(--brand); }
  .cta-band .signet { position: absolute; left: 50%; top: 50%; width: 52vw; max-width: 560px;
    transform: translate(-50%, -50%); opacity: .07; pointer-events: none; }

  /* ---- Footer ---- */
  footer { background: var(--ink-900); color: rgba(249,249,246,.78); padding: clamp(56px,8vh,84px) 0 34px; }
  footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
  footer .brand svg { height: 34px; }
  footer .blurb { margin: 22px 0 0; max-width: 34ch; line-height: 1.6; font-size: 15px; color: rgba(249,249,246,.6); }
  footer h4 { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(249,249,246,.5); margin: 0 0 18px; }
  footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
  footer a { color: rgba(249,249,246,.78); text-decoration: none; font-size: 15px; transition: color .2s; }
  footer a:hover { color: var(--offwhite); }
  .foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
    align-items: center; margin-top: clamp(44px,7vh,72px); padding-top: 24px;
    border-top: 1px solid rgba(249,249,246,.12); font-size: 13px; color: rgba(249,249,246,.5); }
  .foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

  /* ---- Mobile nav ---- */
  #mobnav { position: fixed; inset: 0; z-index: 49; background: var(--brand-gradient); color: var(--offwhite);
    display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gut);
    transform: translateY(-100%); transition: transform .45s var(--ease-out); }
  #mobnav.open { transform: none; }
  #mobnav a { color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 32px;
    font-weight: 300; padding: 12px 0; border-bottom: 1px solid rgba(249,249,246,.16); }
  #mobnav .close { position: absolute; top: 22px; right: var(--gut); background: none; border: 0; color: inherit; cursor: pointer; }

  @media (max-width: 960px) {
    footer .cols { grid-template-columns: 1fr; }
    nav.main { display: none; }
    .menu-btn { display: inline-flex; }
  }
