/* Daniel Roß — scroll-driven one-pager
   Off-white ground with a full-bleed color wash that shifts per section.
   Space Grotesk for headlines, Manrope for everything else — both
   self-hosted, no runtime font requests. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4F6F8;
  --ink: #0E1620;
  --ink-mid: rgba(14, 22, 32, 0.6);
  --ink-dim: rgba(14, 22, 32, 0.36);
  --line: rgba(14, 22, 32, 0.12);
  --accent: #1449C0;
  --accent-soft: rgba(20, 73, 192, 0.14);
  --accent-warm: #C97A2E;
  --accent-violet: #6A3FC7;
  --accent-teal: #0E9C93;
  --accent-coral: #D6553F;
  --accent-green: #1E7A4C;
  --accent-rose: #C14C7A;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* scrolling still works (wheel/touch/keys are handled in JS to step one
   section at a time) — only the visible scrollbar track is hidden */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

.scrollstage {
  position: relative;
  height: 770vh;
}

.stage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-wash {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
/* depth on top of the flat JS-driven color: a soft light source (upper
   left) and a gentle vignette (lower right), plus a fine static grain so
   the wash reads as a surface rather than a flat swatch */
.bg-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(130% 100% at 82% 105%, rgba(0, 0, 0, 0.07), transparent 60%);
  pointer-events: none;
}
.bg-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
}

.content {
  position: relative;
  width: min(860px, 92vw);
  height: min(58vh, 500px);
  perspective: 900px;
}

.segment {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  opacity: 0;
}

/* letters/words flip up into place (and flip away) instead of fading —
   each unit's rotation + opacity is driven per-frame from scroll progress */
.ch, .wd {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.segment h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw + 0.8rem, 3.05rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.segment h2 em {
  font-style: normal;
  color: var(--accent);
}
/* each section gets its own headline accent — a considered four-color
   sequence (blue -> violet -> gold -> teal), never more than one at a time */
.tone-intro h2 em { color: var(--accent-green); }
.tone-control h2 em { color: var(--accent); }
.tone-audience h2 em { color: var(--accent-violet); }
.tone-leads h2 em { color: var(--accent-coral); }
.tone-users h2 em { color: var(--accent-rose); }
.tone-performance h2 em { color: var(--accent-warm); }
.tone-growth h2 em { color: var(--accent-teal); }

.segment p {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem);
  line-height: 1.55;
  color: var(--ink-mid);
}

.contact-label {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 560;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

.side-label {
  position: fixed;
  left: clamp(14px, 2.6vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}
.side-label-text {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.progress {
  position: fixed;
  right: clamp(20px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s ease, transform 0.3s ease;
}
.progress-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

.impressum-link {
  position: fixed;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vh, 32px);
  z-index: 20;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  text-decoration: none;
}
.impressum-link:hover { color: var(--ink-mid); }

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}
.scroll-hint .mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--ink-dim);
  border-radius: 13px;
  position: relative;
}
.scroll-hint .wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--ink-dim);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { top: 7px; opacity: 1; }
  55% { top: 18px; opacity: 0; }
  56% { top: 7px; opacity: 0; }
  100% { top: 7px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-dot { transition: background 0.3s ease; }
  .progress-dot.active { transform: none; }
  .scroll-hint .wheel { animation: none; }
}
