/* iamleogs.de - Schwarz und Goldstaub. Das Gold kommt nur aus den Partikeln; Schrift und
   Flächen bleiben ruhig, damit es leuchtet. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  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;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  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+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* dunkel: Anthrazit mit Champagner - kein Orange */
  --bg: #0c0d0f;
  --bg-2: #15171a;
  --ivory: #ece7dd;
  --ash: #8e8a82;
  --dim: #5d5a55;
  --gold: #cdb88a;
  --gold-hi: #f1e7d0;
  --gold-deep: #8f7d5a;
  --on-gold: #0c0d0f;
  --line: rgba(236, 231, 221, 0.12);
  --stroke: rgba(236, 231, 221, 0.3);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(18px, 3.4vw, 56px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: radial-gradient(120% 70% at 50% 0%, var(--bg-2), var(--bg) 60%) fixed, var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: clamp(15px, 0.45vw + 12px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.has-cursor,
.has-cursor a,
.has-cursor button {
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}
::selection {
  background: var(--gold);
  color: var(--on-gold);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
}
.skip:focus {
  top: 16px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.78em;
  letter-spacing: 0.02em;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 8.4vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.display--xl {
  font-size: clamp(76px, 15vw, 280px);
  line-height: 0.82;
}

/* Zeilenmasken (GSAP SplitText füllt sie) */
.line-mask {
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

/* --------------------------------------------------------------- Goldstaub */

.gold {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
main,
.foot {
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------------ Cursor */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ivory);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background-color 0.3s;
}
.has-cursor .cursor {
  opacity: 1;
}
.cursor.is-label {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--gold);
  mix-blend-mode: normal;
}
.cursor__label {
  color: var(--on-gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.cursor.is-label .cursor__label {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------- Kopfleiste */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 18px;
  mix-blend-mode: difference;
  color: var(--ivory);
}
.top__brand {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}
.top__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.top__login {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
}
.top__login svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Text rollt beim Hover nach oben weg, die Kopie rollt nach */
.roll span {
  position: relative;
  display: inline-block;
  line-height: 1.3;
  vertical-align: top;
  transition: transform 0.6s var(--ease);
}
.roll {
  display: inline-block;
  overflow: hidden;
}
.roll span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
.roll:hover span {
  transform: translateY(-100%);
}

/* -------------------------------------------------------------------- Kopf */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: 0 var(--gutter) calc(var(--gutter) * 0.6);
}
.hero__caption {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  margin: 0;
  color: var(--ash);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
.hero__name {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 -0.03em -0.04em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(170px, 31vw, 560px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: var(--ivory);
}
.hero__name .char {
  display: inline-block;
}
.hero__role {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 clamp(18px, 3vw, 54px);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1.02;
  text-align: right;
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ash);
  font-size: 12px;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 46px;
  background: var(--gold);
  animation: drip 2.2s var(--ease-in-out) infinite;
}
@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
/* Bis das Intro läuft, bleibt der Kopf leer - spätestens nach 5 s erscheint er trotzdem */
.is-loading .hero__name,
.is-loading [data-hero],
.is-loading .top {
  visibility: hidden;
  animation: failsafe 0s 5s forwards;
}
@keyframes failsafe {
  to {
    visibility: visible;
  }
}

/* ---------------------------------------------------------------- Manifest */

.manifest {
  min-height: 230vh;
  padding: 24vh var(--gutter) 12vh;
}
.manifest__text {
  position: sticky;
  top: 24vh;
  max-width: 19ch;
  margin: 0 0 0 auto;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 104px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.word {
  display: inline-block;
  opacity: 0.12;
  will-change: opacity;
}

/* --------------------------------------------------------- Bereiche (quer) */

.areas {
  position: relative;
  overflow: hidden;
}
.areas__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 100vh;
  height: 100svh;
}
.areas__intro {
  display: grid;
  align-content: end;
  width: 46vw;
  padding: 0 var(--gutter) 14vh;
}
.area {
  position: relative;
  display: grid;
  align-content: end;
  gap: 22px;
  width: min(62vw, 980px);
  padding: 0 5vw 14vh;
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 35%, transparent));
}
.area .display {
  font-size: clamp(48px, 6.4vw, 120px);
}
.area p {
  max-width: 46ch;
  margin: 0;
  color: var(--ash);
}
.area__tag {
  color: var(--gold);
}

/* Knopf mit Füllung, die von unten hochsteigt */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
  font-size: 15px;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s;
}
.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  border-radius: 50% 50% 0 0;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.pill:hover {
  color: var(--on-gold);
  border-color: var(--gold);
}
.pill:hover::before {
  transform: none;
  border-radius: 0;
}
.pill--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--on-gold);
}
.pill--gold::before {
  background: var(--ivory);
}

/* ---------------------------------------------------------------- Einstieg */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  padding: 18vh var(--gutter) 10vh;
}
.steps__pin {
  position: sticky;
  top: 14vh;
  align-self: start;
  display: grid;
  gap: 4vh;
}
.steps__digit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: clamp(150px, 23vw, 380px);
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 460px);
  line-height: 0.82;
  color: var(--gold);
}
.steps__digit span {
  display: inline-block;
}
.steps__digit small {
  margin-top: 0.6em;
  font-size: 15px;
  color: var(--ash);
}
.steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 72vh;
  border-top: 1px solid var(--line);
  opacity: 0.25;
  transition: opacity 0.6s var(--ease);
}
.step.is-active {
  opacity: 1;
}
.step h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 72px);
  line-height: 0.95;
}
.step p {
  max-width: 40ch;
  margin: 0;
  color: var(--ash);
}
.step .pill {
  margin-top: 10px;
}

