/* overfitted.xyz, Variante B: Dämmerung über einem Bergkamm, ganz dunkel, Inhalt mittig. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: oklch(0.96 0.006 240);
  --ink-soft: oklch(0.82 0.012 240);
  --ink-faint: oklch(0.7 0.014 240);
  --whisper: oklch(0.42 0.015 240);
  --cobalt: oklch(0.78 0.11 250);
  --glass: oklch(0.3 0.02 240 / 0.38);
  --hairline: oklch(1 0 0 / 0.1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: #0b1a24;
  color: var(--ink);
  font: 400 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Korn über allem, fest, ohne Zeigerereignisse. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Himmel und Berge ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 22% at 38% 66%, oklch(0.62 0.09 40 / 0.55), transparent 70%),
    radial-gradient(90% 40% at 70% 70%, oklch(0.5 0.06 20 / 0.35), transparent 70%),
    linear-gradient(
      180deg,
      oklch(0.2 0.035 235) 0%,
      oklch(0.25 0.035 232) 30%,
      oklch(0.31 0.03 245) 48%,
      oklch(0.4 0.035 20) 60%,
      oklch(0.5 0.06 40) 66%,
      oklch(0.3 0.03 250) 74%,
      oklch(0.16 0.02 240) 100%
    );
}

.mountains {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layer {
  transform: translate(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 0.35px));
  transition: transform 1200ms var(--ease-out);
}

.rim {
  fill: none;
  stroke: oklch(0.85 0.08 50 / 0.35);
  stroke-width: 1;
}

.crest {
  fill: none;
  stroke: oklch(0.92 0.06 250 / 0.6);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.star {
  fill: #fff;
}

/* Vignette, damit der Text immer trägt. */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 42%, transparent 40%, oklch(0.1 0.02 240 / 0.55) 100%);
}

/* ---------- Inhalt ---------- */

.card {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(100% - 40px, 460px);
  margin-top: -10vh;
}

.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.name {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow:
    0 0 2px oklch(1 0 0 / 0.35),
    0 0 22px oklch(0.85 0.06 240 / 0.45),
    0 0 60px oklch(0.75 0.08 245 / 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 0 24px oklch(0.78 0.11 250 / 0.18);
  color: var(--ink);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 10px var(--cobalt);
}

.claim {
  margin: 16px 0 4px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 560;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px oklch(0.8 0.05 240 / 0.25);
}

.typer {
  display: none;
  min-height: 1.5em;
  margin: 0;
  color: var(--ink-faint);
  font: 400 12.5px/1.5 var(--font-mono);
}

.caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink-soft);
  animation: blink 1s steps(1) infinite;
}

.caret.done {
  animation: none;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Ohne Schreibanimation stehen die Punkte als kleine Liste da. */
.points {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font: 400 12.5px/1.7 var(--font-mono);
}

.typing .typer {
  display: block;
}

.typing .points {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(40px, 7vh, 72px);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink);
  transition:
    transform 140ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px oklch(1 0 0 / 0.5));
}

.icon:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .icon:hover {
    box-shadow:
      inset 0 0 0 1px oklch(1 0 0 / 0.22),
      0 0 28px oklch(0.85 0.06 240 / 0.35);
  }
}

/* ---------- Fußzeile ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 16px clamp(20px, 3vw, 40px) max(18px, env(safe-area-inset-bottom));
  font-size: 12.5px;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot nav a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .foot nav a:hover {
    color: var(--ink);
  }
}

.disclaimer {
  margin: 0;
  color: var(--whisper);
  font-size: 11px;
}

@media (max-width: 760px) {
  .card {
    margin-top: -16vh;
  }
  .foot {
    flex-direction: column;
  }
}

/* ---------- Auftakt: einmal, nur ohne reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: no-preference) {
  .scene {
    animation: fade 1600ms var(--ease-out) both;
  }
  .intro .lift {
    animation: lift 2200ms var(--ease-reveal) both;
    animation-delay: calc(200ms + var(--k) * 110ms);
  }
  .intro .stars {
    animation: fade 2400ms var(--ease-out) 600ms both;
  }
  .intro .crest {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 3200ms cubic-bezier(0.65, 0, 0.35, 1) 1100ms forwards;
  }
  .card > *,
  .foot {
    animation: rise 1000ms var(--ease-reveal) both;
  }
  .name-row { animation-delay: 500ms; }
  .claim { animation-delay: 650ms; }
  .typer,
  .points { animation-delay: 750ms; }
  .links { animation-delay: 900ms; }
  .foot { animation-delay: 1100ms; }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Meta-Zeile: Märkte und Verfahren ---------- */

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 18px 0 0;
  text-shadow: 0 1px 8px oklch(0.12 0.02 240 / 0.8);
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.02em;
}

.meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}



.meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .meta {
    animation-delay: 1000ms;
  }
}

/* ---------- Chart-Ebene im Himmel ---------- */

.grid line {
  stroke: oklch(0.9 0.02 240 / 0.09);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.grid .tick {
  stroke: oklch(0.9 0.02 240 / 0.22);
  stroke-dasharray: none;
}

.holdout line {
  stroke: oklch(0.82 0.1 80 / 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.holdout circle {
  fill: oklch(0.92 0.06 250);
}

.holdout text {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: oklch(0.82 0.03 240 / 0.7);
}

.holdout .t-vault {
  fill: oklch(0.85 0.1 80 / 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  .intro .grid {
    animation: fade 1800ms var(--ease-out) 900ms both;
  }
  .intro .holdout {
    animation: fade 1000ms var(--ease-out) 3600ms both;
  }
}
