@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0c0c10;
  --ink-soft: #9f9f9f; /* text on the white void */
  --paper: #f8f8f9;
  --muted: rgba(12, 12, 16, 0.5);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.36, 0.4, 1);
  --e: 0;      /* orb expansion 0..1, set by JS */
  --tag: 0;    /* tagline reveal 0..1 */
  --hint: 1;   /* scroll hint visibility */
  --card: 0;   /* glass card reveal 0..1 */
  --shift: 0px;
  /* type scale: every step doubles the one below (text -> sub -> head -> title) */
  --fs-text: 18px;
  --fs-sub: 36px;   /* 2 x text */
  --fs-head: 72px;  /* 4 x text */
  --fs-title: 144px; /* 8 x text: wordmark as seen with tagline + card (h1 is scaled 0.88 then) */
  --title: calc(var(--fs-title) / 0.88);
}
@media (max-width: 1199px) {
  :root { --fs-title: 108px; } /* 6 x text, 3 x sub */
}
@media (max-width: 700px) {
  :root { --fs-text: 15px; --fs-sub: 30px; --fs-head: 60px; --fs-title: 60px; }
}
@media (max-width: 359px) {
  :root { --fs-text: 14px; --fs-sub: 28px; --fs-head: 56px; --fs-title: 56px; }
}
/* low screens: smaller wordmark so wordmark, tagline and hero card fit together */
@media (min-width: 701px) and (max-height: 780px) {
  :root { --fs-title: 108px; }
}
@media (max-width: 700px) and (max-height: 600px) {
  :root { --fs-title: 45px; } /* 3 x text */
  .glass-card p { line-height: 1.5; }
  .tag { display: none; } /* no room for wordmark + tagline + card; the card says it anyway */
}
@media (max-width: 359px) and (max-height: 600px) {
  :root { --fs-title: 42px; } /* 3 x text */
}

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

html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
sup { font-size: 0.5em; vertical-align: 0.9em; margin-left: 0.08em; letter-spacing: 0; }

/* ---------- Canvas ---------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100lvh;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.gl-on #gl { opacity: 1; }

.fallback-orb { display: none; }
body.no-gl .fallback-orb {
  display: block;
  position: fixed;
  left: 50%; top: 50%;
  width: 56vmin; height: 56vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 22%),
    conic-gradient(from 200deg, #b7a8ff, #9fe7e0, #ffd6c2, #d8b4ff, #b7a8ff);
  filter: saturate(1.1);
  box-shadow: 0 40px 80px -30px rgba(80, 60, 160, 0.35);
}

/* ---------- Stage ---------- */
main { position: relative; z-index: 1; }
.stage { position: relative; height: 420vh; }
.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.ui {
  position: absolute;
  inset: 0;
  color: var(--ink-soft);
  pointer-events: none;
}
.ui--inv {
  color: #fff;
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
  text-shadow: 0 0 16px rgba(20, 16, 50, 0.25);
}
body.no-gl .ui--inv { display: none; }

.bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(22px, env(safe-area-inset-top)) clamp(16px, 3vw, 36px) 0;
  font-size: var(--fs-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.2s ease 1.4s, transform 1.4s var(--spring) 1.4s;
}
.bar--bottom {
  top: auto; bottom: 0;
  padding: 0 clamp(16px, 3vw, 36px) max(22px, env(safe-area-inset-bottom));
  transform: translateY(8px);
}
body.is-ready .bar { opacity: 1; transform: none; }
.bar--bottom > * { opacity: var(--hint); }
.mark { font-weight: 500; letter-spacing: -0.01em; }

.hint,
.copy {
  color: #b00184; /* blackberry accent */
  font-size: var(--fs-text);
  font-weight: 500;
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hint i {
  position: relative;
  width: 52px; height: 1.5px;
  background: currentColor;
  opacity: 0.25;
  overflow: hidden;
}
.hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateX(-100%);
  animation: hint 2.4s var(--spring) infinite;
}
@keyframes hint {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- Title ---------- */
.title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  /* lifts title + tagline so the group stays centred once the glass card is in */
  transform: translateY(calc(var(--card) * var(--shift) * -1));
}
.title h1 {
  margin: 0;
  display: flex;
  font-weight: 250;
  font-size: var(--title);
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  transform: scale(calc(1 - var(--e) * 0.12));
  transform-origin: 50% 50%;
}
.title h1 sup {
  display: flex;
  align-self: flex-start;
  font-size: 0.4em;
  margin: 0.1em 0 0 0.05em;
  letter-spacing: -0.02em;
}
.ch {
  display: inline-block;
  overflow: hidden;
  padding: 0.04em 0.02em 0.16em;
  margin: -0.04em -0.02em -0.16em;
}
.ch > span {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  filter: blur(10px);
  opacity: 0;
  transition:
    transform 1.6s var(--spring),
    filter 1.3s ease,
    opacity 1s ease;
  transition-delay: calc(var(--i) * 55ms + 450ms);
}
body.is-ready .ch > span { transform: none; filter: blur(0); opacity: 1; }

