:root {
  color-scheme: dark;
  --poster-duration: 10s;
  --fade-duration: 1s;
  --page-gutter: clamp(1.5rem, 5vw, 7rem);
  --font-brand: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-brand);
  font-synthesis: none;
  font-stretch: normal;
  font-kerning: auto;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #151612;
}

body {
  margin: 0;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.poster-stage,
.poster-stage::after,
.poster {
  position: fixed;
  inset: 0;
}

.poster-stage {
  z-index: 0;
  overflow: hidden;
  background: #151612;
  isolation: isolate;
}

.poster {
  z-index: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: opacity var(--fade-duration) cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}

.poster picture,
.poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.poster img {
  object-fit: cover;
  object-position: center;
}

.poster--home img {
  object-position: 60% center;
}

.poster--office img {
  filter: saturate(.9);
}

.poster.is-visible {
  opacity: 1;
}

.poster.is-running {
  animation: poster-zoom var(--poster-duration) linear forwards;
}

@keyframes poster-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.065); }
}

.poster-stage::after {
  z-index: 10;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 6, .34) 0%, rgba(7, 8, 6, .08) 36%, rgba(7, 8, 6, .16) 54%, rgba(7, 8, 6, .84) 100%),
    linear-gradient(90deg, rgba(7, 8, 6, .18), transparent 24%, transparent 76%, rgba(7, 8, 6, .18));
}

.entry-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(1.5rem, 3.2vw, 3.5rem) var(--page-gutter) clamp(1.75rem, 3.5vw, 3.8rem);
}

.topbar {
  display: flex;
  min-height: 2.8rem;
  grid-row: 1;
  align-items: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(10rem, 10.9vw, 13.1rem);
  height: auto;
}

.hero-message {
  align-self: center;
  justify-self: center;
  grid-row: 2;
  width: min(100%, 72rem);
  padding: clamp(1.5rem, 4vh, 3.5rem) clamp(1.5rem, 3vw, 3.5rem);
  text-align: center;
}

.hero-message p {
  margin: 0 0 clamp(1rem, 1.8vh, 1.4rem);
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1.24rem, 1.4vw, 1.48rem);
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
}

.hero-message h1 {
  max-width: 13.25ch;
  margin: 0 auto;
  font-size: clamp(3.1rem, 5.35vw, 6.45rem);
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 .25rem 2.5rem rgba(0, 0, 0, .12);
}

.choices {
  display: grid;
  grid-row: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: clamp(7.6rem, 17vh, 11rem);
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: flex-end;
  column-gap: 0;
  padding-top: clamp(1.25rem, 2.2vh, 1.8rem);
}

.choice:first-child {
  padding-right: clamp(2rem, 4.5vw, 6rem);
}

.choice + .choice {
  border-left: 1px solid rgba(255, 255, 255, .28);
  padding-left: clamp(2rem, 4.5vw, 6rem);
}

.choice::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, .34);
  content: "";
}

.choice__progress {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 .85rem rgba(255, 255, 255, .22);
  transform: scaleX(0);
  transform-origin: left center;
}

.choice.is-active .choice__progress {
  animation: poster-progress var(--poster-duration) linear forwards;
}

@keyframes poster-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.choice__label {
  align-self: end;
  transform: translateY(clamp(.3rem, .55vw, .65rem));
}

.choice__label small {
  display: block;
  margin-bottom: clamp(.55rem, 1vh, .85rem);
  color: rgba(255, 255, 255, .64);
  font-size: clamp(.77rem, .83vw, .91rem);
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

.choice__label strong {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-brand);
  font-size: clamp(2.68rem, 4.48vw, 5.4rem);
  font-weight: 200;
  letter-spacing: normal;
  line-height: 1;
  transition: color 240ms ease;
}

.choice__icon {
  display: grid;
  min-width: 0;
  align-self: end;
  place-items: end center;
  color: #fff;
  opacity: .6;
  transition: opacity 240ms ease;
}

.choice__icon svg {
  display: block;
  width: clamp(5.75rem, 6vw, 6.65rem);
  height: auto;
  overflow: visible;
}

.choice__icon path,
.choice__icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.choice__arrow {
  display: inline-grid;
  align-self: end;
  width: clamp(2.8rem, 3.5vw, 3.6rem);
  height: clamp(2.8rem, 3.5vw, 3.6rem);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 300;
  line-height: 1;
  transform: none;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.choice:hover .choice__label strong,
.choice:focus-visible .choice__label strong,
.choice:hover .choice__icon,
.choice:focus-visible .choice__icon {
  color: rgba(255, 255, 255, 1);
  opacity: 1;
}

.choice:hover .choice__arrow,
.choice:focus-visible .choice__arrow {
  border-color: #fff;
  color: #171713;
  background: #fff;
  transform: none;
}

.choice:focus-visible,
.brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: .5rem;
}

@media (min-width: 721px) {
  .hero-message {
    position: absolute;
    inset: 0 var(--page-gutter) calc(clamp(7.6rem, 17vh, 11rem) + clamp(1.75rem, 3.5vw, 3.8rem));
    display: flex;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .topbar,
  .choices {
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 1.15rem;
  }

  .entry-shell {
    padding-top: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .brand img {
    width: 9.5rem;
  }

  .poster--home img {
    object-position: 66% center;
  }

  .poster--office img {
    object-position: 53% center;
  }

  .hero-message {
    align-self: start;
    width: min(100%, 32rem);
    padding: 12vh .75rem 1rem;
  }

  .hero-message p {
    margin-bottom: .85rem;
    font-size: 1.12rem;
    letter-spacing: normal;
  }

  .hero-message h1 {
    font-size: clamp(2.85rem, 12.5vw, 4.8rem);
    line-height: .96;
  }

  .choice {
    min-height: clamp(6.3rem, 15vh, 8rem);
  }

  .choice:first-child {
    padding-right: 1rem;
  }

  .choice + .choice {
    padding-left: 1rem;
  }

  .choice__label small {
    font-size: .67rem;
    letter-spacing: normal;
  }

  .choice__label strong {
    font-size: clamp(2.12rem, 10.4vw, 3.2rem);
  }

  .choice__icon svg {
    width: clamp(3.45rem, 9.2vw, 4.6rem);
  }

  .choice__arrow {
    width: 2.45rem;
    height: 2.45rem;
    font-size: .92rem;
  }
}

@media (max-width: 580px) {
  .choices {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: clamp(5.35rem, 12.5vh, 6.5rem);
    padding-top: .85rem;
  }

  .choice:first-child {
    padding-right: 0;
  }

  .choice + .choice {
    border-left: 0;
    padding-left: 0;
  }

  .choice__label strong {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .choice__icon svg {
    width: clamp(4.7rem, 21vw, 5.3rem);
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .entry-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand img {
    width: 7.6rem;
  }

  .hero-message {
    padding: .8rem 1rem;
  }

  .hero-message p {
    margin-bottom: .55rem;
  }

  .hero-message h1 {
    font-size: clamp(2.7rem, 8.5vw, 4.4rem);
  }

  .choice {
    min-height: 6.2rem;
  }

  .choice__label strong {
    font-size: clamp(2.24rem, 5.6vw, 3.68rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster {
    transition-duration: .01ms;
  }

  .poster.is-running {
    animation: none;
    transform: scale(1.02);
  }

  .choice.is-active .choice__progress {
    animation-timing-function: steps(20, end);
  }
}
