@font-face {
  font-family: "Quicksand";
  src: url("assets/Quicksand-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("assets/Urbanist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff6900;
  --page: #fdfdfc;
  --selection-bg: #6A00FF;
  --selection-fg: #fff;
  --selection-inverse-bg: #fff;
  --selection-inverse-fg: #6A00FF;
  --side: clamp(1.5rem, 5.4vw, 7rem);
  --space-1: clamp(.65rem, 1vw, 1rem);
  --space-2: clamp(1.1rem, 1.8vw, 1.75rem);
  --space-3: clamp(1.75rem, 3vw, 3rem);
  --space-4: clamp(3.5rem, 7vw, 8rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--orange);
  background: var(--page);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
}

/* Textauswahl auf weißen Flächen: violetter Hintergrund, weiße Schrift. */
::selection { color: var(--selection-fg); background: var(--selection-bg); }
::-moz-selection { color: var(--selection-fg); background: var(--selection-bg); }

/* Alternative Textauswahl: orange Hintergrund, weiße Schrift.
--selection-bg: var(--orange);
--selection-fg: var(--page);
--selection-inverse-bg: var(--page);
--selection-inverse-fg: var(--orange);
*/

/* Textauswahl in orangefarbenen Flächen: Weiß als Kontrastfläche. */
.statement ::selection,
.site-footer ::selection,
.background-section ::selection,
.contact-form-section ::selection,
.nav-link.is-active::selection { color: var(--selection-inverse-fg); background: var(--selection-inverse-bg); }

.statement ::-moz-selection,
.site-footer ::-moz-selection,
.background-section ::-moz-selection,
.contact-form-section ::-moz-selection,
.nav-link.is-active::-moz-selection { color: var(--selection-inverse-fg); background: var(--selection-inverse-bg); }

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

#startup-animation {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--page);
  touch-action: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

#startup-animation.is-complete {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

#startup-logo {
  position: relative;
  z-index: 1;
  display: flex;
  gap: .018em;
  color: var(--orange);
  font-family: "Urbanist", sans-serif;
  font-size: clamp(4.75rem, 14vw, 14.5rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.055em;
  user-select: none;
}

#startup-logo span { display: block; will-change: transform; }
#startup-traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#startup-traces line { stroke: var(--orange); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.site-header {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  padding: clamp(1.75rem, 4vw, 4.75rem) var(--side) 0;
  font-size: clamp(1.35rem, 1.85vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 1.12em;
  padding: 0 .18em .05em;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.nav-link.is-active { color: var(--page); background: var(--orange); }

.primary-nav { display: flex; gap: clamp(1.25rem, 2.8vw, 3.75rem); }
.primary-nav a, .site-footer a { transition: opacity 160ms ease; }
.primary-nav a:hover, .site-footer a:hover { opacity: .62; }

.hero { min-height: calc(100svh - clamp(11rem, 17vw, 16rem)); }

h1 {
  margin: clamp(4.5rem, 10vh, 8.5rem) var(--side) 0;
  font-size: clamp(5.5rem, 11vw, 13rem);
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -0.055em;
}

.statement {
  margin: 0;
  color: var(--page);
  background: var(--orange);
  font-size: clamp(1.05rem, 1.35vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

.statement-problem {
  width: min(49vw, 60rem);
  margin-top: clamp(4.5rem, 9vh, 8rem);
  padding: var(--space-2) var(--side) var(--space-2);
}

.statement-problem p { margin: 0; }
.statement-problem p:nth-child(2) { font-weight: 700; }

.statement-purpose {
  width: min(66vw, 82rem);
  margin-top: var(--space-1);
  padding: var(--space-1) var(--side);
  font-weight: 700;
}

.site-footer {
  padding: var(--space-2) var(--side);
  background: var(--orange);
  color: var(--page);
  font-size: clamp(.8rem, .95vw, 1.15rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: .7rem clamp(1.75rem, 2.7vw, 3.5rem); }

@media (max-width: 700px) {
  :root { --side: clamp(1.25rem, 6vw, 2rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .primary-nav { width: 100%; justify-content: space-between; gap: .55rem 1.1rem; }
  .hero { min-height: auto; padding-bottom: clamp(4.5rem, 12vw, 6.5rem); }
  h1 { margin-top: clamp(4.75rem, 16vw, 6.5rem); font-size: clamp(4.75rem, 24vw, 7rem); }
  .statement-problem, .statement-purpose { width: calc(100% - var(--side)); }
  .statement-problem { margin-top: clamp(3.25rem, 12vw, 4.75rem); }
  .statement-purpose { margin-top: var(--space-1); }
  .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header, h1, .statement { animation: appear 600ms both cubic-bezier(.2,.8,.2,1); }
  h1 { animation-delay: 100ms; }
  .statement-problem { animation-delay: 220ms; }
  .statement-purpose { animation-delay: 320ms; }
  @keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
