@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,700,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap");

:root {
  --hf-bg: #0c0c0d;
  --hf-surface: #171615;
  --hf-ink: #f4f1ea;
  --hf-muted: #948c82;
  --hf-accent: #a6192e;
  --hf-font-display: "Cabinet Grotesk", "Inter Tight", sans-serif;
  --hf-font-body: "Inter Tight", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--hf-bg); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--hf-bg);
  color: var(--hf-ink);
  font-family: var(--hf-font-body);
  overflow-x: hidden;
}

img, video { max-width: 100%; }

a { color: inherit; }

/* ---------- Nav + sound toggle ---------- */

.site-nav {
  position: fixed;
  z-index: 50;
  top: 0; right: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}

.site-nav__mark, .site-nav__link {
  pointer-events: auto;
  color: var(--hf-ink);
  text-decoration: none;
}

.site-nav__mark {
  font-family: var(--hf-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-nav__link {
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  color: var(--hf-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__link:hover, .site-nav__link:focus-visible {
  border-color: var(--hf-accent);
  color: var(--hf-ink);
}

.sound-toggle {
  position: fixed;
  z-index: 50;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: max(1.5rem, env(safe-area-inset-left));
}

.sound-toggle__button {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--hf-ink) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hf-bg) 70%, transparent);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sound-toggle__button:hover, .sound-toggle__button:focus-visible {
  border-color: var(--hf-accent);
}

.sound-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  height: 0.9rem;
}

.sound-toggle__bars i {
  display: block;
  width: 0.15rem;
  height: 40%;
  background: var(--hf-muted);
  border-radius: 1px;
  transition: background 0.2s ease;
}

.sound-toggle__button[data-playing] .sound-toggle__bars i {
  background: var(--hf-accent);
  animation: sound-toggle-bar 0.9s ease-in-out infinite;
}

.sound-toggle__bars i:nth-child(1) { animation-delay: -0.6s; }
.sound-toggle__bars i:nth-child(2) { height: 100%; animation-delay: -0.3s; }
.sound-toggle__bars i:nth-child(3) { height: 65%; }

@keyframes sound-toggle-bar {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sound-toggle__button[data-playing] .sound-toggle__bars i {
    animation: none;
    height: 70%;
  }
}

/* ---------- Scroll-scrub hero ---------- */

.scroll-scrub {
  --ss-progress: 0;
  position: relative;
  isolation: isolate;
  color: var(--hf-ink);
  background: var(--hf-bg);
}

.scroll-scrub__stage {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--hf-bg);
}

.scroll-scrub__media, .scroll-scrub__picture, .scroll-scrub__poster, .scroll-scrub__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-scrub__poster, .scroll-scrub__video {
  display: block;
  object-fit: cover;
  object-position: 50% 45%;
}

.scroll-scrub__poster { z-index: 0; }
.scroll-scrub__video { z-index: 1; opacity: 0; transition: opacity 0.4s ease; }
.scroll-scrub__video[data-painted="true"] { opacity: 1; }
.scroll-scrub__video[data-painted="true"] ~ .scroll-scrub__poster,
.scroll-scrub__poster[data-hidden="true"] { visibility: hidden; }

.scroll-scrub__progress {
  position: absolute;
  z-index: 5;
  top: 0; right: 0; left: 0;
  height: 2px;
  background: color-mix(in srgb, var(--hf-ink) 14%, transparent);
  pointer-events: none;
}

.scroll-scrub__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hf-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.scroll-scrub__story {
  position: relative;
  z-index: 3;
  margin-top: -100dvh;
  pointer-events: none;
}

.scroll-scrub__chapter {
  position: relative;
  min-height: 500dvh; /* single ~12s take, scroll weight 5 */
}

.scroll-scrub__chapter-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem);
  pointer-events: none;
}

.scroll-scrub__copy {
  position: relative;
  width: min(40rem, 48vw);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-scrub__copy[data-visible="true"] { opacity: 1; }

.scroll-scrub__copy::before {
  position: absolute;
  z-index: -1;
  inset: -3rem -5rem;
  content: "";
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--hf-bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--hf-bg) 58%, transparent) 52%,
    transparent 76%);
  pointer-events: none;
}

