@font-face {
  font-family: "Canterbury";
  src:
    url("fonts/Canterbury.woff") format("woff"),
    url("fonts/Canterbury.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Grusskarten Gotisch";
  src:
    url("fonts/GrusskartenGotisch.woff") format("woff"),
    url("fonts/GrusskartenGotisch.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Osifont";
  src:
    url("fonts/osifont.woff") format("woff"),
    url("fonts/osifont.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-bg: #001a14;
  --page-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
}

/* Shared pages: base fullscreen layout for compact routes. */
.home {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Screen readers: preserve real text for canvas-led display. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Homepage: particles behind binary title and plain investor link. */
.home {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 12vh, 8rem) 3vw clamp(4.5rem, 10vh, 7rem);
}

.gothic-letter {
  font-family: "Grusskarten Gotisch", "Canterbury", "Times New Roman", serif;
}

.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.44;
}

.brand-wordmark {
  --wordmark-glow: 0;
  --wordmark-shadow-x: 0px;
  --wordmark-shadow-y: 0px;
  position: absolute;
  top: clamp(1.25rem, 4vh, 2.75rem);
  left: 50%;
  z-index: 1;
  margin: 0;
  transform: translateX(-50%);
  font-family: "Canterbury", "Times New Roman", serif;
  font-size: clamp(1.45rem, 3.15vw, 2.75rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.32);
  text-align: center;
  white-space: nowrap;
  text-shadow:
    var(--wordmark-shadow-x) var(--wordmark-shadow-y) 12px rgba(190, 226, 210, calc(0.025 + var(--wordmark-glow) * 0.08)),
    0 0 1px rgba(255, 255, 255, calc(0.08 + var(--wordmark-glow) * 0.08));
  opacity: calc(0.72 + var(--wordmark-glow) * 0.14);
  transition: opacity 220ms ease, text-shadow 220ms ease;
}

.magnet-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(98vw, 1680px);
  height: min(70vh, 650px);
  margin: 0;
  transform: translate(-50%, -50%);
}

.magnet-title canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.investor-link {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  font-family: "Osifont", Arial, sans-serif;
  font-size: clamp(0.84rem, 1.3vw, 1rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

.investor-link:hover,
.investor-link:focus-visible {
  color: rgba(210, 235, 224, 0.42);
}

/* Brands: one scroll scene built around the house mark. */
.brands-page {
  min-height: 100vh;
  font-family: "Osifont", Arial, sans-serif;
}

.brands-kicker {
  --intro-opacity: 1;
  --intro-scale: 1;
  --intro-x: 0px;
  --intro-y: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(84vw, 34rem);
  margin: 0;
  font-size: clamp(0.78rem, 1.25vw, 0.98rem);
  line-height: 1.6;
  color: rgba(210, 235, 224, 0.38);
  text-align: center;
  opacity: var(--intro-opacity);
  transform: translate(-50%, -50%) translate(var(--intro-x), var(--intro-y)) scale(var(--intro-scale));
  transform-origin: center;
}

.brands-investment-note {
  --note-opacity: 0;
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  left: 50%;
  z-index: 3;
  width: min(84vw, 34rem);
  margin: 0;
  font-size: clamp(0.84rem, 1.3vw, 1rem);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.32);
  text-align: center;
  opacity: var(--note-opacity);
  transform: translateX(-50%);
  transition: opacity 260ms ease;
}

.scroll-chevron {
  --chevron-glow: 0;
  --chevron-shadow-x: 0px;
  --chevron-shadow-y: 0px;
  --chevron-opacity: 1;
  position: absolute;
  bottom: clamp(1.7rem, 5vh, 3rem);
  left: 50%;
  z-index: 3;
  width: 0.98rem;
  height: 0.98rem;
  border-right: 1.5px solid rgba(210, 235, 224, calc(0.34 + var(--chevron-glow) * 0.16));
  border-bottom: 1.5px solid rgba(210, 235, 224, calc(0.34 + var(--chevron-glow) * 0.16));
  transform: translateX(-50%) rotate(45deg);
  opacity: calc(var(--chevron-opacity) * (0.56 + var(--chevron-glow) * 0.2));
  filter: drop-shadow(var(--chevron-shadow-x) var(--chevron-shadow-y) 10px rgba(190, 226, 210, calc(0.08 + var(--chevron-glow) * 0.12)));
  animation: chevron-nudge 2.2s ease-in-out infinite;
  transition: border-color 220ms ease, filter 220ms ease, opacity 220ms ease;
}

@keyframes chevron-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg);
  }

  50% {
    transform: translateX(-50%) translateY(0.32rem) rotate(45deg);
  }
}

