:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --app-height: 100svh;
  --page-pad-x: clamp(20px, 5vw, 80px);
  --page-pad-y: clamp(24px, 4.2vh, 52px);
  --logo-w: clamp(100px, 8vw, 128px);
  --logo-h: calc(var(--logo-w) * 93 / 171);
  --heading-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  --contact-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
  --phone-size: clamp(0.8125rem, 0.75rem + 0.28vw, 0.9375rem);
  --gap-logo: clamp(24px, 4.4vh, 48px);
  --gap-headline: clamp(14px, 2vh, 20px);
  --gap-showreel: clamp(20px, 3.6vh, 40px);
  --font: "Satoshi", system-ui, sans-serif;
  --loop-opacity: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-black);
}

body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
}

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

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: var(--app-height, 100svh);
  max-height: var(--app-height, 100svh);
  overflow: hidden;
  padding: max(var(--page-pad-y), env(safe-area-inset-top, 0px))
    max(var(--page-pad-x), env(safe-area-inset-right, 0px))
    max(var(--page-pad-y), env(safe-area-inset-bottom, 0px))
    max(var(--page-pad-x), env(safe-area-inset-left, 0px));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.logo {
  width: var(--logo-w);
  height: var(--logo-h);
  margin-bottom: var(--gap-logo);
  overflow: clip;
}

.logo img {
  display: block;
  width: var(--logo-w);
  height: var(--logo-h);
  object-fit: cover;
}

.brand h1 {
  margin-bottom: var(--gap-headline);
  font-size: var(--heading-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  font-style: normal;
  font-size: var(--contact-size);
}

.contact a {
  color: var(--color-white);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact a[href^="mailto"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.contact a[href^="tel"] {
  font-size: var(--phone-size);
  color: rgba(255, 255, 255, 0.72);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--color-white);
}

.contact a:focus-visible {
  outline: 1px solid var(--color-white);
  outline-offset: 4px;
}

.showreel {
  display: grid;
  justify-items: center;
  align-content: start;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-top: var(--gap-showreel);
  container-type: size;
}

.showreel__frame {
  position: relative;
  width: min(1000px, 100cqw, calc(100cqh * 16 / 9));
  height: min(100cqh, calc(min(1000px, 100cqw) * 9 / 16));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-black);
}

.showreel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--color-black);
  opacity: var(--loop-opacity);
}

.showreel__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.28) 42%, transparent 100%);
}

.showreel__playback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.showreel__play {
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.45));
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.showreel__frame[data-paused="true"] .showreel__play {
  opacity: 1;
  transform: scale(1);
}

.showreel__sound {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--color-white);
  cursor: pointer;
}

.showreel__sound svg {
  display: none;
  width: 22px;
  height: 22px;
}

.showreel__frame[data-muted="true"] .showreel__sound-off,
.showreel__frame:not([data-muted="true"]) .showreel__sound-on {
  display: block;
}

.showreel__playback:focus-visible,
.showreel__sound:focus-visible {
  outline: 1px solid var(--color-white);
  outline-offset: 3px;
}

.logo,
.brand h1,
.contact,
.showreel {
  opacity: 0;
}

.logo {
  animation: fade-in 0.9s ease-out 0.12s forwards;
}

.brand h1 {
  animation: fade-in 0.95s ease-out 0.38s forwards;
}

.contact {
  animation: fade-in 0.95s ease-out 0.62s forwards;
}

.showreel {
  animation: fade-in 1.15s ease-out 0.88s forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  :root {
    --heading-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
    --gap-logo: clamp(24px, 4.5vh, 44px);
    --gap-showreel: clamp(24px, 4.2vh, 40px);
  }

  .showreel__frame {
    width: min(1000px, 100cqw, calc(100cqh * 16 / 9));
  }
}

@media (max-width: 768px) {
  :root {
    --page-pad-x: 16px;
    --page-pad-y: 18px;
    --heading-size: clamp(2.125rem, 8.6vw, 2.625rem);
    --contact-size: 1.0625rem;
    --phone-size: 0.9375rem;
    --logo-w: clamp(128px, 36vw, 156px);
    --gap-logo: 18px;
    --gap-headline: 12px;
    --gap-showreel: 18px;
  }

  .page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 32px);
  }

  .showreel {
    width: calc(100% + 2 * var(--page-pad-x));
    margin-left: calc(-1 * var(--page-pad-x));
    margin-right: calc(-1 * var(--page-pad-x));
    align-content: start;
    justify-items: center;
  }

  .showreel__frame {
    width: min(100cqw, calc(100cqh * 16 / 9));
    height: min(100cqh, calc(100cqw * 9 / 16));
    min-height: 0;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .showreel__video {
    object-fit: contain;
    object-position: center;
  }

  .showreel__fade {
    height: 22%;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.18) 38%, transparent 100%);
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  :root {
    --page-pad-y: 12px;
    --page-pad-x: 20px;
    --heading-size: 1.375rem;
    --logo-w: 96px;
    --gap-logo: 10px;
    --gap-headline: 8px;
    --gap-showreel: 12px;
  }

  .page {
    padding-top: max(var(--page-pad-y), env(safe-area-inset-top, 0px));
  }

  .showreel {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .showreel__frame {
    width: min(100%, calc(100cqh * 16 / 9));
    height: min(100%, calc(100cqw * 9 / 16));
    aspect-ratio: 16 / 9;
  }
}

@supports not (width: 1cqh) {
  .showreel__frame {
    width: min(1000px, calc(100vw - 80px));
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .brand h1,
  .contact,
  .showreel {
    opacity: 1;
    animation: none;
  }

  .showreel__video {
    opacity: 1;
  }

  .showreel__play {
    transition: none;
  }
}