/* ---------------------------------------------------------- Gold Prospector */

.bots {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 6vw;
  min-height: 150vh;
  padding: 20vh var(--gutter) 16vh;
}
.bots__head {
  grid-column: 1 / -1;
  align-self: start;
}
.bots__body {
  grid-column: 2;
}
.bots__lead {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 46px);
  line-height: 1.05;
}
.specs {
  display: grid;
  margin: 0 0 40px;
}
.specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.specs dt {
  color: var(--gold);
}
.specs dd {
  margin: 0;
}

/* --------------------------------------------------------------- Über mich */

.about {
  display: grid;
  justify-items: center;
  gap: 40px;
  padding: 28vh var(--gutter);
  text-align: center;
}
.about__quote {
  max-width: 22ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 92px);
  line-height: 1.02;
}
.about__sign {
  margin: 0;
  color: var(--gold);
}

/* --------------------------------------------------------------- Abschluss */

.closing {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 12vh;
  min-height: 120vh;
  padding-bottom: 6vh;
  overflow: hidden;
}
.marquee {
  width: 100%;
  white-space: nowrap;
  pointer-events: none;
}
.marquee__row {
  display: inline-flex;
  will-change: transform;
}
.marquee__row span {
  padding-right: 0.35em;
  font-family: var(--serif);
  font-size: clamp(110px, 17vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
}
.marquee__row span:nth-child(even) {
  font-style: italic;
  color: var(--ivory);
  -webkit-text-stroke: 0;
}
.orb {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(150px, 15vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
  transition: background-color 0.4s;
}
.orb:hover {
  background: var(--gold-hi);
}
.orb span {
  pointer-events: none;
}

/* ---------------------------------------------------------------------- Fuß */

.foot {
  padding: 12vh var(--gutter) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.foot__risk {
  max-width: 100ch;
  margin: 0 0 40px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}
.foot__risk b {
  color: var(--ash);
  font-weight: 500;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--ash);
  font-size: 14px;
}
.foot__row nav {
  display: flex;
  gap: 24px;
}
.foot__row a:hover {
  color: var(--gold);
}
.foot__word {
  margin: 4vh 0 -3.2vw;
  font-family: var(--serif);
  font-size: 23.5vw;
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------- Rechtstexte, 404 */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px var(--gutter) 100px;
}
.page h1 {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.9;
}
.page h2 {
  margin: 44px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}
.page p {
  color: var(--ash);
}
.page a {
  color: var(--gold);
}
.page .todo {
  padding: 1px 6px;
  background: rgba(226, 99, 70, 0.18);
  color: #ffb9a6;
}
.page--center {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  min-height: 100vh;
  text-align: center;
}
.page--center b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(140px, 30vw, 380px);
  line-height: 0.8;
  color: var(--gold);
}

/* ------------------------------------------------------------------ Schmal */

@media (max-width: 860px) {
  .top__nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }
  .hero__role {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 10px;
    text-align: left;
  }
  .hero__name {
    grid-row: 3;
    font-size: 44vw;
    margin-bottom: 0.02em;
  }
  .hero__caption,
  .hero__scroll {
    display: none;
  }
  .manifest {
    min-height: auto;
    padding: 18vh var(--gutter);
  }
  .manifest__text {
    position: static;
  }
  .areas__track {
    flex-direction: column;
    width: auto;
    height: auto;
  }
  .areas__intro,
  .area {
    width: auto;
    padding: 12vh var(--gutter);
  }
  .area {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .steps,
  .bots {
    grid-template-columns: 1fr;
  }
  .bots__body {
    grid-column: 1;
  }
  .steps__pin {
    position: static;
  }
  .steps__digit {
    display: none;
  }
  .step {
    min-height: auto;
    padding: 36px 0;
    opacity: 1;
  }
  .bots {
    min-height: auto;
  }
  .specs div {
    grid-template-columns: 90px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll::after {
    animation: none;
  }
  .word,
  .step {
    opacity: 1;
  }
}


/* ------------------------------------------------------------ Sprachwahl */

.lang {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
}
.lang button {
  padding: 6px 7px;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.3s;
}
.lang button:hover {
  opacity: 0.85;
}
.lang button[aria-pressed='true'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.curtain {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0% 0% 0% 0%);
}
.curtain span {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 140px);
  color: var(--gold);
}

/* ------------------------------------------------- Sprüche im Wechsel */

.about__intro {
  margin: 0;
  color: var(--ash);
}
.quotes {
  display: grid;
  width: 100%;
}
.quote {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
}
.quote:nth-child(odd) {
  font-style: italic;
  color: var(--gold-hi);
}
html:not(.quotes-ready) .quote:not(.is-on) {
  display: none;
}
.quotes__dots {
  display: flex;
  gap: 8px;
}
.quotes__dots i {
  width: 22px;
  height: 2px;
  background: var(--line);
  transition: background-color 0.5s, width 0.5s var(--ease);
}
.quotes__dots i.is-on {
  width: 44px;
  background: var(--gold);
}