.tag {
  position: absolute;
  /* 0.44 = half the wordmark after its 0.88 scale; then one sub-size of air */
  top: calc(50% + var(--title) * 0.44 + var(--fs-sub));
  left: 50%;
  margin: 0;
  padding: 0.42em 1.15em 0.5em;
  white-space: nowrap;
  font-size: var(--fs-sub);
  font-weight: 400;
  letter-spacing: -0.01em;
  border-radius: 999px;
  background: rgba(20, 16, 40, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  opacity: var(--tag);
  transform: translate(-50%, calc((1 - var(--tag)) * 24px));
  filter: blur(calc((1 - var(--tag)) * 6px));
}
/* ---------- Liquid glass (hero card + content panels) ---------- */
.glass-card, .glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  /* a faint dark tint under the white sheen keeps body copy readable on the brightest liquid */
  background:
    linear-gradient(150deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04) 55%, rgba(255,255,255,0.1)),
    rgba(20, 16, 40, 0.14);
  -webkit-backdrop-filter: blur(26px) saturate(1.7) brightness(0.96);
  backdrop-filter: blur(26px) saturate(1.7) brightness(0.96);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 30px 60px -24px rgba(20, 10, 60, 0.45);
}
/* hero card: top/width set by main.js to match the title */
.glass-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--title-w, 60vw);
  padding: clamp(20px, 2.2vw, 32px) clamp(22px, 2.6vw, 38px);
  border-radius: clamp(22px, 2vw, 30px);
  pointer-events: auto;
  opacity: var(--card);
  transform: translate(-50%, calc((1 - var(--card)) * 48px)) scale(calc(0.95 + var(--card) * 0.05));
  filter: blur(calc((1 - var(--card)) * 10px));
}
/* soft specular highlight that follows the cursor across the glass */
.glass-card::before, .glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,0.28), transparent 60%);
  pointer-events: none;
}
.glass-card p, .glass p {
  margin: 0;
  font-size: var(--fs-text);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.glass-card .hero__title {
  margin: 0 0 0.5em;
  font-size: var(--fs-sub);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .glass-card { width: calc(100vw - 40px); }
}

/* ---------- Content (over the full-screen liquid) ---------- */
.content {
  display: grid;
  gap: clamp(28px, 4vw, 54px);
  width: min(1100px, 100% - 2 * clamp(10px, 1.6vw, 20px));
  margin: 0 auto;
  padding: 18vh 0 0;
}
.panel {
  padding: clamp(28px, 5vw, 72px);
  border-radius: clamp(22px, 2.4vw, 34px);
}
.eyebrow {
  margin: 0 0 1.5em;
  font-size: var(--fs-text);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.glass .statement {
  max-width: 24em;
  margin: 0;
  font-size: var(--fs-sub);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.glass .panel__text { max-width: 38em; margin-top: 1.5em; }
/* investor / advisor: title left, copy right; the copy continues the title's sentence */
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px clamp(28px, 4vw, 72px);
  padding: clamp(28px, 3vw, 36px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.role:last-child { padding-bottom: 0; }
.role__title {
  margin: 0;
  font-size: var(--fs-sub);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.closing {
  max-width: 15em;
  margin: clamp(36px, 8vh, 108px) auto 0;
  color: #fff;
  font-size: var(--fs-head);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(20, 10, 60, 0.25);
}
@media (max-width: 700px) {
  .role { grid-template-columns: 1fr; }
  .closing { font-size: var(--fs-sub); }
}

/* scroll reveal (class "in" set by main.js) */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1.4s var(--spring), filter 1s ease;
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* tagline + card only appear once the liquid fills the screen: show the white copy only */
.ui:not(.ui--inv) .tag { visibility: hidden; }

/* ---------- Footer ---------- */
.end {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px);
}
.foot {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(28px, 6vw, 72px) 24px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: clamp(22px, 2.4vw, 34px);
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 30px 80px -20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(80px) scale(0.96);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1.4s var(--spring), filter 1s ease;
}
.foot.in { opacity: 1; transform: none; filter: none; }
body.no-gl .foot { background: var(--ink); }

.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--fs-text); font-weight: 400; }
.foot__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-size: var(--fs-text); opacity: 0.75;
}
.foot a { position: relative; display: inline-block; padding: 4px 0; }
.foot a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--spring);
}
.foot a:hover::after, .foot a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.foot a:focus-visible { outline: none; }

