@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/archivo-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --orange: #ff5400;
  --pink: #ff00a1;
  --off-white: #fff;
  color: #000;
  font-family: Inter, Arial, sans-serif;
  background: #fff;
  font-optical-sizing: none;
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
img { display: block; width: 100%; height: 100%; object-fit: fill; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: var(--scene-height, 100dvh);
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}

.app-artwork {
  position: absolute;
  top: var(--art-top, 0px);
  left: var(--art-left, 0px);
  width: var(--art-width, 1024px);
  height: var(--art-height, 672px);
  transform: scale(var(--art-scale, 1));
  transform-origin: top left;
}

.background-reel,
.about-tone {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-reel { object-fit: cover; }
.home { background: #1b121a; }
.about-tone { height: var(--tone-height, 100%); background: var(--orange); }

.panel {
  position: absolute;
  display: grid;
  place-items: center;
  width: 512px;
  height: 672px;
  color: #fff;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -1.8px;
  transition: background-color .35s ease;
}

.about-panel { left: 0; top: 0; background: var(--orange); }
.home .portfolio-panel {
  left: 512px;
  top: 0;
  background: rgb(255 0 161 / .73);
  color: rgb(255 255 255 / .74);
  animation: wide-pink .5s ease-in-out both;
}
@keyframes wide-pink {
  from { background-color: rgb(255 0 161 / .41); }
  to { background-color: rgb(255 0 161 / .73); }
}

@media (hover: hover) {
  .about-panel:hover { background-color: #009e54; }
  .home .portfolio-panel:hover, .portfolio .portfolio-panel:hover { background-color: #0023d6; }
  .circle.estimate:hover, .circle.review-estimate:hover { background-color: #0023d6; }
  .circle.call:hover { background-color: #ff00a1; }
  .circle:hover { animation-play-state: paused; }
}

.about-copy {
  position: absolute;
  z-index: 3;
  top: 114px;
  left: 272px;
  width: 480px;
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: -1.2px;
  pointer-events: none;
}

.about-copy p { margin: 0 0 25px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy p:nth-child(even) { color: #000; }

.licence-strip, .portfolio-seam {
  position: absolute;
  overflow: hidden;
  font: 900 37px/41px "Archivo Black", Inter, sans-serif;
  pointer-events: none;
}

.licence-strip { top: 0; left: 0; height: 1600px; width: 55px; }
.licence-strip p {
  position: absolute;
  width: max-content;
  margin: 0;
  transform-origin: top left;
  rotate: 90deg;
  left: 32px;
  animation: running-type 7.1s ease-in-out infinite alternate;
  scale: 1.43 1;
}

.licence-strip p + p { left: 12px; top: 10px; color: #fff; }

@keyframes running-type { to { translate: 0 -754px; } }

.social {
  position: absolute;
  z-index: 5;
  left: 271px;
  top: 497px;
  width: 50px;
  height: 50px;
}
.about .social { animation: social-turn 1.9s ease-in-out infinite; }
@keyframes social-turn { 0%, 84% { rotate: 0deg; } 100% { rotate: 720deg; } }

.circle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  font: 900 15px/1 "Archivo Black", Inter, sans-serif;
  white-space: nowrap;
  color: #000;
  background: var(--off-white);
}

.circle span { display: block; transform: scaleX(1.53); }
.circle.estimate, .circle.review-estimate { z-index: 2; background: #000; color: #fff; }
.about .estimate { left: 765px; top: 225px; animation: nudge 1.8s .8s ease-in-out infinite alternate; }
.about .call { z-index: 1; left: 658px; top: 367px; animation: nudge 1.3s ease-in-out infinite alternate; }
@keyframes nudge { to { translate: 0 10px; } }

.portfolio .portfolio-panel { top: -53px; left: 0; background: var(--pink); }
.portfolio-seam {
  left: 512px;
  top: -53px;
  width: 10px;
  height: 1600px;
  font-size: 5px;
  line-height: 7px;
}
.portfolio-seam span {
  position: absolute;
  writing-mode: vertical-rl;
  white-space: nowrap;
  animation: running-type 7.1s ease-in-out infinite alternate;
}
.review { position: absolute; z-index: 1; }
.thumbtack { left: 530px; top: 81px; width: 480px; height: 184px; }
.yelp { left: 660px; top: 387px; width: 266px; height: 107px; }
.circle.review-estimate { left: 1047px; top: 212px; width: 182px; height: 182px; font-size: 11px; }
.circle.review-estimate:focus-visible { translate: -410px 23px; rotate: 0deg; }

.scene-nav {
  position: fixed;
  top: 50%;
  z-index: 10;
  width: 36px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  transform: translateY(-50%);
  opacity: .76;
}
.scene-nav:hover { opacity: 1; }
.scene-nav::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  rotate: 45deg;
}

.scene-nav.next { right: env(safe-area-inset-right, 0px); }
.scene-nav.prev { left: env(safe-area-inset-left, 0px); }
.scene-nav.prev::before { rotate: -135deg; }
.about .scene-nav { opacity: 1; }
.about .scene-nav::before { filter: drop-shadow(1px 0 #282828); }

.phone-only { display: none; }

@media (max-width: 600px) and (orientation: portrait) {
  .wide-only { display: none; }
  .phone-only { display: revert; }
  .circle.phone-only { display: grid; }
  .app-artwork { --art-width: 320px; --art-height: 568px; }
  .about { background: var(--orange); }
  .about-tone { display: none; }
  .portfolio { background: #ff4cbd; }
  .panel { width: 320px; left: 0; }
  .about-panel {
    height: var(--home-first, 277px);
    background: rgb(255 84 0 / .86);
    font-size: 64px;
    letter-spacing: -3.5px;
  }
  .home .portfolio-panel {
    left: 0;
    top: var(--home-first, 277px);
    height: var(--home-last, 291px);
    background: rgb(255 0 161 / .80);
    color: #fff;
    font-size: 61px;
    letter-spacing: -2.8px;
    animation: none;
  }

  .phone-credentials {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 16px;
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 10px;
    letter-spacing: -.24px;
    writing-mode: vertical-rl;
    animation: credentials-in 1.1s ease-in-out both;
  }

  @keyframes credentials-in { from { translate: 0 -85px; } }

  .about-copy {
    top: 90px;
    left: 25px;
    width: 267px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -1.2px;
    pointer-events: auto;
  }
  .about-copy p { margin-bottom: 8px; }
  .about-copy p:nth-child(even) { color: #fff; }

  .about .social, .portfolio .social {
    top: 78px;
    left: 285px;
    width: 21px;
    height: 21px;
    transform: scale(.63);
    animation: social-drop .8s ease-in-out both;
  }
  @keyframes social-drop {
    from { translate: 0 -139px; rotate: -360deg; transform: scale(1); }
  }

  .review-heading {
    position: absolute;
    top: 135px;
    left: 71px;
    width: 189px;
    margin: 0;
    font-size: 26px;
    line-height: 21px;
    font-weight: 750;
    letter-spacing: -1.3px;
  }

  .thumbtack { left: 71px; top: 231px; width: 175px; height: 41px; animation: thumbtack-in .5s ease-in-out both; }
  .yelp { left: 121px; top: 273px; width: 76px; height: 31px; animation: yelp-in .5s ease-in-out both; }
  @keyframes thumbtack-in { from { translate: -279px 0; } }
  @keyframes yelp-in { from { translate: 286px -1px; } }

  .scene .circle.call {
    left: 158px;
    top: 412px;
    width: 194px;
    height: 194px;
    font-size: 14px;
    animation: show-cta 1s .9s ease-in-out both;
  }
  .scene .circle.estimate {
    left: -26px;
    top: 391px;
    width: 237px;
    height: 237px;
    font-size: 14px;
    animation: show-cta 1s .8s ease-in-out both;
  }
  .about .circle { top: max(var(--cta-top, 391px), 391px); }
  .about .circle.call { top: max(calc(var(--cta-top, 391px) + 21px), 412px); }
  .about .circle.estimate { top: max(var(--cta-top, 391px), 391px); }
  @keyframes show-cta { from { opacity: .01; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .circle.review-estimate { left: 635px; top: 236px; }
}
