
:root {
  --duration: 720ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --white: #fff;
  --ink: #101010;
  --qtee-yellow: #f7d548;
  --qtee-purple: #a92cc5;
}

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

html {
  background: #0f0f10;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #0f0f10;
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-anchor: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.split {
  display: flex;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.panel {
  position: relative;
  flex: 0 0 50%;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #222;
  transition:
    flex-basis var(--duration) var(--ease),
    filter var(--duration) var(--ease);
}

.panel__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  transition:
    transform 1.05s var(--ease),
    filter var(--duration) ease,
    object-position var(--duration) var(--ease);
}

.panel--tobias .panel__image {
  object-position: 52% 50%;
  transform: scale(1.02);
}

.panel--qtee .panel__image {
  object-position: 52% 50%;
  transform: scale(1.02);
}

.panel__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--duration) ease;
}

.panel--tobias .panel__veil {
  background:
    linear-gradient(180deg, rgba(8, 18, 24, .04) 0%, rgba(8, 18, 24, .05) 36%, rgba(7, 12, 18, .82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 48%);
}

.panel--qtee .panel__veil {
  background:
    linear-gradient(180deg, rgba(20, 8, 18, .02) 0%, rgba(20, 8, 18, .05) 38%, rgba(20, 7, 18, .78) 100%),
    linear-gradient(90deg, rgba(40, 8, 40, .12), transparent 50%);
}

.panel__content {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4vw, 68px);
  right: clamp(24px, 4vw, 68px);
}

.panel__content {
  bottom: clamp(28px, 6vh, 70px);
  transition: transform var(--duration) var(--ease);
}

.panel__title {
  margin: 0;
  max-width: 10ch;
  color: #fff;
  font-size: clamp(54px, 6vw, 112px);
  font-weight: 860;
  letter-spacing: -.062em;
  line-height: .86;
  text-wrap: balance;
  text-shadow: 0 8px 36px rgba(0,0,0,.22);
  transition:
    font-size var(--duration) var(--ease),
    transform 780ms cubic-bezier(.65, 0, .35, 1);
}

.panel--qtee .panel__title {
  letter-spacing: -.055em;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  transition:
    opacity 360ms ease,
    transform var(--duration) var(--ease),
    visibility 0s linear 0s;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 52px;
  height: 52px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  background: rgba(10,10,10,.20);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.social i {
  width: 18px;
  text-align: center;
  font-size: 18px;
}

.social span {
  font-size: 12px;
  font-weight: 700;
}

.social:hover,
.social:focus-visible {
  outline: none;
  transform: translateY(-3px);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.70);
}

.panel--qtee .social {
  border-color: rgba(247,213,72,.42);
}

.panel--qtee .social:hover,
.panel--qtee .social:focus-visible {
  color: #241325;
  border-color: var(--qtee-yellow);
  background: var(--qtee-yellow);
}

.panel__focus {
  position: absolute;
  inset: 0;
  z-index: 2;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.panel__content {
  pointer-events: none;
}

.socials {
  pointer-events: auto;
}

.panel:has(.social:hover) .panel__focus,
.panel:has(.social:focus-visible) .panel__focus {
  pointer-events: none;
}

.split[data-active="tobias"] .panel--tobias,
.split[data-active="qtee"] .panel--qtee {
  flex-basis: 65%;
}

.split[data-active="tobias"] .panel--qtee,
.split[data-active="qtee"] .panel--tobias {
  flex-basis: 35%;
}

.split[data-active="tobias"] .panel--tobias .panel__image,
.split[data-active="qtee"] .panel--qtee .panel__image {
  transform: scale(1.035);
}

.split[data-active="tobias"] .panel--tobias .panel__content,
.split[data-active="qtee"] .panel--qtee .panel__content {
  transform: translateY(-5px);
}

.split[data-active="tobias"] .panel--qtee .panel__image,
.split[data-active="qtee"] .panel--tobias .panel__image {
  filter: saturate(.86) brightness(.88);
}

@media (min-width: 861px) {
  .panel__content {
    bottom: calc(clamp(28px, 6vh, 70px) + 78px);
  }

  .socials {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 26px;
  }

  .panel--qtee .socials {
    gap: 7px;
  }

  .panel--qtee .social {
    padding-inline: 12px;
  }

  .split:not([data-active]) .panel--qtee .social span {
    display: none;
  }

  .split[data-active="qtee"] .panel--tobias .panel__title {
    font-size: clamp(38px, 3.6vw, 60px);
  }

  .panel--qtee .panel__title {
    transition: font-size 780ms cubic-bezier(.65, 0, .35, 1);
  }

  .split[data-active="tobias"] .panel--qtee .panel__title {
    font-size: clamp(38px, 3.6vw, 60px);
  }

  .split[data-active="tobias"] .panel--qtee .socials,
  .split[data-active="qtee"] .panel--tobias .socials {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition-delay: 0s, 0s, 360ms;
  }
}

.copy-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 12, 16, .88);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
  pointer-events: none;
}

.copy-toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.pager {
  display: none;
}

@media (max-width: 860px) {
  .split {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .panel {
    width: 100%;
    height: 63dvh;
    min-height: 360px;
    flex: none;
    transition:
      height var(--duration) var(--ease),
      opacity var(--duration) ease;
  }

  .panel.is-active {
    height: 78dvh;
    opacity: 1;
  }

  .panel:not(.is-active) {
    height: 48dvh;
    min-height: 340px;
    opacity: .88;
  }

  .panel__content {
    left: 22px;
    right: 22px;
  }

  .panel__content {
    bottom: 22px;
  }

  .panel__title {
    font-size: clamp(34px, 11vw, 52px);
  }

  .socials {
    gap: 8px;
    margin-top: 18px;
  }

  .social {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0;
  }

  .social span {
    display: none;
  }

  .social i {
    font-size: 19px;
  }

  .panel__focus {
    display: none;
  }

  .panel:not(.is-active) .socials {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition-delay: 0s, 0s, 360ms;
  }

  .panel--tobias .panel__image {
    object-position: 52% 42%;
  }

  .panel--qtee .panel__image {
    object-position: 50% 46%;
  }

  .pager {
    position: fixed;
    z-index: 20;
    top: 50%;
    right: max(10px, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .pager__dot {
    width: 4px;
    height: 18px;
    border-radius: 100px;
    background: rgba(255,255,255,.30);
    box-shadow: 0 1px 8px rgba(0,0,0,.15);
    transition:
      height 250ms ease,
      background 250ms ease;
  }

  .pager__dot.is-active {
    height: 36px;
    background: rgba(255,255,255,.92);
  }

  .split[data-active] .panel {
    flex-basis: auto;
  }

  .split[data-active] .panel .panel__image {
    transform: scale(1.02);
    filter: none;
  }
}

@media (max-width: 430px) {
  .panel__title {
    font-size: clamp(32px, 10.8vw, 48px);
  }

}

@media (hover: hover) and (pointer: fine) {
  .panel--qtee,
  .panel--qtee .panel__focus,
  .panel--qtee .social {
    cursor: url("assets/qtee-hand-cursor.png?v=2") 8 5, pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
