  /* ================= LOCAL FONTS ================= */
  @font-face{
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
  }
  @font-face{
    font-family: 'Inter';
    src: url('../fonts/inter-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
  }
  @font-face{
    font-family: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }
  @font-face{
    font-family: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
  }

  /* ================= DESIGN TOKENS (nur dunkles Theme) ================= */
  :root{
    color-scheme: dark;

    --bg: #05070E;
    --bg-deep: #0A0D18;
    --text-1: #F1F3FB;
    --text-2: #A6ACC2;
    --text-3: #6A7089;

    --glass-fill: rgba(20,23,40,0.55);
    --glass-fill-strong: rgba(26,30,50,0.76);
    --glass-border: rgba(255,255,255,0.18);
    --glass-border-soft: rgba(255,255,255,0.08);
    --glass-shadow: 0 24px 70px rgba(0,0,0,0.62), 0 4px 16px rgba(0,0,0,0.48);
    --glass-spec: rgba(255,255,255,0.2);

    /* einheitliche, ruhige Akzentfarbe + eine warme Zweitfarbe für Detail-Akzente */
    --accent: #C7D3EC;
    --accent-soft: rgba(199,211,236,0.22);
    --c-cyan: #16C7E0;
    --c-violet: #6E4CFF;
    --c-pink: #FF3E9C;

    --font-display: 'Space Grotesk', 'SF Pro Display', system-ui, sans-serif;
    --font-body: 'Inter', 'SF Pro Text', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

  body{
    margin:0;
    overflow-x: hidden;
    background: radial-gradient(120% 100% at 50% 0%, var(--bg-deep) 0%, var(--bg) 55%);
    color: var(--text-1);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
  }

  #helix-canvas{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    filter: blur(1.6px) saturate(1.08);
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
  }

  .page{
    position: relative;
    z-index: 1;
  }

  .eyebrow{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 14px;
  }

  /* ================= REUSABLE GLASS PANEL ================= */
  .glass-panel{
    position: relative;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    isolation: isolate;
    overflow: hidden;
  }
  .glass-panel::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(135deg, var(--glass-spec) 0%, transparent 42%);
    opacity:.6;
    pointer-events:none;
  }
  .glass-panel::after{
    content:"";
    position:absolute; inset:0;
    border-radius: inherit;
    padding:1px;
    background: linear-gradient(160deg, var(--glass-border), transparent 40%, var(--glass-border-soft));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events:none;
  }

  /* ================= BRAND ================= */
  .brand{
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 5;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--text-2);
    padding: 8px 14px;
    border-radius: 999px;
  }

  .animation-picker{
    position: fixed;
    top: 78px;
    left: 28px;
    z-index: 5;
    width: 166px;
    padding: 9px 11px 10px;
    border-radius: 12px;
  }
  .animation-picker label{
    position: relative;
    z-index: 4;
    display: block;
    margin: 0 0 5px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .animation-picker select{
    position: relative;
    z-index: 4;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-1);
    font: 500 .76rem/1.2 var(--font-body);
    cursor: pointer;
  }
  .animation-picker select:focus-visible{
    outline: 1px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
  }

  /* ================= HERO ================= */
  .hero{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 2;
  }

  .hero-panel{
    border-radius: 20px;
    padding: clamp(40px, 7vw, 72px) clamp(28px, 6vw, 64px);
    max-width: 660px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(.96);
    filter: blur(18px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1),
                transform 1.05s cubic-bezier(.22,1,.36,1),
                filter .9s cubic-bezier(.22,1,.36,1);
  }
  .hero-panel.is-ready{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  .hero h1{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    background: linear-gradient(100deg, rgba(241,243,251,.68) 45%, rgba(199,211,236,.58) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /*-webkit-text-fill-color: transparent;*/
      filter: drop-shadow(0px 0px 8px rgba(20,20,10,0.5));
      color: color(srgb 0.2182 0.5215 0.5853);
  }

  .hero .bio{
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0 auto;
  }

  .scroll-hint{
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #e16b6c; /* var(--text-3); */
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .scroll-hint svg{ width: 16px; height: 16px; animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob{ 0%,100%{ transform: translateY(0); opacity:.5;} 50%{ transform: translateY(6px); opacity:1;} }
  @media (prefers-reduced-motion: reduce){ .scroll-hint svg{ animation: none; } }

  /* ================= BRANCH CARDS ================= */
  .branches{
    --branch-card-width: min(420px, calc(50vw - 24px));
    --timeline-expanded-width: min(960px, calc(100vw - 48px));
    max-width: 620px;
    margin: 0 auto;
    padding: 60px 24px 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
  }

  .branch-section + .branch-section{ margin-top: 280px; }
  .branch-section-title{
    width: fit-content;
    min-width: 180px;
    margin: 0 auto 72px;
    padding: 16px 30px;
    border-radius: 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .branch-section-title span{
    position: relative;
    z-index: 4;
  }
  .branch-list{
    display: flex;
    flex-direction: column;
  }

  .branch{
    position: relative;
    perspective: 1200px;
    transform-origin: top center;
    margin-top: 64px;
    transform: translateY(110px) scale(0.5) rotate(var(--start-rot, -12deg));
    transition: transform 1.3s cubic-bezier(.34,1.56,.64,1), opacity .15s;
    opacity: 0;
  }
  .branch:first-child{ margin-top: 0; }
  .branch.is-visible{
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  .branch:nth-child(odd){ --start-rot: -12deg; }
  .branch:nth-child(even){ --start-rot: 12deg; }
  .branch:nth-child(even){ text-align: right; }
  .branch:nth-child(even) .card-media{ margin-left: auto; margin-right: 0; }
  .branch:nth-child(even) .branch-card{
    margin-left: 50%;
  }

  .branch-node{
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;
    width: 12px; height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--node-color, var(--accent));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--node-color, var(--accent)) 18%, transparent),
                0 0 26px color-mix(in srgb, var(--node-color, var(--accent)) 70%, transparent);
  }
  .branch-card{
    width: var(--branch-card-width);
    max-width: none;
    padding: 30px 30px 28px;
    border-radius: 14px;
    border-color: rgba(174, 201, 255, 0.32);
    transition: transform .5s cubic-bezier(.16,.8,.24,1),
                width .75s cubic-bezier(.22,1,.36,1),
                margin-left .75s cubic-bezier(.22,1,.36,1),
                border-radius .75s cubic-bezier(.22,1,.36,1),
                background .3s ease;
  }
  .branch:nth-child(odd) .branch-card{
    margin-left: calc(50% - var(--branch-card-width));
    border-radius: 14px 0 14px 14px;
  }
  .branch:nth-child(even) .branch-card{
    border-radius: 0 14px 14px 14px;
  }

  /* Balance beginnt rechts und wechselt danach weiter die Seite. */
  @media (min-width: 641px){
    .branch-section[data-section="balance"] .branch:nth-child(odd){
      --start-rot: 12deg;
      text-align: right;
    }
    .branch-section[data-section="balance"] .branch:nth-child(even){
      --start-rot: -12deg;
      text-align: left;
    }
    .branch-section[data-section="balance"] .branch:nth-child(odd) .branch-card{
      margin-left: 50%;
      border-radius: 0 14px 14px 14px;
    }
    .branch-section[data-section="balance"] .branch:nth-child(even) .branch-card{
      margin-left: calc(50% - var(--branch-card-width));
      border-radius: 14px 0 14px 14px;
    }
    .branch-section[data-section="balance"] .branch:nth-child(odd) .card-media{
      margin-left: auto;
      margin-right: 0;
    }
    .branch-section[data-section="balance"] .branch:nth-child(even) .card-media{
      margin-left: 0;
      margin-right: auto;
    }
    .branch-section[data-section="balance"] .branch:nth-child(odd) .card-link{
      flex-direction: row-reverse;
    }
    .branch-section[data-section="balance"] .branch:nth-child(even) .card-link{
      flex-direction: row;
    }
  }
  .branch.is-visible .branch-card:hover{ transform: translateY(-4px); }

  .branch-card::after{
    padding: 1.5px;
    background: linear-gradient(
      145deg,
      rgba(235, 244, 255, 0.68) 0%,
      rgba(151, 185, 255, 0.42) 38%,
      rgba(91, 130, 214, 0.2) 70%,
      rgba(196, 218, 255, 0.46) 100%
    );
  }

  /* Animierter Partikelrand des Hero-Panels. */
  .card-particle-border{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
  }
  .branch-card > :not(.card-particle-border),
  .hero-panel > :not(.card-particle-border){
    position: relative;
    z-index: 4;
  }
  .branch-card > :not(.card-particle-border){
    //opacity: 0;
    filter: blur(18px);
    transition: opacity 1s cubic-bezier(.22,1,.36,1),
                filter 1.3s cubic-bezier(.22,1,.36,1);
  }
  .branch.is-visible .branch-card > :not(.card-particle-border){
    //opacity: 1;
    filter: blur(0);
  }

  .card-media{
    width: 46px; height: 46px;
    border-radius: 14px;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(
      145deg,
      color-mix(in srgb, var(--node-color, var(--accent)) 55%, white 10%),
      color-mix(in srgb, var(--node-color, var(--accent)) 85%, black 10%)
    );
    color: white;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--node-color, var(--accent)) 35%, transparent);
  }
  .card-media img{ width:100%; height:100%; object-fit:cover; border-radius: 14px; }
  .card-media svg{ width: 22px; height: 22px; }

  .branch-card h3{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
  }
  .branch-card p{
    margin: 0 0 20px;
    color: var(--text-2);
    line-height: 1.6;
    font-size: 0.97rem;
  }
  .branch-card .card-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text-1);
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--glass-fill-strong);
    border: 1px solid var(--glass-border);
    transition: background .25s ease, transform .25s ease;
  }
  .branch-card .card-link:hover{ transform: translateX(2px); }
  .branch-card .card-link.is-disabled{
    color: var(--text-3);
    cursor: default;
    opacity: .68;
  }
  .branch-card .card-link.is-disabled:hover{ transform: none; }
  .card-link-label,
  .card-link-lock{
    display: inline-flex;
    align-items: center;
  }
  .card-link-label{ gap: 6px; }
  .card-link-lock{
    color: var(--accent);
    opacity: .82;
  }
  .card-link-lock svg{
    width: 13px;
    height: 13px;
  }
  .branch:nth-child(even) .card-link{ flex-direction: row-reverse; }

  /* ================= EXPANDABLE TIMELINE ================= */
  .branch.timeline-branch .timeline-card{
    margin-left: calc((100% - var(--branch-card-width)) / 2);
    border-radius: 14px;
    text-align: left;
  }
  .timeline-scroll-hint{
    display: block;
    margin-top: 12px;
    color: var(--text-3);
    font: 400 .68rem/1.4 var(--font-mono);
    letter-spacing: .05em;
    opacity: 1;
    transition: opacity .3s ease;
  }
  .timeline-card.is-expanded .timeline-scroll-hint{
    opacity: 0;
  }
  .timeline-preview{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 18px;
    margin: 0 0 18px;
  }
  .timeline-preview::before{
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, var(--node-color), color-mix(in srgb, var(--node-color) 25%, transparent));
  }
  .timeline-preview i{
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--node-color);
    box-shadow: 0 0 10px color-mix(in srgb, var(--node-color) 65%, transparent);
  }
  .branch.timeline-branch .timeline-card.is-expanded{
    width: var(--timeline-expanded-width);
    margin-left: calc((100% - var(--timeline-expanded-width)) / 2);
    border-radius: 14px;
  }
  .branch.is-visible .timeline-card.is-expanded:hover{ transform: none; }
  .timeline-content{
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0 !important;
    pointer-events: none;
    transition: max-height .8s cubic-bezier(.22,1,.36,1),
                margin-top .6s ease,
                opacity .4s ease !important;
  }
  .timeline-card.is-expanded .timeline-content{
    max-height: 620px;
    margin-top: 32px;
    opacity: 1 !important;
    pointer-events: auto;
  }
  .timeline-track{
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--node-color) 55%, transparent) transparent;
    padding: 12px 2px 24px;
  }
  .timeline-track::before{
    content: "";
    position: absolute;
    top: 25px;
    left: 8px;
    width: max(100%, calc(var(--timeline-items, 1) * 280px));
    height: 1px;
    background: linear-gradient(90deg, var(--node-color), color-mix(in srgb, var(--node-color) 16%, transparent));
  }
  .timeline-slide{
    position: relative;
    min-height: 235px;
    padding: 38px 20px 20px;
    border: 1px solid color-mix(in srgb, var(--node-color) 28%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--glass-fill-strong) 84%, transparent);
    scroll-snap-align: start;
    text-align: left;
  }
  .timeline-dot{
    position: absolute;
    top: 8px;
    left: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--node-color);
    box-shadow: 0 0 14px color-mix(in srgb, var(--node-color) 70%, transparent);
  }
  .timeline-year{
    display: block;
    margin-bottom: 12px;
    color: var(--node-color);
    font: 500 .7rem/1 var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .timeline-slide img{
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(5, 7, 14, .28);
      display: block;
  }
  .timeline-image-button{
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
      margin-bottom: 16px;
  }
  .timeline-image-button img {
      display: block;
      margin-bottom: 0;
  }
  .timeline-image-button:focus-visible{
    outline: 2px solid var(--node-color);
    outline-offset: 3px;
    border-radius: 10px;
  }
  .image-modal{
    width: min(96vw, 1600px);
    max-width: none;
    max-height: 94vh;
    padding: 44px 12px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(5, 7, 14, .96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
  }
  .image-modal::backdrop{
    background: rgba(2, 3, 8, .88);
    backdrop-filter: blur(8px);
  }
  .image-modal img{
    display: block;
    width: 100%;
    max-height: calc(94vh - 56px);
    object-fit: contain;
  }
  .image-modal-close{
    position: absolute;
    top: 7px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--text-1);
    font: 300 1.8rem/1 var(--font-display);
    cursor: pointer;
  }
  .timeline-slide h4{
    margin: 0 0 8px;
    font: 600 1.05rem/1.25 var(--font-display);
  }
  .timeline-slide p{
    margin: 0;
    font-size: .88rem;
  }
  .timeline-controls{
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
  }
  .timeline-controls[hidden]{ display: none; }
  .timeline-controls button{
    width: 38px;
    height: 38px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--glass-fill-strong);
    color: var(--text-1);
    cursor: pointer;
  }

  /* ================= FOOTER ================= */
  .site-footer{
    display:flex;
    justify-content: space-between;
    align-items:center;
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 24px 120px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
    position: relative;
    z-index: 2;
  }
  .site-footer a{ color: var(--text-2); text-decoration:none; }
  .site-footer a:hover{ color: var(--text-1); }

  /* ================= COMING SOON ================= */
  .coming-soon{
    min-height: 100vh;
    overflow-x: hidden;
  }
  .coming-soon-page{
    position: relative;
    z-index: 1;
    min-height: 100vh;
  }
  .coming-soon-spacer{
    height: 240vh;
    visibility: hidden;
    pointer-events: none;
  }
  .coming-soon .animation-picker{
    top: 28px;
  }
  .coming-soon-box{
    position: fixed;
    left: 50%;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 5;
    width: min(720px, calc(100vw - 48px));
    padding: 12px 20px;
    border-radius: 12px;
    transform: translateX(-50%);
    text-align: center;
  }
  .coming-soon-box p{
    position: relative;
    z-index: 4;
    margin: 0;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: clamp(.62rem, 1.5vw, .74rem);
    line-height: 1.45;
    letter-spacing: .035em;
  }
  .coming-soon-box strong,
  .coming-soon-box span{
    display: block;
  }
  .coming-soon-box strong{
    margin-bottom: 3px;
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .08em;
  }

  @media (max-width: 640px){
    .branches{ --timeline-expanded-width: calc(100vw - 32px); }
    .branch-section + .branch-section{ margin-top: 190px; }
    .branch-section-title{ margin-bottom: 58px; }
    .branch-card{ width: 100%; }
    .branch-node{
      left: 50%;
    }
    .branch:nth-child(odd),
    .branch:nth-child(even){ text-align: left; }
    .branch:nth-child(odd) .branch-card,
    .branch:nth-child(even) .branch-card{
      margin-left: 0;
      border-radius: 0 14px 14px 14px;
    }
    .branch:nth-child(odd) .timeline-card.is-expanded,
    .branch:nth-child(even) .timeline-card.is-expanded{
      width: var(--timeline-expanded-width);
      margin-left: calc((100% - var(--timeline-expanded-width)) / 2);
      border-radius: 14px;
    }
    .branch:nth-child(odd) .timeline-card:not(.is-expanded),
    .branch:nth-child(even) .timeline-card:not(.is-expanded){
      width: 100%;
      margin-left: 0;
      border-radius: 14px;
    }
    .timeline-track{ grid-auto-columns: minmax(240px, 82vw); }
    .branch:nth-child(odd) .card-media,
    .branch:nth-child(even) .card-media{ margin-left: 0; margin-right: 0; }
    .branch:nth-child(even) .card-link{ flex-direction: row; }
    .branch:nth-child(even){ --start-rot: -12deg; }
    .brand{ top:16px; left:16px; font-size:.7rem; padding:6px 12px; }
    .animation-picker{ top:58px; left:16px; width:154px; }
    .coming-soon .animation-picker{ top:16px; }
    .coming-soon-box{
      bottom: max(16px, env(safe-area-inset-bottom));
      width: calc(100vw - 32px);
      padding: 11px 14px;
    }
    #helix-canvas{ filter: blur(1.3px) saturate(1.08); }
  }
  @media (prefers-reduced-motion: reduce){
    .hero-panel{ transition: none; }
  }