@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; }
  .foot__nav { flex-direction: column; gap: 4px; }
  .foot__meta { align-items: flex-start; }
}

/* ---------- Legal sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 14, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.sheet__panel {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(780px, 100% - 20px);
  height: min(88vh, 900px);
  display: flex; flex-direction: column;
  color: var(--ink);
  background: rgba(250, 250, 252, 0.86);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(20, 10, 60, 0.3);
  transform: translate(-50%, 104%);
  transition: transform 0.75s var(--bounce);
}
.sheet.open .sheet__backdrop { opacity: 1; }
.sheet.open .sheet__panel { transform: translate(-50%, 0); }
.sheet.closing .sheet__panel { transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0); }

.sheet__top {
  position: relative;
  flex: none;
  height: 56px;
  display: grid; place-items: center;
}
.sheet__grip { width: 40px; height: 5px; border-radius: 5px; background: rgba(12, 12, 16, 0.16); }
.sheet__close {
  position: absolute; right: 14px; top: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  color: var(--ink);
  background: rgba(12, 12, 16, 0.06);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.5s var(--bounce);
}
.sheet__close:hover { background: rgba(12, 12, 16, 0.12); transform: rotate(90deg); }

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px clamp(16px, 5vw, 64px) 64px;
  font-size: var(--fs-text);
  line-height: 1.65;
}
.sheet__body > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.9s var(--spring);
  transition-delay: calc(var(--i, 0) * 30ms + 180ms);
}
.sheet.open .sheet__body > * { opacity: 1; transform: none; }
.sheet__body h1 {
  margin: 0 0 28px;
  font-size: var(--fs-head);
  hyphens: manual; /* breaks only at the &shy; marks set in the legal headings */
  font-weight: 250;
  letter-spacing: -0.045em;
  line-height: 1;
}
.sheet__body { overflow-wrap: break-word; } /* long URLs in the Datenschutz text */
.sheet__body h2 { margin: 56px 0 4px; font-size: var(--fs-sub); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
.sheet__body h3 { margin: 28px 0 6px; font-size: var(--fs-text); font-weight: 500; }
.sheet__body h4 { margin: 20px 0 4px; font-size: var(--fs-text); font-weight: 500; color: rgba(12, 12, 16, 0.72); }
.sheet__body p, .sheet__body ul { margin: 0 0 12px; color: rgba(12, 12, 16, 0.72); }
.sheet__body a { color: inherit; text-decoration: underline; text-decoration-color: rgba(12, 12, 16, 0.25); text-underline-offset: 3px; transition: text-decoration-color 0.3s ease; }
.sheet__body a:hover { text-decoration-color: currentColor; }
.sheet__body ul { padding-left: 1.1em; }
.sheet__body strong { font-weight: 500; color: var(--ink); }
.sheet__body .note {
  display: inline-block;
  margin: 10px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--fs-text);
  color: #5a3fd0;
  background: linear-gradient(90deg, rgba(183,168,255,0.28), rgba(159,231,224,0.28));
}
.sheet__body .lead { margin-top: 24px; font-size: var(--fs-sub); line-height: 1.2; color: var(--ink); font-weight: 300; letter-spacing: -0.01em; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width 0.5s var(--bounce), height 0.5s var(--bounce), margin 0.5s var(--bounce), opacity 0.4s ease;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Lighter glass on weaker devices (set by main.js) ---------- */
body.lite .glass-card, body.lite .glass {
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  backdrop-filter: blur(16px) saturate(1.7);
}
body.lite .foot {
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
}
body.lite .sheet__backdrop {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body.lite .sheet__panel {
  background: rgba(250, 250, 252, 0.96);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ch > span, .bar, .foot, .reveal, .sheet__body > * { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .hint i::after { animation: none; }
  .sheet__panel { transition-duration: 0.25s; }
}


/* ---------- Mobile: snappier motion (desktop timing stays untouched) ---------- */
@media (max-width: 700px) {
  .stage { height: 300vh; }                 /* shorter scroll path: orb, tagline and card arrive sooner */
  .ch > span {
    transition:
      transform 0.9s var(--spring),
      filter 0.7s ease,
      opacity 0.6s ease;
    transition-delay: calc(var(--i) * 28ms + 150ms);
  }
  .bar { transition: opacity 0.7s ease 0.6s, transform 0.8s var(--spring) 0.6s; }
  .foot { transition: opacity 0.6s ease, transform 0.8s var(--spring), filter 0.6s ease; }
  .sheet__body > * { transition-delay: calc(var(--i, 0) * 18ms + 80ms); }
}
