:root {
  --split: 15%;
  --radius: 10px;
  --page-padding-x: clamp(1.5rem, 6vw, 5rem);
  --page-padding-y: clamp(1.75rem, 6vh, 4rem);
  --white: #f7f7f2;
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Doto", system-ui, sans-serif;
  background: linear-gradient(
    90deg,
    var(--white) 0,
    var(--white) var(--split),
    var(--black) var(--split),
    var(--black) 100%
  );
  color: var(--white);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: var(--page-padding-y) var(--page-padding-x);
  overflow: hidden;
}

.hero-copy {
  max-width: min(78vw, 66rem);
  padding: clamp(0.65rem, 2vw, 1.2rem);
  border-radius: var(--radius);
}

h1,
.subtitle {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.015em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.92;
}

.subtitle {
  margin: 70px 0 0 30px;
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  line-height: 1.2;
  text-align: right;
}

.subtitleSmall {
  margin: 0 0 10px 30px;
  font-size: clamp(0.5rem, 9vw, 1.1rem);
  line-height: 0;
  text-align: right;
}

.contact-list {
  position: absolute;
  left: calc(var(--split) - clamp(7rem, 13vw, 10rem));
  bottom: clamp(28px, 6vh, 48px);
  display: grid;
  gap: 0;
  width: min(28rem, calc(100vw - 2rem));
  padding: 0.85rem;
  border-radius: var(--radius);
  font-style: normal;
  font-size: 18px;
  line-height: 1.15;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 1.8rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.28rem;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  outline-offset: 4px;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon path:first-child,
.icon rect:first-child {
  fill: none;
}

.icon-text {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.gradient-text {
  color: var(--white);
  mix-blend-mode: difference;
}

.scroll-cue {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  display: flex;
  gap: clamp(0.45rem, 1.2vw, 0.8rem);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.scroll-cue span {
  display: block;
  width: clamp(1.2rem, 2.6vw, 2rem);
  height: clamp(1.2rem, 2.6vw, 2rem);
  border-color: rgba(96, 214, 255, 0.88);
  border-style: solid;
  border-width: 0.16rem 0.16rem 0 0;
  filter:
    drop-shadow(0 0 0.25rem rgba(60, 184, 255, 0.72))
    drop-shadow(0 0 0.8rem rgba(34, 135, 255, 0.36));
  animation-duration: 1.35s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-cue span:nth-child(2) {
  animation-delay: 0.18s;
}

.scroll-cue span:nth-child(3) {
  animation-delay: 0.36s;
}

.scroll-cue-right {
  top: 50%;
  right: clamp(0.7rem, 2.5vw, 1.5rem);
  transform: translateY(-50%);
}

.scroll-cue-right span {
  transform: rotate(45deg);
  animation-name: nudge-right;
}

.scroll-cue-bottom {
  left: 50%;
  bottom: clamp(0.8rem, 3vw, 1.8rem);
  flex-direction: column;
  transform: translateX(-50%);
}

.scroll-cue-bottom span {
  transform: rotate(135deg);
  animation-name: nudge-down;
}

@keyframes nudge-right {
  0% {
    opacity: 0;
    transform: translateX(-0.55rem) rotate(45deg);
  }

  35% {
    opacity: 1;
  }

  70% {
    opacity: 0.4;
    transform: translateX(0.45rem) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: translateX(0.8rem) rotate(45deg);
  }
}

@keyframes nudge-down {
  0% {
    opacity: 0;
    transform: translateY(-0.55rem) rotate(135deg);
  }

  35% {
    opacity: 1;
  }

  70% {
    opacity: 0.4;
    transform: translateY(0.45rem) rotate(135deg);
  }

  100% {
    opacity: 0;
    transform: translateY(0.8rem) rotate(135deg);
  }
}

@media (max-width: 720px) {
  :root {
    --page-padding-x: clamp(1rem, 5vw, 1.5rem);
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.15rem, 13vw, 5.4rem);
  }

  .hero-copy {
    max-width: 92vw;
    padding: 0.55rem;
  }

  .contact-list {
    left: max(0.8rem, calc(var(--split) - 5.6rem));
    right: 0.8rem;
    width: auto;
    gap: 0.6rem;
    padding: 0.5rem;
  }

  .contact-link {
    gap: 0.55rem;
  }

  .scroll-cue {
    opacity: 0.58;
  }

  .scroll-cue span {
    width: 1rem;
    height: 1rem;
    border-width: 0.12rem 0.12rem 0 0;
  }

  .scroll-cue-right {
    right: 0.55rem;
  }

  .scroll-cue-bottom {
    left: 50%;
    bottom: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .scroll-cue span {
    animation: none;
  }
}