.scroll-scrub__kicker {
  max-width: 30ch;
  margin: 0 0 1rem;
  color: var(--hf-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-scrub__title {
  max-width: 13ch;
  margin: 0;
  color: var(--hf-ink);
  font-family: var(--hf-font-display);
  font-size: clamp(2.75rem, 6vw, 6.75rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.scroll-scrub__body {
  max-width: 42ch;
  margin: 1.5rem 0 0;
  color: var(--hf-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .scroll-scrub__poster, .scroll-scrub__video { object-position: 50% 45%; }
  .scroll-scrub__chapter-pin {
    align-items: flex-end;
    padding: 6.5rem max(1.25rem, env(safe-area-inset-right)) calc(4rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  }
  .scroll-scrub__copy { width: min(100%, 36rem); }
  .scroll-scrub__title { max-width: 14ch; font-size: clamp(2.3rem, 11vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-scrub__chapter { min-height: 100dvh; }
  .scroll-scrub__copy { opacity: 1 !important; }
}

/* ---------- Generic sections ---------- */

.hf-section {
  position: relative;
  z-index: 3;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 6vw, 6rem);
  background: var(--hf-bg);
  color: var(--hf-ink);
}

.hf-section__title {
  max-width: 16ch;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-family: var(--hf-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hf-section__intro { max-width: 52ch; margin-bottom: clamp(3rem, 7vw, 5rem); }

.hf-section__lead {
  color: var(--hf-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
}

/* Manifest */

.hf-manifest__list {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 46rem;
  margin: 0; padding: 0;
  list-style: none;
}

.hf-manifest__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid color-mix(in srgb, var(--hf-ink) 14%, transparent);
}

.hf-manifest__index {
  font-family: var(--hf-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hf-accent);
}

.hf-manifest__title {
  margin: 0 0 0.5rem;
  font-family: var(--hf-font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

.hf-manifest__body { margin: 0; max-width: 42ch; color: var(--hf-muted); line-height: 1.6; }

/* Moment */

.hf-moment {
  position: relative;
  z-index: 3;
  display: flex;
  overflow: hidden;
  align-items: flex-end;
  min-height: 70dvh;
}

.hf-moment__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hf-moment__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--hf-bg) 88%, transparent) 0%, transparent 55%);
}

.hf-moment__line {
  position: relative;
  z-index: 1;
  max-width: 20ch;
  margin: 0;
  padding: clamp(2rem, 6vw, 4rem);
  color: var(--hf-ink);
  font-family: var(--hf-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Founder */

.hf-founder {
  display: grid;
  grid-template-columns: minmax(14rem, 26rem) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.hf-founder__media {
  position: sticky;
  top: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 0.5rem;
}

.hf-founder__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 4px;
}

.hf-founder__studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hf-founder__studio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.hf-founder__kicker {
  margin: 0 0 1rem;
  color: var(--hf-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hf-founder__title {
  max-width: 22ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--hf-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.hf-founder__copy p {
  max-width: 56ch;
  margin: 0 0 1.4rem;
  color: var(--hf-muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}

.hf-founder__charts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  max-width: 56ch;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2rem) 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--hf-ink) 14%, transparent);
}

.hf-founder__charts li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--hf-ink);
  font-family: var(--hf-font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.hf-founder__charts li span {
  color: var(--hf-muted);
  font-family: var(--hf-font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .hf-founder {
    grid-template-columns: 1fr;
  }

  .hf-founder__media {
    position: static;
  }

  .hf-founder__photo {
    aspect-ratio: 4 / 3;
  }
}

/* References */

.hf-references__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-references__item a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.hf-references__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.hf-references__item a:hover img,
.hf-references__item a:focus-visible img {
  transform: scale(1.03);
  filter: grayscale(0);
}

/* Services */

.hf-services__list {
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--hf-ink) 14%, transparent);
}

.hf-services__row {
  display: grid;
  align-items: baseline;
  grid-template-columns: 3rem minmax(10rem, 20rem) 1fr;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hf-ink) 14%, transparent);
  transition: padding-left 0.3s ease;
}

.hf-services__row:hover { padding-left: 0.75rem; }

.hf-services__index { color: var(--hf-accent); font-size: 0.85rem; }

.hf-services__title {
  margin: 0;
  font-family: var(--hf-font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
}

.hf-services__body { margin: 0; color: var(--hf-muted); line-height: 1.6; }

@media (max-width: 640px) {
  .hf-services__row { grid-template-columns: 2.5rem 1fr; }
  .hf-services__body { grid-column: 2; }
}

/* Team */

.hf-team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  margin: 0; padding: 0;
  list-style: none;
}

.hf-team__card { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: start; }

.hf-team__mark {
  display: flex;
  width: 6.5rem; height: 6.5rem;
  align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--hf-ink) 22%, transparent);
  border-radius: 999px;
  color: var(--hf-accent);
  font-family: var(--hf-font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.hf-team__photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid color-mix(in srgb, var(--hf-ink) 22%, transparent);
}

.hf-team__name { margin: 0; font-family: var(--hf-font-display); font-size: 1.15rem; font-weight: 600; }

.hf-team__role {
  margin: 0.15rem 0 0.5rem;
  color: var(--hf-accent);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hf-team__text { margin: 0; color: var(--hf-muted); font-size: 0.92rem; line-height: 1.55; }

.hf-team__ig {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--hf-muted);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hf-team__ig:hover, .hf-team__ig:focus-visible { color: var(--hf-ink); border-color: var(--hf-accent); }

@media (max-width: 720px) {
  .hf-team__grid { grid-template-columns: 1fr; }
}

/* Partners */

.hf-partners__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin: 0; padding: 0;
  list-style: none;
}

.hf-partners__item { max-width: 22rem; }

.hf-partners__name {
  color: var(--hf-ink);
  font-family: var(--hf-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hf-partners__name:hover, .hf-partners__name:focus-visible { border-color: var(--hf-accent); }

.hf-partners__text { margin: 0.3rem 0 0; color: var(--hf-muted); font-size: 0.9rem; line-height: 1.5; }

/* Kontakt */

.hf-kontakt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(6rem, 14vw, 10rem);
  padding-bottom: clamp(6rem, 14vw, 10rem);
  text-align: center;
}

.hf-kontakt__eyebrow {
  margin: 0 0 1rem;
  color: var(--hf-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hf-kontakt__title {
  max-width: 22ch;
  margin: 0 0 2.5rem;
  font-family: var(--hf-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact-cta {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border: 1px solid var(--hf-ink);
  border-radius: 999px;
  color: var(--hf-ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-cta__fill {
  position: absolute;
  inset: 0;
  transform: translateY(101%);
  background: var(--hf-accent);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-cta__label { position: relative; z-index: 1; }

.contact-cta:hover, .contact-cta:focus-visible { border-color: var(--hf-accent); color: var(--hf-ink); }
.contact-cta:hover .contact-cta__fill, .contact-cta:focus-visible .contact-cta__fill { transform: translateY(0%); }
.contact-cta:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .contact-cta, .contact-cta__fill { transition: none; }
}

/* Footer */

.hf-footer {
  position: relative;
  z-index: 3;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 6rem) clamp(3rem, 6vw, 4rem);
  border-top: 1px solid color-mix(in srgb, var(--hf-ink) 14%, transparent);
  background: var(--hf-bg);
  color: var(--hf-muted);
}

.hf-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hf-footer__mark {
  color: var(--hf-ink);
  font-family: var(--hf-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hf-footer__meta { font-size: 0.85rem; }

.hf-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.hf-footer__social a { color: var(--hf-muted); text-decoration: none; }
.hf-footer__social a:hover, .hf-footer__social a:focus-visible { color: var(--hf-accent); }

.hf-footer__legal summary { cursor: pointer; color: var(--hf-ink); font-size: 0.85rem; }

.hf-footer__legal-body {
  display: grid;
  gap: 0.75rem;
  max-width: 60ch;
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.hf-footer__legal-body a { color: var(--hf-muted); }

/* Lightbox */

.hf-team__photo,
.hf-founder__photo,
.hf-founder__studio img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(4, 4, 5, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--hf-ink) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hf-bg) 70%, transparent);
  color: var(--hf-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: var(--hf-accent);
}

.lightbox--video .lightbox__video-frame {
  width: min(90vw, 800px);
  aspect-ratio: 16 / 9;
}

.lightbox--video iframe {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hf-references__item { cursor: pointer; }