/* Brands scroll: zooms into the P, then places text around it. */
.brand-scroll {
  min-height: 430vh;
  position: relative;
}

.brand-scroll-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.brand-scroll-mark {
  --brand-scale: 1;
  --brand-opacity: 1;
  --brand-rest-opacity: 1;
  --brand-left: 0px;
  --brand-top: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  margin: 0;
  transform: translate(var(--brand-left), var(--brand-top)) scale(var(--brand-scale));
  transform-origin: 0 0;
  font-family: "Canterbury", "Times New Roman", serif;
  font-size: clamp(5.3rem, 17vw, 17rem);
  line-height: 1;
  color: rgba(255, 255, 255, calc(0.04 + var(--brand-opacity) * 0.025));
  white-space: nowrap;
}

.scroll-p {
  display: inline-block;
  color: rgba(255, 255, 255, 0.075);
}

.brand-rest {
  opacity: var(--brand-rest-opacity);
}

.brand-trace {
  --trace-opacity: 0;
  --trace-x: 0px;
  --trace-y: 18px;
  --trace-scale: 0.96;
  position: absolute;
  z-index: 2;
  font-family: "Osifont", Arial, sans-serif;
  font-size: clamp(0.82rem, 1.45vw, 1.12rem);
  line-height: 1.2;
  color: rgba(210, 235, 224, 0.52);
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  opacity: var(--trace-opacity);
  transform: translate(var(--trace-x), var(--trace-y)) scale(var(--trace-scale)) rotate(var(--trace-rotate, 0deg));
  transition: opacity 180ms linear, transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.brand-trace::before {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--trace-line-width, 5.5rem);
  height: 1px;
  background: rgba(210, 235, 224, 0.16);
  opacity: calc(var(--trace-opacity) * 0.8);
  transform: translateY(-50%) rotate(var(--trace-line-rotate, 0deg));
}

.trace-utilities {
  top: 21%;
  left: 16%;
  --trace-rotate: -8deg;
  --trace-line-rotate: 18deg;
  --trace-line-width: 9rem;
}

.trace-utilities::before,
.trace-publishing::before {
  left: calc(100% + 0.7rem);
  transform-origin: left center;
}

.trace-products {
  top: 27%;
  right: 15%;
  --trace-rotate: 7deg;
  --trace-line-rotate: -20deg;
  --trace-line-width: 8.2rem;
}

.trace-products::before,
.trace-edtech::before {
  right: calc(100% + 0.7rem);
  transform-origin: right center;
}

.trace-publishing {
  bottom: 23%;
  left: 18%;
  --trace-rotate: 5deg;
  --trace-line-rotate: -16deg;
  --trace-line-width: 8rem;
}

.trace-edtech {
  bottom: 20%;
  right: 11%;
  --trace-rotate: -6deg;
  --trace-line-rotate: 16deg;
  --trace-line-width: 9rem;
}

@media (max-width: 680px) {
  .home {
    padding-inline: 1vw;
  }

  .magnet-title {
    width: 99vw;
    height: 62vh;
  }

  .brand-scroll-mark {
    font-size: clamp(3.5rem, 22vw, 7rem);
  }

  .brand-trace {
    font-size: clamp(0.72rem, 3.2vw, 0.95rem);
  }

  .trace-utilities {
    left: 8%;
  }

  .trace-products,
  .trace-edtech {
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-wordmark {
    transition: none;
  }
}
